[denyhosts] Minor spec cleanups.

Jason ティビツ tibbs at fedoraproject.org
Thu Mar 5 22:06:26 UTC 2015


commit 53ef3cd1bd476aba20e27b4aa025a12c4890fb41
Author: Jason Tibbitts <tibbs at math.uh.edu>
Date:   Thu Mar 5 16:06:06 2015 -0600

    Minor spec cleanups.

 .gitignore     |  3 ++-
 denyhosts.spec | 14 +++++++++-----
 2 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e5f6491..68c725b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
-DenyHosts-2.6.tar.gz
+denyhosts-*/
 *.rpm
 *.log
+DenyHosts-2.6.tar.gz
 /v2.9.tar.gz
 /v2.10.tar.gz
diff --git a/denyhosts.spec b/denyhosts.spec
index 99b2803..88666e4 100644
--- a/denyhosts.spec
+++ b/denyhosts.spec
@@ -1,6 +1,6 @@
 Name:       denyhosts
 Version:    2.10
-Release:    2%{?dist}
+Release:    3%{?dist}
 Summary:    A script to help thwart ssh server attacks
 
 Group:      Applications/System
@@ -12,11 +12,10 @@ Source2:    denyhosts.service
 Source3:    denyhosts-allowed-hosts
 Source5:    denyhosts.logrotate
 Source6:    README.fedora
-Source10:   denyhosts-restorecon.plugin
 Patch1:     denyhosts-2.10-config.patch
 BuildArch:  noarch
 
-BuildRequires:  python2-devel systemd-units
+BuildRequires:  python2-devel python-nose systemd-units
 Requires:       openssh-server
 Requires(post): systemd-units systemd-sysv
 Requires(preun): systemd-units
@@ -76,8 +75,6 @@ install -p -m 644 %{SOURCE5} %{buildroot}/etc/logrotate.d/denyhosts
 # We don't want this because it is so poorly named
 mv %{buildroot}/usr/bin/daemon-control-dist %{buildroot}/usr/bin/denyhosts-control
 
-#install -p -m 755 %{SOURCE10} %{buildroot}/usr/share/denyhosts/plugins/restorecon.sh
-
 touch %{buildroot}/var/log/denyhosts
 
 for i in allowed-warned-hosts hosts hosts-restricted hosts-root \
@@ -86,6 +83,9 @@ for i in allowed-warned-hosts hosts hosts-restricted hosts-root \
   touch %{buildroot}/var/lib/denyhosts/$i
 done
 
+%check
+nosetests -v
+
 %post
 %systemd_post denyhosts.service
 
@@ -128,6 +128,10 @@ done
 %dir /var/lib/denyhosts
 
 %changelog
+* Thu Mar 05 2015 Jason L Tibbitts III <tibbs at math.uh.edu> - 2.10-3
+- Enable test suite.
+- Drop restorecon plugin.
+
 * Tue Mar 03 2015 Jason L Tibbitts III <tibbs at math.uh.edu> - 2.10-2
 - Drop commandlinesync patch.
 


More information about the scm-commits mailing list