]> git.pld-linux.org Git - packages/fail2ban.git/commitdiff
- alter source files in prep
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 31 Dec 2005 17:06:13 +0000 (17:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use %py_postclean

Changed files:
    fail2ban.spec -> 1.5

fail2ban.spec

index 0e16d05fb49c77a691535c244db9a8f34ee88c58..72766c82b7804a317939c099c9931985f6fa9921 100644 (file)
@@ -10,6 +10,7 @@ Source0:      http://dl.sourceforge.net/fail2ban/%{name}-%{version}.tar.bz2
 # Source0-md5: 129c4e76539a22ab60d025fbf137f962
 BuildRequires: dos2unix
 BuildRequires: python-devel
+BuildRequires: rpmbuild(macros) >= 1.219
 Requires:      python-log4py
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,9 +30,10 @@ z sshd czy plikami log
 
 %prep
 %setup -q
+dos2unix config/redhat-initd
+rm setup.cfg
 
 %build
-rm setup.cfg
 %{__python} setup.py build
 
 %install
@@ -41,11 +43,10 @@ install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 PYTHONPATH=$RPM_BUILD_ROOT%{py_sitescriptdir}; export PYTHONPATH
 
 python setup.py install \
-  --optimize=2 \
+       --optimize=2 \
        --root=$RPM_BUILD_ROOT
 
-find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
-dos2unix config/redhat-initd
+%{py_postclean}
 install config/redhat-initd $RPM_BUILD_ROOT/etc/rc.d/init.d/fail2ban
 install config/fail2ban.conf.default $RPM_BUILD_ROOT%{_sysconfdir}/fail2ban.conf
 
This page took 0.134582 seconds and 4 git commands to generate.