diff --git a/anda/lib/pqmarble/anda.hcl b/anda/lib/pqmarble/anda.hcl new file mode 100644 index 0000000000..9c60fdd668 --- /dev/null +++ b/anda/lib/pqmarble/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "pqmarble.spec" + } +} diff --git a/anda/lib/pqmarble/pqmarble.spec b/anda/lib/pqmarble/pqmarble.spec new file mode 100644 index 0000000000..eb487fb3c0 --- /dev/null +++ b/anda/lib/pqmarble/pqmarble.spec @@ -0,0 +1,53 @@ +%global commit f240b2ec7d5cdacb8fdcc553703420dc5101ffdb +%global ver 2.0.0 + +Name: pqmarble +Version: %ver^%commit +Release: 1%{?dist} +Summary: My GTK library +License: GPL-3.0 +URL: https://gitlab.gnome.org/raggesilver/marble +BuildRequires: vala pkgconfig(gtk4) meson >= 0.50.0 +BuildRequires: pkgconfig(gtk+-3.0) >= 3.24 +BuildRequires: pkgconfig(gio-2.0) >= 2.50 + +Source0: %{url}/-/archive/%{commit}/marble-%{commit}.tar.gz + +%description +%summary. +Just as Elementary has Granite I have Marble, my collection of useful functions +and reusable widgets. + +%package devel +Summary: Development files for marble-gtk + +%description devel +%summary. + + +%prep +%autosetup -n marble-%{commit} + +%build +%meson +%meson_build + +%install +%meson_install + +%files +%doc README.md +%license COPYING +%_libdir/girepository-1.0/PQMarble-*.typelib +%_libdir/libpqmarble.so.* +%_datadir/vala/vapi/pqmarble.deps +%_datadir/vala/vapi/pqmarble.vapi + +%files devel +%_prefix/include/pqmarble.h +%_libdir/libpqmarble.so +%_libdir/pkgconfig/pqmarble.pc +%_datadir/gir-1.0/PQMarble-*.gir + +%changelog +%autochangelog diff --git a/anda/lib/pqmarble/update.rhai b/anda/lib/pqmarble/update.rhai new file mode 100644 index 0000000000..49fbc60d30 --- /dev/null +++ b/anda/lib/pqmarble/update.rhai @@ -0,0 +1,4 @@ +let req = get("https://gitlab.gnome.org/api/v4/projects/1551/repository/branches/main").json(); +rpm.global("commit", req.commit.id) +let meson = get("https://gitlab.gnome.org/raggesilver/marble/-/raw/master/meson.build"); +rpm.global("ver", find("(?m)^\\s+version:\\s*'(.+)',$", meson, 1));