/
aylurs-gtk-shell.spec
69 lines (56 loc) · 2.22 KB
/
aylurs-gtk-shell.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
%global __provides_exclude_from ^(%{_libdir}/ags/.*\\.so)$
%global gvc_commit 8e7a5a4c3e51007ce6579292642517e3d3eb9c50
%global gvc_shortcommit %(c=%{gvc_commit}; echo ${c:0:7})
Name: aylurs-gtk-shell
Version: 1.8.0
Release: %autorelease
Summary: A customizable and extensible shell
License: GPL-3.0-or-later
URL: https://github.com/Aylur/ags
Source0: %{url}/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
Source1: %{url}/releases/download/v%{version_no_tilde}/node_modules-v%{version_no_tilde}.tar.gz
Source2: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/archive/%{gvc_commit}/gvc-%{gvc_shortcommit}.tar.gz
Patch: https://patch-diff.githubusercontent.com/raw/Aylur/ags/pull/332.patch
BuildRequires: gcc
BuildRequires: meson
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gjs-1.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(pam)
BuildRequires: typescript
Requires: gjs%{?_isa}
Requires: gtk-layer-shell%{?_isa}
Requires: libsoup3%{?_isa}
Recommends: libdbusmenu-gtk3%{?_isa}
Recommends: gnome-bluetooth-libs%{?_isa}
Provides: bundled(libgnome-volume-control) = 0^1.git%{gvc_shortcommit}
%description
This program is essentially a library for gjs which allows defining GTK widgets
in a declarative way in JavaScript. It also provides services to interact with
the system so that these widgets can have functionality.
%prep
%autosetup -n ags-%{version_no_tilde} -a1 -p1
tar -xf %{SOURCE2} -C subprojects/gvc --strip=1
%build
%meson \
-Dbuild_types=true \
--libdir=%{_libdir}/ags
%meson_build
%install
%meson_install
# RPM build errors:
# Symlink points to BuildRoot: /usr/bin/ags -> /builddir/build/BUILDROOT/aylurs-gtk-shell-1.7.4-1.fc39.x86_64//usr/share/com.github.Aylur.ags/com.github.Aylur.ags
rm %{buildroot}%{_bindir}/ags
ln -s %{_datadir}/com.github.Aylur.ags/com.github.Aylur.ags %{buildroot}%{_bindir}/ags
%files
%license LICENSE
%doc README.md
%doc example/
%{_bindir}/ags
%{_datadir}/com.github.Aylur.ags/
%{_libdir}/ags/
%{_sysconfdir}/pam.d/ags
%changelog
%autochangelog