Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
xtables-addons
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 29
[-]
[+]
Changed
xtables-addons.spec
@@ -9,10 +9,18 @@ Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: kernel-source, kernel-syms, iptables-devel >= 1.4.4 -BuildRequires: pkg-config >= 0.23 +BuildRequires: pkg-config >= 0.23 libmnl-devel >= 1 BuildRequires: module-init-tools Requires: %{name}-kmp -Recommends: xtables-geoip +%if 0%{?suse_version} >= 1140 +Provides: ipset = 6.9.1 +%endif +%if 0%{?suse_version} +Recommends: %name-kmp +Recommends: xtables-geoip +%else +Requires: xtables-geoip +%endif %suse_kernel_module_package @@ -26,6 +34,10 @@ %setup -q %build +%if 0%{?suse_version} < 1140 +# ipset6-genl needs >=2.6.35, which is usually not present before 11.4 +echo "build_ipset6=" >>mconfig; +%endif pushd ../; for flavor in %{flavors_to_build}; do cp -a %{name}-%{version} %{name}-${flavor}-%{version}; @@ -45,7 +57,13 @@ %__make install DESTDIR="$b"; popd; done; -find "$b/%_prefix" -iname "*.la" -print0 | xargs -0r rm -f; +# There is no -devel package. So no need for these files. +find "$b/%_prefix" -iname "*.la" -delete; +find "$b/%_libdir" -maxdepth 1 -type l -iname "*.so" -delete; + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %clean rm -Rf "%buildroot";