SHA256
1
0
forked from pool/ipset

revert all the pointless style changes

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ipset?expand=0&rev=103
This commit is contained in:
Jan Engelhardt 2021-08-04 10:04:47 +00:00 committed by Git OBS Bridge
parent 0a6f4fb1f2
commit d5e8609187

View File

@ -33,20 +33,20 @@ Group: Productivity/Networking/Security
URL: https://ipset.netfilter.org/ URL: https://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
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: pkgconfig >= 0.21 BuildRequires: pkg-config >= 0.21
BuildRequires: pkgconfig(libmnl) >= 1 BuildRequires: pkgconfig(libmnl) >= 1
%if 0%{?ipset_build_kmp} %if 0%{?ipset_build_kmp}
BuildRequires: %{kernel_module_package_buildreqs} BuildRequires: %kernel_module_package_buildreqs
BuildRequires: kernel-devel >= 2.6.39 BuildRequires: kernel-devel >= 2.6.39
BuildRequires: kmod-compat BuildRequires: kmod-compat
%kernel_module_package -p %{name}-preamble %kernel_module_package -p %name-preamble
%endif %endif
%description %description
@ -77,11 +77,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
@ -91,7 +91,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
@ -108,49 +108,49 @@ when matching an entry against a set.
export PATH="$PATH:%_sbindir" export PATH="$PATH:%_sbindir"
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="%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor" \ --with-kbuild="%_prefix/src/linux-obj/%_target_cpu/$flavor" \
--with-ksource="%{_prefix}/src/linux" \ --with-ksource="%_prefix/src/linux" \
--includedir="%{_includedir}/%{name}" --includedir="%_includedir/%name"
%make_build all modules %make_build 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_build %make_build
%install %install
export PATH="$PATH:%_sbindir" export PATH="$PATH:%_sbindir"
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_install %make_install
find %{buildroot} -type f -name "*.la" -delete -print 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
%{_sbindir}/ipset* %_sbindir/ipset*
%{_mandir}/man*/* %_mandir/man*/*
%files -n %{lname} %files -n %lname
%{_libdir}/libipset.so.13* %_libdir/libipset.so.13*
%files devel %files devel
%{_libdir}/libipset.so %_libdir/libipset.so
%{_libdir}/pkgconfig/libipset.pc %_libdir/pkgconfig/libipset.pc
%{_includedir}/%{name}/ %_includedir/%name/
%changelog %changelog