summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. de Jong <kjong+dev@neobits.nl>2020-07-22 19:33:22 +0200
committerK. de Jong <kjong+dev@neobits.nl>2020-07-22 19:33:22 +0200
commit11a30009267660dd7953334c9c27928a483a162f (patch)
tree0c6d49d0d6f791ace1050d224ead036a1ccfce2d
parent32f3ac4d5b7696875be4409aa7b43296303e8157 (diff)
downloadrpmbuild-11a30009267660dd7953334c9c27928a483a162f.tar.gz
rpmbuild-11a30009267660dd7953334c9c27928a483a162f.tar.xz
rpmbuild-11a30009267660dd7953334c9c27928a483a162f.zip
dnf-plugin-rkhunter ready for first review
-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