revert more supposed cleaning

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ipset?expand=0&rev=61
This commit is contained in:
Jan Engelhardt 2017-09-17 21:05:05 +00:00 committed by Git OBS Bridge
parent 508415b4cd
commit 26f0958ce8

View File

@ -104,11 +104,11 @@ when matching an entry against a set.
%prep %prep
%setup -q %setup -q
%patch1 -p1 %patch -P 1 -p1
%build %build
# build wants to call modinfo at some point # build wants to call modinfo at some point
export PATH="$PATH:%_prefix/sbin" 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
@ -128,7 +128,7 @@ done
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
export PATH="$PATH:%_prefix/sbin" 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
@ -139,7 +139,7 @@ for flavor in %flavors_to_build; do
done; done;
%endif %endif
make %{?_smp_mflags} install DESTDIR="$b" make %{?_smp_mflags} install DESTDIR="$b"
find %buildroot -type f -name "*.la" -delete -print find "$b/%_libdir/" -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