1eef6f2
Name: piper
088025f
Version: 0.7
a42bd28
Release: 8%{?dist}
1eef6f2
be95aca
License: GPL-2.0-or-later AND LGPL-2.1-or-later
1eef6f2
URL: https://github.com/libratbag/%{name}
dd895e3
Summary: GTK application to configure gaming mice
c9c2616
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
1eef6f2
BuildArch: noarch
1eef6f2
e9ae5a2
BuildRequires: pkgconfig(pygobject-3.0)
ffbb323
BuildRequires: python3-cairo
1eef6f2
BuildRequires: python3-devel
ffbb323
BuildRequires: python3-evdev
75f3100
BuildRequires: python3-flake8
ffbb323
BuildRequires: python3-gobject
Peter Hutterer ef85b7d
BuildRequires: python3-lxml
ffbb323
efa8025
BuildRequires: appstream
ffbb323
BuildRequires: desktop-file-utils
ffbb323
BuildRequires: gettext-devel
Peter Hutterer 91d492c
BuildRequires: git-core
ffbb323
BuildRequires: libappstream-glib
ffbb323
BuildRequires: libratbag-ratbagd
ffbb323
BuildRequires: meson
1eef6f2
ffbb323
Requires: gtk3
1eef6f2
Requires: hicolor-icon-theme
f94d2f5
Requires: libratbag-ratbagd >= 0.14
ffbb323
Requires: python3-cairo
c9c2616
Requires: python3-evdev
ffbb323
Requires: python3-gobject
c9c2616
Requires: python3-lxml
1eef6f2
1eef6f2
%{?python_provide:%python_provide python3-%{name}}
1eef6f2
1eef6f2
%description
1eef6f2
Piper is a GTK+ application to configure gaming mice, using libratbag
1eef6f2
via ratbagd.
1eef6f2
1eef6f2
%prep
Peter Hutterer 1cf3b49
%autosetup -S git
5664ed0
sed -e '/meson_install.sh/d' -i meson.build
5664ed0
5664ed0
# Workaround to https://bugzilla.redhat.com/show_bug.cgi?id=2100362
5664ed0
%if 0%{?fedora} && 0%{?fedora} >= 37
5664ed0
sed -e '/evdev/d' -i meson.build
5664ed0
%endif
1eef6f2
1eef6f2
%build
1eef6f2
%meson
1eef6f2
%meson_build
1eef6f2
1eef6f2
%check
1eef6f2
%meson_test
8751313
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
1eef6f2
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
1eef6f2
1eef6f2
%install
1eef6f2
%meson_install
1eef6f2
%find_lang %{name}
1eef6f2
1eef6f2
%files -f %{name}.lang
1eef6f2
%doc README.md
1eef6f2
%license COPYING
1eef6f2
%{_bindir}/%{name}
1eef6f2
%{_datadir}/%{name}
c9c2616
%{python3_sitelib}/%{name}/
1eef6f2
%{_datadir}/applications/*.desktop
Peter Hutterer d7a614f
%{_metainfodir}/*.appdata.xml
1eef6f2
%{_datadir}/icons/hicolor/*/apps/*
5c610f5
%{_mandir}/man1/*.1*
1eef6f2
1eef6f2
%changelog
a42bd28
* Mon Jun 10 2024 Python Maint <python-maint@redhat.com> - 0.7-8
a42bd28
- Rebuilt for Python 3.13
a42bd28
03b2efe
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-7
03b2efe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
03b2efe
44722e4
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-6
44722e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
44722e4
de635bb
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-5
de635bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
de635bb
9c4ab1a
* Fri Jul 14 2023 Python Maint <python-maint@redhat.com> - 0.7-4
9c4ab1a
- Rebuilt for Python 3.12
9c4ab1a
59262a9
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-3
59262a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
59262a9
6e3167c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-2
6e3167c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild