summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SPECS/dnf-plugin-rkhunter.spec43
1 files changed, 43 insertions, 0 deletions
diff --git a/SPECS/dnf-plugin-rkhunter.spec b/SPECS/dnf-plugin-rkhunter.spec
new file mode 100644
index 0000000..376f6dc
--- /dev/null
+++ b/SPECS/dnf-plugin-rkhunter.spec
@@ -0,0 +1,43 @@
+%{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.2.23}
+
+Name: dnf-plugin-rkhunter
+Version: 1.0
+Release: 1%{?dist}
+Summary: Automatic updates of rkhunter property files after DNF transactions
+
+License: GPLv2+
+URL: https://github.com/AquaL1te/%{name}
+Source0: https://github.com/AquaL1te/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python3-devel
+
+Requires: rkhunter
+
+%{?python_provide:%python_provide python3-%{name}}
+Provides: python3-%{name} = %{version}-%{release}
+
+%description
+dnf-plugin-rkhunter is a plugin for DNF to do an automatic update of rkhunter
+property files after each DNF transaction.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%install
+mkdir -p %{buildroot}%{python3_sitelib}/dnf-plugins/
+mkdir -p %{buildroot}%_sysconfdir/dnf/plugins/
+mkdir -p %{buildroot}%{_mandir}/man8/
+install -m 644 plugin/rkhunter.py %{buildroot}/%{python3_sitelib}/dnf-plugins/rkhunter.py
+install -m 644 etc/rkhunter.conf %{buildroot}%_sysconfdir/dnf/plugins/rkhunter.conf
+install -m 644 man/dnf-plugin-rkhunter.8 %{buildroot}%{_mandir}/man8/%{name}.8
+
+%files
+%{python3_sitelib}/dnf-plugins/rkhunter.py
+%{python3_sitelib}/dnf-plugins/__pycache__/rkhunter.*
+%_sysconfdir/dnf/plugins/rkhunter.conf
+%{_mandir}/man8/%{name}.8*
+
+%changelog
+* Wed Jul 22 2020 K. de Jong <keesdejong@fedoraproject.org> - 1.0-1
+- Initial package