# This spec file was tested on Fedora 25. Name: razergenie Version: 0.9.0 Release: 3.1 Summary: Standalone Qt application for configuring your Razer devices under GNU/Linux License: GPL-3.0 URL: https://github.com/z3ntu/RazerGenie Source0: https://github.com/z3ntu/RazerGenie/releases/download/v%{version}/RazerGenie-%{version}.tar.xz BuildRequires: meson BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Xml) %if 0%{?suse_version} BuildRequires: libqt5-linguist hicolor-icon-theme %else %if 0%{?mageia} BuildRequires: qttools5 %else BuildRequires: qt5-linguist %endif %endif Requires: razer-daemon %description Standalone Qt application for configuring your Razer devices under GNU/Linux. %prep %autosetup -n RazerGenie-%{version} -p1 %build %meson %meson_build %install %meson_install # until we actually have a devel package we can delete the symlink that is only used during linking rm %{buildroot}%{_libdir}/libopenrazer.so %clean rm -rf $RPM_BUILD_ROOT # make sure the cache for ld.so is up2date %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_bindir}/razergenie %{_libdir}/libopenrazer.so.* %{_datadir}/applications/xyz.z3ntu.razergenie.desktop %{_datadir}/icons/hicolor/scalable/apps/xyz.z3ntu.razergenie.svg %{_datadir}/metainfo/xyz.z3ntu.razergenie.appdata.xml %{_datadir}/razergenie/