From ddeb030637cdefb01eef91cbcb9cbaf197828691 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 31 Dec 2005 17:06:13 +0000 Subject: [PATCH] - alter source files in prep - use %py_postclean Changed files: fail2ban.spec -> 1.5 --- fail2ban.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fail2ban.spec b/fail2ban.spec index 0e16d05..72766c8 100644 --- a/fail2ban.spec +++ b/fail2ban.spec @@ -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 -- 2.44.0