1eef6f2
%global commit0 5f6ed202a57c64c9dcd614006aa0e16d49449c76
1eef6f2
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
1eef6f2
%global date 20180214
1eef6f2
1eef6f2
Name: piper
1eef6f2
Version: 0.2.900
1eef6f2
Release: 1.%{date}git%{shortcommit0}%{?dist}
1eef6f2
Summary: GTK application to configure gaming mice
1eef6f2
1eef6f2
License: GPLv2+ and LGPLv2.1+
1eef6f2
URL: https://github.com/libratbag/%{name}
1eef6f2
Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
1eef6f2
BuildArch: noarch
1eef6f2
1eef6f2
BuildRequires: libratbag-ratbagd >= 0.9.902
1eef6f2
BuildRequires: desktop-file-utils
1eef6f2
BuildRequires: libappstream-glib
1eef6f2
BuildRequires: pygobject3-devel
1eef6f2
BuildRequires: python3-devel
1eef6f2
BuildRequires: gettext-devel
1eef6f2
BuildRequires: meson
1eef6f2
1eef6f2
Requires: hicolor-icon-theme
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
1eef6f2
%autosetup -n %{name}-%{commit0} -p1
1eef6f2
sed -i '/meson_install.sh/d' meson.build
1eef6f2
1eef6f2
%build
1eef6f2
%meson
1eef6f2
%meson_build
1eef6f2
1eef6f2
%check
1eef6f2
%meson_test
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
%{python3_sitelib}/*
1eef6f2
%{_datadir}/%{name}
1eef6f2
%{_datadir}/applications/*.desktop
1eef6f2
%{_datadir}/icons/hicolor/*/apps/*
1eef6f2
1eef6f2
%changelog
1eef6f2
* Thu Jun 28 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.2.900-1.20180214git5f6ed20
1eef6f2
- Initial SPEC release.