]> git.pld-linux.org Git - packages/ipset.git/blobdiff - ipset.spec
- release 5
[packages/ipset.git] / ipset.spec
index 0d72cafecf52e2a5aeaa62ae22c90f031fdbd7eb..7faa8047264efd3cf6e0dd874bafd5f430c11546 100644 (file)
 %define                _enable_debug_packages  0
 %endif
 
-%define                rel     1
+%define                rel     5
+%define                pname   ipset
 Summary:       IP sets utility
 Summary(pl.UTF-8):     Narzędzie do zarządzania zbiorami IP
 Name:          ipset
-Version:       2.4.3
+Version:       2.4.5
 Release:       %{rel}
 License:       GPL
 Group:         Networking/Admin
-Source0:       http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
-# Source0-md5: 3c97324d04562a8bc25b0177100673ee
-Source1:       %{name}.init
+Source0:       http://ipset.netfilter.org/%{pname}-%{version}.tar.bz2
+# Source0-md5: 9cd51ed1a901d8616bb0485b3f23fbe3
+Source1:       %{pname}.init
 URL:           http://ipset.netfilter.org/
 %{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
 %{?with_userspace:BuildRequires:       linux-libc-headers >= 7:2.6.22.1-2}
@@ -61,15 +62,19 @@ Header files for IPset interface.
 Pliki nagłówkowe do interfejsu IPset.
 
 %package init
-Summary:       IPset init (RedHat style)
+Summary:       IPset init script
+Summary(pl.UTF-8):     Skrypt startowy IPset
 Group:         Networking/Admin
 Requires(post,preun):  /sbin/chkconfig
-Requires:      %{name}
+Requires:      %{pname} = %{version}-%{release}
 Requires:      rc-scripts
 
 %description init
 IPset initialization script.
 
+%description init -l pl.UTF-8
+Skrypt startowy IPset.
+
 %package -n kernel%{_alt_kernel}-net-ipset
 Summary:       IPset kernel modules
 Summary(pl.UTF-8):     Moduły jądra oferujące wsparcie dla zbiorów IP
@@ -98,7 +103,7 @@ maksymalną szybkość przy dopasowywaniu elementu do zbioru.
 Ten pakiet zawiera moduły jądra oferujące wsparcie dla zbiorów IP.
 
 %prep
-%setup -q
+%setup -q -n %{pname}-%{version}
 mv kernel/{Kbuild,Makefile}
 
 # maximum number of ipsets.
@@ -137,7 +142,7 @@ install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_includedir}}
        BINDIR="%{_sbindir}"
 
 install *.h $RPM_BUILD_ROOT%{_includedir}
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{pname}
 %endif
 
 %if %{with kernel}
@@ -152,11 +157,11 @@ cd -
 rm -rf $RPM_BUILD_ROOT
 
 %post init
-/sbin/chkconfig --add %{name}
+/sbin/chkconfig --add %{pname}
 
 %preun init
 if [ "$1" = "0" ]; then
-       /sbin/chkconfig --del %{name}
+       /sbin/chkconfig --del %{pname}
 fi
 
 %post  -n kernel%{_alt_kernel}-net-ipset
@@ -180,7 +185,7 @@ fi
 
 %files init
 %defattr(644,root,root,755)
-%attr(754,root,root) /etc/rc.d/init.d/*
+%attr(754,root,root) /etc/rc.d/init.d/ipset
 %endif
 
 %if %{with kernel}
This page took 0.054973 seconds and 4 git commands to generate.