]> git.pld-linux.org Git - packages/fail2ban.git/commitdiff
- avoid double site-packages/fail2ban/fail2ban/ directory
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 26 Jan 2015 10:59:53 +0000 (11:59 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 26 Jan 2015 10:59:53 +0000 (11:59 +0100)
fail2ban.spec

index 3d2bc58b01976383bccf8180eab811254e128fd6..5cc182414905ca27c69fd2d53f229343c1f28b03 100644 (file)
@@ -7,7 +7,7 @@ Version:        0.9.1
 Release:       0.1
 License:       GPL
 Group:         Daemons
-Source0:       https://github.com/fail2ban/fail2ban/archive/0.9.1.tar.gz
+Source0:       https://github.com/fail2ban/fail2ban/archive/%{version}.tar.gz
 # Source0-md5: 3554cc3de3f06ddfd7f90f8305b765b8
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
@@ -57,14 +57,14 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d} \
 
 %{__python} setup.py install \
        --optimize=2 \
-       --install-lib=%{py_sitescriptdir}/%{name} \
+       --install-lib=%{py_sitescriptdir} \
        --root=$RPM_BUILD_ROOT
 
 install -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fail2ban
 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/fail2ban
-install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/fail2ban/paths-pld.conf
+install -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fail2ban/paths-pld.conf
 
 install -p files/fail2ban-tmpfiles.conf $RPM_BUILD_ROOT%{systemdtmpfilesdir}/fail2ban.conf
 install -p files/fail2ban.service $RPM_BUILD_ROOT%{systemdunitdir}/fail2ban.service
This page took 0.125938 seconds and 4 git commands to generate.