rpms/fakeroot/devel fakeroot.spec,1.6,1.7

Axel Thimm athimm at fedoraproject.org
Sun Oct 5 10:38:56 UTC 2008


Author: athimm

Update of /cvs/extras/rpms/fakeroot/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9572/fakeroot/devel

Modified Files:
	fakeroot.spec 
Log Message:
Update to 1.9.7, default to tcp over sysv.


Index: fakeroot.spec
===================================================================
RCS file: /cvs/extras/rpms/fakeroot/devel/fakeroot.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- fakeroot.spec	25 Aug 2008 10:24:34 -0000	1.6
+++ fakeroot.spec	5 Oct 2008 10:38:25 -0000	1.7
@@ -1,7 +1,7 @@
 Summary: Gives a fake root environment
 Name: fakeroot
-Version: 1.9.6
-Release: 17%{?dist}
+Version: 1.9.7
+Release: 18%{?dist}
 License: GPL+
 Group: Development/Tools
 URL: http://fakeroot.alioth.debian.org/
@@ -31,18 +31,43 @@
 done
 
 %build
+for type in sysv tcp; do
+mkdir obj-$type
+cd obj-$type
+cat >> configure << 'EOF'
+#! /bin/sh
+exec ../configure "$@"
+EOF
+chmod +x configure
 %configure \
   --disable-dependency-tracking \
   --disable-static \
-  --libdir=%{_libdir}/libfakeroot
+  --libdir=%{_libdir}/libfakeroot \
+  --with-ipc=$type \
+  --program-suffix=-$type
 make
+cd ..
+done
 
 %install
 rm -rf %{buildroot}
-make install libdir=%{_libdir}/libfakeroot DESTDIR=%{buildroot}
+for type in sysv tcp; do
+  make -C obj-$type install libdir=%{_libdir}/libfakeroot DESTDIR=%{buildroot}
+  chmod 644 %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so 
+  mv %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so \
+     %{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
+  rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.so
+  rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.*a*
+done
+
+ln -s faked-tcp %{buildroot}%{_bindir}/faked
+ln -s fakeroot-tcp %{buildroot}%{_bindir}/fakeroot
+ln -s libfakeroot-tcp.so %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so
 
 %check
-make check
+for type in sysv tcp; do
+  make -C obj-$type check
+done
 
 %clean
 rm -rf %{buildroot}
@@ -50,24 +75,28 @@
 %files
 %defattr(-,root,root,-)
 %doc COPYING AUTHORS BUGS DEBUG doc/README.saving debian/changelog
+%{_bindir}/faked-*
 %{_bindir}/faked
+%{_bindir}/fakeroot-*
 %{_bindir}/fakeroot
-%{_mandir}/man1/faked.1.gz
-%{_mandir}/man1/fakeroot.1.gz
-%lang(es) %{_mandir}/es/man1/faked.1.gz
-%lang(es) %{_mandir}/es/man1/fakeroot.1.gz
-%lang(fr) %{_mandir}/fr/man1/faked.1.gz
-%lang(fr) %{_mandir}/fr/man1/fakeroot.1.gz
-%lang(sv) %{_mandir}/sv/man1/faked.1.gz
-%lang(sv) %{_mandir}/sv/man1/fakeroot.1.gz
-%lang(nl) %{_mandir}/nl/man1/faked.1.gz
-%lang(nl) %{_mandir}/nl/man1/fakeroot.1.gz
+%{_mandir}/man1/faked-*.1*
+%{_mandir}/man1/fakeroot-*.1*
+%lang(es) %{_mandir}/es/man1/faked-*.1*
+%lang(es) %{_mandir}/es/man1/fakeroot-*.1*
+%lang(fr) %{_mandir}/fr/man1/faked-*.1*
+%lang(fr) %{_mandir}/fr/man1/fakeroot-*.1*
+%lang(sv) %{_mandir}/sv/man1/faked-*.1*
+%lang(sv) %{_mandir}/sv/man1/fakeroot-*.1*
+%lang(nl) %{_mandir}/nl/man1/faked-*.1*
+%lang(nl) %{_mandir}/nl/man1/fakeroot-*.1*
 %dir %{_libdir}/libfakeroot
+%{_libdir}/libfakeroot/libfakeroot-*.so
 %{_libdir}/libfakeroot/libfakeroot-0.so
-%{_libdir}/libfakeroot/libfakeroot.so
-%exclude %{_libdir}/libfakeroot/libfakeroot.la
 
 %changelog
+* Fri Oct  3 2008 Axel Thimm <Axel.Thimm at ATrpms.net> - 1.9.7-18
+- Update to 1.9.7.
+
 * Sun Aug 24 2008 Axel Thimm <Axel.Thimm at ATrpms.net> - 1.9.6-17
 - %%check || : does not work anymore.
 




More information about the fedora-extras-commits mailing list