From 1eef6f259c8e4e8141d3e06c4221876c2c2bb38e Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Jun 29 2018 15:25:13 +0000 Subject: Initial SPEC upload. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65b94be --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/piper-5f6ed20.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index cbe5868..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# piper - -The piper package \ No newline at end of file diff --git a/piper.spec b/piper.spec new file mode 100644 index 0000000..3852cda --- /dev/null +++ b/piper.spec @@ -0,0 +1,58 @@ +%global commit0 5f6ed202a57c64c9dcd614006aa0e16d49449c76 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) +%global date 20180214 + +Name: piper +Version: 0.2.900 +Release: 1.%{date}git%{shortcommit0}%{?dist} +Summary: GTK application to configure gaming mice + +License: GPLv2+ and LGPLv2.1+ +URL: https://github.com/libratbag/%{name} +Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz +BuildArch: noarch + +BuildRequires: libratbag-ratbagd >= 0.9.902 +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: pygobject3-devel +BuildRequires: python3-devel +BuildRequires: gettext-devel +BuildRequires: meson + +Requires: hicolor-icon-theme + +%{?python_provide:%python_provide python3-%{name}} + +%description +Piper is a GTK+ application to configure gaming mice, using libratbag +via ratbagd. + +%prep +%autosetup -n %{name}-%{commit0} -p1 +sed -i '/meson_install.sh/d' meson.build + +%build +%meson +%meson_build + +%check +%meson_test +desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop + +%install +%meson_install +%find_lang %{name} + +%files -f %{name}.lang +%doc README.md +%license COPYING +%{_bindir}/%{name} +%{python3_sitelib}/* +%{_datadir}/%{name} +%{_datadir}/applications/*.desktop +%{_datadir}/icons/hicolor/*/apps/* + +%changelog +* Thu Jun 28 2018 Vitaly Zaitsev - 0.2.900-1.20180214git5f6ed20 +- Initial SPEC release. diff --git a/sources b/sources new file mode 100644 index 0000000..4ae1230 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (piper-5f6ed20.tar.gz) = 9e8e4e51fe9371d24679c23b096488aeed6d8300ba110446d22f53fbbfba35bfc59ee421c9bc0c43bdf2620421cccc6a11f502ac17e066f49f98e68566e50eae