%define openfprintdlibdir %{_exec_prefix}/lib/open-fprintd %define _unitdir %{_exec_prefix}/lib/systemd/system Name: open-fprintd Version: 0.6 Release: 1%{?dist} Summary: Replacement of package fprintd for standalone backend services License: GPLv2 URL: https://github.com/uunicorn/%{name} Source0: https://github.com/uunicorn/open-fprintd/archive/refs/tags/0.6.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel Requires: fprintd-clients %description Replacement of package fprintd which allows you to have your own backend as a standalone service. %prep %autosetup -n %{name}-%{version} %build %py3_build %install %py3_install install -d -m 0755 %{buildroot}/%{_unitdir} install -m 0644 debian/open-fprintd.service %{buildroot}/%{_unitdir}/ install -m 0644 debian/open-fprintd-suspend.service %{buildroot}/%{_unitdir}/ install -m 0644 debian/open-fprintd-resume.service %{buildroot}/%{_unitdir}/ %post %systemd_post open-fprintd.service %preun %systemd_preun open-fprintd.service %files %doc README.md %license COPYING %{python3_sitelib}/openfprintd/ %{python3_sitelib}/open_fprintd-%{version}-py*.egg-info/ %{openfprintdlibdir}/open-fprintd %{openfprintdlibdir}/suspend.py %{openfprintdlibdir}/resume.py %{_unitdir}/%{name}*.service %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service %{_datadir}/dbus-1/system.d/net.reactivated.Fprint.conf %changelog * Tue Nov 03 2020 Veit Wahlich - 0.6-1 - Initial build.