move from /lib to /usr/lib
authorAnas Nashif <anas.nashif@intel.com>
Wed, 24 Oct 2012 21:48:29 +0000 (14:48 -0700)
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Fri, 7 Nov 2014 11:26:35 +0000 (12:26 +0100)
packaging/acl.spec

index 07e8b1a..3bc2199 100644 (file)
@@ -45,9 +45,8 @@ CFLAGS="$RPM_OPT_FLAGS"
 %configure \
        --prefix=/ \
        --exec-prefix=/ \
-       --sbindir=/bin \
-       --libdir=/%{_lib} \
-       --libexecdir=/%{_lib} \
+       --libdir=%{_libdir} \
+       --libexecdir=%{_libdir} \
        --enable-gettext=no \
        --disable-static \
        --with-pic
@@ -62,9 +61,8 @@ export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
 /usr/bin/make install DIST_MANIFEST="$DIST_INSTALL"
 /usr/bin/make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
 /usr/bin/make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
-%{__mkdir_p} %{buildroot}%{_libdir}
-%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/lib%{name}.so) %{buildroot}%{_libdir}/lib%{name}.so
-%{__rm} -v %{buildroot}/%{_lib}/lib%{name}.{la,so}
+
+rm -f %{buildroot}/%{_libdir}/*.{a,la}
 
 %post -n %lname -p /sbin/ldconfig
 
@@ -94,5 +92,5 @@ export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
 
 %files -n %lname
 %defattr(755,root,root,755)
-/%{_lib}/libacl.so.1*
+%{_libdir}/libacl.so.1*