Accepting request 98112 from home:elvigia:branches:Base:System

- Use --enable-zlib and buildRequire zlib 
- run make check

OBS-URL: https://build.opensuse.org/request/show/98112
OBS-URL: https://build.opensuse.org/package/show/Base:System/kmod?expand=0&rev=6
This commit is contained in:
Cristian Rodríguez 2011-12-24 18:04:23 +00:00 committed by Git OBS Bridge
parent f47a30976e
commit f12ff053f5
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Dec 24 17:23:09 UTC 2011 - crrodriguez@opensuse.org
- Use --enable-zlib and buildRequire zlib
- run make check
-------------------------------------------------------------------
Sun Dec 18 20:16:11 UTC 2011 - jengelh@medozas.de

View File

@ -33,6 +33,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake, libtool
%endif
BuildRequires: pkgconfig, xz
BuildRequires: zlib-devel
%description
kmod is a set of tools to handle common tasks with Linux kernel
@ -86,7 +87,7 @@ fi;
%endif
# The extra --includedir gives us the possibility to detect dependent
# packages which fail to properly use pkgconfig.
%configure --includedir=%_includedir/%name-%version \
%configure --enable-zlib --includedir=%_includedir/%name-%version \
--with-rootlibdir=/%_lib --bindir=/bin
make %{?_smp_mflags}
@ -104,6 +105,9 @@ for i in depmod insmod lsmod modinfo modprobe rmmod; do
ln -s "/bin/kmod" "$b/sbin/$i";
done;
%check
make check
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig