SPECS: sshguard.spec - BR: sed >= 4.0 - better installation - use ...
shadzik
shadzik at pld-linux.org
Wed Mar 7 10:28:55 CET 2007
Author: shadzik Date: Wed Mar 7 09:28:55 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- BR: sed >= 4.0
- better installation
- use %{__scons} not python scons.py
- rel 1
---- Files affected:
SPECS:
sshguard.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/sshguard.spec
diff -u SPECS/sshguard.spec:1.3 SPECS/sshguard.spec:1.4
--- SPECS/sshguard.spec:1.3 Wed Mar 7 09:45:23 2007
+++ SPECS/sshguard.spec Wed Mar 7 10:28:50 2007
@@ -3,7 +3,7 @@
Summary(pl.UTF-8): sshguard - chroni hosty przed plagą ataków brute force na serwer ssh
Name: sshguard
Version: 0.9
-Release: 0.1
+Release: 1
License: BSD
Group: Applications
Source0: http://dl.sourceforge.net/sshguard/%{name}-%{version}.tar.bz2
@@ -13,6 +13,7 @@
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.228
BuildRequires: scons
+BuildRequires: sed >= 4.0
Requires: iptables
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,17 +29,22 @@
interpretowanym języku, jest niezależny, szybki i lekki, ponieważ jest
napisany w C.
+%define _fw -Q FIREWALLTYPE=iptables
+
%prep
%setup -q
+%{__sed} -i -e "s@/usr/local@$RPM_BUILD_ROOT%{_prefix}@g" SConstruct
%build
-python scons.py -Q FIREWALLTYPE=iptables
+%{__scons} \
+ %{_fw}
%install
rm -rf $RPM_BUILD_ROOT
-
install -d $RPM_BUILD_ROOT%{_sbindir}
-install sshguard $RPM_BUILD_ROOT%{_sbindir}/
+
+%{__scons} install \
+ %{_fw}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -53,6 +59,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2007/03/07 09:28:50 shadzik
+- BR: sed >= 4.0
+- better installation
+- use %{__scons} not python scons.py
+- rel 1
+
Revision 1.3 2007/03/07 08:45:23 shadzik
- BRs: rpm-pythonprov and rpmbuild(macros)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/sshguard.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list