]> git.pld-linux.org Git - packages/ipset.git/blobdiff - ipset.spec
- updated to 6.30
[packages/ipset.git] / ipset.spec
index cbf8c3c1fad37676915797dcfacbf986592a3142..782ac20c4c839f4fc1579311db87c28faa35d0fd 100644 (file)
@@ -27,13 +27,13 @@ exit 1
 Summary:       IP sets utility
 Summary(pl.UTF-8):     Narzędzie do zarządzania zbiorami IP
 Name:          %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
-Version:       6.21.1
+Version:       6.30
 Release:       %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
 License:       GPL v2
 Group:         Networking/Admin
 #Source0Download: http://ipset.netfilter.org/install.html
 Source0:       http://ipset.netfilter.org/%{pname}-%{version}.tar.bz2
-# Source0-md5: 9c136fd51694eb0ef259cda085145da0
+# Source0-md5: 41c32e3b884ec714f0aac95e7675f9d1
 Source1:       %{pname}.init
 URL:           http://ipset.netfilter.org/
 BuildRequires: autoconf >= 2.50
@@ -105,6 +105,19 @@ IPset initialization script.
 %description init -l pl.UTF-8
 Skrypt startowy IPset.
 
+%package -n bash-completion-ipset
+Summary:       Bash completion for ipset command
+Summary(pl.UTF-8):     Bashowe dopełnianie parametrów polecenia ipset
+Group:         Applications/Shells
+Requires:      %{pname} = %{version}-%{release}
+Requires:      bash-completion >= 2.0
+
+%description -n bash-completion-ipset
+Bash completion for ipset command.
+
+%description -n bash-completion-ipset -l pl.UTF-8
+Bashowe dopełnianie parametrów polecenia ipset.
+
 %define        kernel_pkg()\
 %package -n kernel%{_alt_kernel}-net-ipset\
 Summary:       IPset kernel modules\
@@ -174,13 +187,22 @@ done\
 %setup -q -n %{pname}-%{version}
 
 %build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %if %{with userspace}
-%configure \
+install -d build-usr
+cd build-usr
+../%configure \
+       bashcompdir=%{bash_compdir} \
+       --enable-bashcompl \
        --disable-silent-rules \
        --with-kmod=no \
        --with-settype-modules-list=all
 
 %{__make}
+cd ..
 %endif
 
 %{?with_kernel:%{expand:%build_kernel_packages}}
@@ -191,9 +213,8 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with userspace}
 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_includedir}/libipset}
 
-%{__make} install \
+%{__make} -C build-usr install \
        DESTDIR=$RPM_BUILD_ROOT
-cp include/libipset/*.h $RPM_BUILD_ROOT%{_includedir}/libipset
 
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{pname}
 %endif
@@ -237,4 +258,8 @@ fi
 %files init
 %defattr(644,root,root,755)
 %attr(754,root,root) /etc/rc.d/init.d/ipset
+
+%files -n bash-completion-ipset
+%defattr(644,root,root,755)
+%{bash_compdir}/ipset
 %endif
This page took 0.062108 seconds and 4 git commands to generate.