File aylurs-gtk-shell.spec of Package aylurs-gtk-shell
#
# spec file for package aylurs-gtk-shell
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global gvc_commit 8e7a5a4c3e51007ce6579292642517e3d3eb9c50
%global gvc_shortcommit %(c=%{gvc_commit}; echo ${c:0:7})
Name: aylurs-gtk-shell
Version: 1.8.2
Release: 1
Summary: A customizable and extensible shell
License: GPL-3.0-or-later
URL: https://github.com/Aylur/ags
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: %{url}/releases/download/v%{version}/node_modules-v%{version}.tar.gz
Source2: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/archive/%{gvc_commit}/gvc-%{gvc_shortcommit}.tar.gz
Patch0: 0001-fix-missing-vertical-prop-on-slider.patch
Patch1: 0002-fix_inverted_circular_progress.patch
Patch2: 0003-fix_variable_is_polling.patch
Patch3: 0004-add_getGdkMonitor_to_hyprland_service.patch
Patch4: 0005-check_wifi_enabled_earlier.patch
Patch5: 0006-fix_playerctld_incorrect_properties.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: pkg-config
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
Recommends: gnome-bluetooth
Recommends: libdbusmenu-gtk3-4
Provides: bundled(libgnome-volume-control) = 0^1.git%{gvc_shortcommit}
%description
AGS is a library built for GJS to allow defining GTK widgets
in a declarative way. It also provides services and other
utilities to interact with the system so that these widgets
can have functionality. GJS is a JavaScript runtime built
on Firefox's SpiderMonkey JavaScript engine and the GNOME
platform libraries, the same runtime GNOME Shell runs on.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}
BuildArch: noarch
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n ags-%{version} -a1 -p1
tar -xf %{SOURCE2} -C subprojects/gvc --strip=1
%build
%meson \
-Dbuild_types=true \
--libdir=%{_libdir}/ags
%meson_build
chmod -x %{_builddir}/ags-1.8.2/example/icon-browser/icon-browser.js
%check
if [ -f %{_vpath_builddir}/meson-private/build.dat ]; then
cd %{_vpath_builddir}
meson test
else
echo "Skipping tests because build data is missing."
fi
%install
%meson_install
%fdupes %{buildroot}%{_prefix}
rm %{buildroot}%{_bindir}/ags
%post -p /bin/bash
if [ $1 == 1 ];then
ln -sf %{_datadir}/com.github.Aylur.ags/com.github.Aylur.ags %{_bindir}/ags
fi
%postun -p /bin/bash
if [ $1 == 0 ];then
rm %{_bindir}/ags
fi
%files
%license LICENSE
%doc README.md
%doc example/
%dir %{_datadir}/com.github.Aylur.ags/
%{_datadir}/com.github.Aylur.ags/types/
%{_datadir}/com.github.Aylur.ags/com.github.Aylur.ags
%{_datadir}/com.github.Aylur.ags/com.github.Aylur.ags.src.gresource
%{_libdir}/ags/
%config(noreplace) %{_sysconfdir}/pam.d/ags
%files devel
%{_datadir}/com.github.Aylur.ags/GUtils-1.0.gir
%{_datadir}/com.github.Aylur.ags/Gvc-1.0.gir
%changelog