Accepting request 526907 from home:kstreitova:branches:security:netfilter
- fix build for Factory - run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/526907 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ipset?expand=0&rev=59
This commit is contained in:
parent
78b7e3eddf
commit
8c7adcba78
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 15 16:44:31 UTC 2017 - kstreitova@suse.com
|
||||||
|
|
||||||
|
- fix build for Factory
|
||||||
|
- run spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 17 11:45:35 UTC 2017 - jengelh@inai.de
|
Fri Mar 17 11:45:35 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
82
ipset.spec
82
ipset.spec
@ -16,8 +16,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: ipset
|
|
||||||
%define lname libipset3
|
%define lname libipset3
|
||||||
|
%if 0%{?suse_version} && 0%{?suse_version} < 1330
|
||||||
|
# Factory gets new kernels, old releases don't.
|
||||||
|
# Always build KMPs for all versions older than Factory.
|
||||||
|
%define ipset_build_kmp 1
|
||||||
|
%else
|
||||||
|
%define ipset_build_kmp 0
|
||||||
|
%endif
|
||||||
|
Name: ipset
|
||||||
Version: 6.32
|
Version: 6.32
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Netfilter ipset administration utility
|
Summary: Netfilter ipset administration utility
|
||||||
@ -26,28 +33,22 @@ Group: Productivity/Networking/Security
|
|||||||
Url: http://ipset.netfilter.org/
|
Url: http://ipset.netfilter.org/
|
||||||
#Git-Clone: git://git.netfilter.org/ipset
|
#Git-Clone: git://git.netfilter.org/ipset
|
||||||
#Git-Web: http://git.netfilter.org/
|
#Git-Web: http://git.netfilter.org/
|
||||||
Source: http://ipset.netfilter.org/%name-%version.tar.bz2
|
Source: http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
|
||||||
Source3: %name-preamble
|
Source3: %{name}-preamble
|
||||||
Patch1: ipset-destdir.diff
|
Patch1: ipset-destdir.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: linux-glibc-devel >= 2.6.24
|
BuildRequires: linux-glibc-devel >= 2.6.24
|
||||||
BuildRequires: pkg-config >= 0.21
|
BuildRequires: pkgconfig >= 0.21
|
||||||
BuildRequires: pkgconfig(libmnl) >= 1
|
BuildRequires: pkgconfig(libmnl) >= 1
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} < 1330
|
|
||||||
# Factory gets new kernels, old releases don't.
|
|
||||||
# Always build KMPs for all versions older than Factory.
|
|
||||||
%define ipset_build_kmp 1
|
|
||||||
%endif
|
|
||||||
%if 0%{?ipset_build_kmp}
|
%if 0%{?ipset_build_kmp}
|
||||||
BuildRequires: %kernel_module_package_buildreqs
|
BuildRequires: %{kernel_module_package_buildreqs}
|
||||||
|
BuildRequires: kernel-syms >= 2.6.39
|
||||||
|
%kernel_module_package -p %{name}-preamble
|
||||||
%if 0%{?suse_version} >= 1320
|
%if 0%{?suse_version} >= 1320
|
||||||
BuildRequires: kmod-compat
|
BuildRequires: kmod-compat
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: kernel-syms >= 2.6.39
|
|
||||||
%kernel_module_package -p %name-preamble
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -78,11 +79,11 @@ when matching an entry against a set.
|
|||||||
|
|
||||||
This package contains a version update to the in-kernel ipset modules.
|
This package contains a version update to the in-kernel ipset modules.
|
||||||
|
|
||||||
%package -n %lname
|
%package -n %{lname}
|
||||||
Summary: Userspace library for the in-kernel Netfilter ipset interface
|
Summary: Userspace library for the in-kernel Netfilter ipset interface
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %{lname}
|
||||||
IP sets are a framework inside the Linux kernel, which can be
|
IP sets are a framework inside the Linux kernel, which can be
|
||||||
administered by the ipset utility. Depending on the type, currently
|
administered by the ipset utility. Depending on the type, currently
|
||||||
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
|
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
|
||||||
@ -92,7 +93,7 @@ when matching an entry against a set.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for ipset extensions
|
Summary: Development files for ipset extensions
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %lname = %version
|
Requires: %{lname} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
IP sets are a framework inside the Linux kernel, which can be
|
IP sets are a framework inside the Linux kernel, which can be
|
||||||
@ -103,59 +104,56 @@ when matching an entry against a set.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -P 1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# build wants to call modinfo at some point
|
# build wants to call modinfo at some point
|
||||||
export PATH="$PATH:/usr/sbin"
|
export PATH="$PATH:%{_prefix}/sbin"
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
%if 0%{?ipset_build_kmp}
|
%if 0%{?ipset_build_kmp}
|
||||||
for flavor in %flavors_to_build; do
|
for flavor in %{flavors_to_build}; do
|
||||||
cp -a . "../%name-$flavor-%version"
|
cp -a . "../%{name}-$flavor-%{version}"
|
||||||
pushd "../%name-$flavor-%version/"
|
pushd "../%{name}-$flavor-%{version}/"
|
||||||
# ksource: it just checks for a header
|
# ksource: it just checks for a header
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--with-kbuild="/usr/src/linux-obj/%_target_cpu/$flavor" \
|
--with-kbuild="%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor" \
|
||||||
--with-ksource="/usr/src/linux" \
|
--with-ksource="%{_prefix}/src/linux" \
|
||||||
--includedir="%_includedir/%name"
|
--includedir="%{_includedir}/%{name}"
|
||||||
make %{?_smp_mflags} all modules
|
make %{?_smp_mflags} all modules
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
%endif
|
%endif
|
||||||
%configure --disable-static --with-kmod=no \
|
%configure --disable-static --with-kmod=no \
|
||||||
--includedir="%_includedir/%name"
|
--includedir="%{_includedir}/%{name}"
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export PATH="$PATH:/usr/sbin"
|
export PATH="$PATH:%{_prefix}/sbin"
|
||||||
b="%buildroot"
|
b=%{buildroot}
|
||||||
%if 0%{?ipset_build_kmp}
|
%if 0%{?ipset_build_kmp}
|
||||||
for flavor in %flavors_to_build; do
|
for flavor in %{flavors_to_build}; do
|
||||||
pushd "../%name-$flavor-%version/"
|
pushd "../%{name}-$flavor-%{version}/"
|
||||||
make %{?_smp_mflags} install modules_install \
|
make %{?_smp_mflags} install modules_install \
|
||||||
DESTDIR="$b" INSTALL_MOD_PATH="$b" V=1
|
DESTDIR="$b" INSTALL_MOD_PATH="$b" V=1
|
||||||
popd;
|
popd;
|
||||||
done;
|
done;
|
||||||
%endif
|
%endif
|
||||||
make %{?_smp_mflags} install DESTDIR="$b"
|
make %{?_smp_mflags} install DESTDIR="$b"
|
||||||
find "$b/%_libdir" -type f -name "*.la" -delete
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %{lname} -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%{_sbindir}/ipset
|
||||||
%_sbindir/ipset
|
%{_mandir}/man*/*
|
||||||
%_mandir/man*/*
|
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %{lname}
|
||||||
%defattr(-,root,root)
|
%{_libdir}/libipset.so.3*
|
||||||
%_libdir/libipset.so.3*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%{_libdir}/libipset.so
|
||||||
%_libdir/libipset.so
|
%{_libdir}/pkgconfig/libipset.pc
|
||||||
%_libdir/pkgconfig/libipset.pc
|
%{_includedir}/%{name}/
|
||||||
%_includedir/%name/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user