diff --git a/fakeroot.spec b/fakeroot.spec index 3dc9650..29e3a37 100644 --- a/fakeroot.spec +++ b/fakeroot.spec @@ -46,13 +46,13 @@ mkdir obj-sysv obj-tcp ( cd obj-sysv CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=/usr --mandir=/usr/share/man \ - --libdir=/usr/lib --program-suffix=-sysv --disable-static + --libdir=%_libdir --program-suffix=-sysv --disable-static make ) ( cd obj-tcp CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=/usr \ - --mandir=/usr/share/man --libdir=/usr/lib --with-ipc=tcp \ + --mandir=/usr/share/man --libdir=%_libdir --with-ipc=tcp \ --program-suffix=-tcp --disable-static make ) @@ -60,17 +60,17 @@ mkdir obj-sysv obj-tcp %install unset POSIXLY_CORRECT make -C obj-tcp DESTDIR="$RPM_BUILD_ROOT" install -mv $RPM_BUILD_ROOT/usr/lib/libfakeroot-0.so \ - $RPM_BUILD_ROOT/usr/lib/libfakeroot-tcp.so +mv $RPM_BUILD_ROOT/%_libdir/libfakeroot-0.so \ + $RPM_BUILD_ROOT/%_libdir/libfakeroot-tcp.so make -C obj-sysv DESTDIR="$RPM_BUILD_ROOT" install -mv $RPM_BUILD_ROOT/usr/lib/libfakeroot-0.so \ - $RPM_BUILD_ROOT/usr/lib/libfakeroot-sysv.so +mv $RPM_BUILD_ROOT/%_libdir/libfakeroot-0.so \ + $RPM_BUILD_ROOT/%_libdir/libfakeroot-sysv.so ln -fs /usr/bin/fakeroot-sysv $RPM_BUILD_ROOT/usr/bin/fakeroot ln -fs /usr/bin/faked $RPM_BUILD_ROOT/usr/bin/faked # cleanup -rm $RPM_BUILD_ROOT/usr/lib/libfakeroot.*a -rm $RPM_BUILD_ROOT/usr/lib/libfakeroot.so +rm $RPM_BUILD_ROOT/%_libdir/libfakeroot.*a +rm $RPM_BUILD_ROOT/%_libdir/libfakeroot.so rm -fr $RPM_BUILD_ROOT/%{_mandir}/es rm -fr $RPM_BUILD_ROOT/%{_mandir}/fr rm -fr $RPM_BUILD_ROOT/%{_mandir}/sv