run %configure to install correctly
[platform/upstream/libnl2.git] / packaging / libnl2.spec
index 2248f10..ecb95da 100644 (file)
@@ -1,11 +1,9 @@
-#sbs-git:slp/pkgs/l/libnl2
-
 Name:       libnl2
 Summary:    Library for netlink sockets
 Version:    2.0
 Release:    2
 Group:      System/Network
-License:    GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
+License:    LGPL-2.1
 Source0:    %{name}-%{version}.tar.gz
 BuildRequires:  bison
 BuildRequires:  flex
@@ -30,25 +28,24 @@ libnl2.
 %prep
 %setup -q
 
-./autogen.sh
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" \
-       ./configure \
-       --prefix=/usr
+%autogen.sh
+%configure 
 
-#No much jobs, make sure -j1
-#make %{?jobs:-j%jobs}
 make -j1
 
 %install
-rm -rf %{buildroot}
 %make_install
+rm -f %{buildroot}/etc/libnl/pktloc
+
+%post -p /sbin/ldconfig
 
-rm %{buildroot}/usr/etc/libnl/pktloc
+%postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root,-)
+%license COPYING
 %{_libdir}/libnl*.so.*
 
 %files devel