fakeroot-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Summary: Gives a fake root environment
  2. Summary(ja): 疑似 root 環境を提供するツール
  3. Name: fakeroot
  4. Version: 1.12.4
  5. Release: 1%{?_dist_release}
  6. License: GPL+
  7. Group: Development/Tools
  8. URL: http://fakeroot.alioth.debian.org/
  9. Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{ver}-root
  11. BuildRequires: sharutils, util-linux-ng
  12. Requires: util-linux-ng
  13. %description
  14. Fakeroot gives a fake root environment.
  15. %prep
  16. %setup
  17. %build
  18. for type in sysv tcp; do
  19. mkdir obj-$type
  20. cd obj-$type
  21. cat >> configure << 'EOF'
  22. #! /bin/sh
  23. exec ../configure "$@"
  24. EOF
  25. chmod +x configure
  26. %configure \
  27. --disable-dependency-tracking \
  28. --disable-static \
  29. --libdir=%{_libdir}/libfakeroot \
  30. --with-ipc=$type \
  31. --program-suffix=-$type
  32. make
  33. cd ..
  34. done
  35. %install
  36. rm -rf %{buildroot}
  37. for type in sysv tcp; do
  38. make -C obj-$type install libdir=%{_libdir}/libfakeroot DESTDIR=%{buildroot}
  39. chmod 644 %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so
  40. mv %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so \
  41. %{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
  42. strip -s %{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
  43. rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.so
  44. rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.*a*
  45. done
  46. ln -s faked-tcp %{buildroot}%{_bindir}/faked
  47. ln -s fakeroot-tcp %{buildroot}%{_bindir}/fakeroot
  48. ln -s libfakeroot-tcp.so %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so
  49. %clean
  50. rm -rf %buildroot
  51. %post
  52. /sbin/ldconfig -n %{_libdir}/libfakeroot
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc COPYING AUTHORS BUGS DEBUG doc/README.saving debian/changelog
  56. %{_bindir}/faked-*
  57. %{_bindir}/faked
  58. %{_bindir}/fakeroot-*
  59. %{_bindir}/fakeroot
  60. %{_mandir}/man1/faked-*.1*
  61. %{_mandir}/man1/fakeroot-*.1*
  62. %lang(es) %{_mandir}/es/man1/faked-*.1*
  63. %lang(es) %{_mandir}/es/man1/fakeroot-*.1*
  64. %lang(fr) %{_mandir}/fr/man1/faked-*.1*
  65. %lang(fr) %{_mandir}/fr/man1/fakeroot-*.1*
  66. %lang(sv) %{_mandir}/sv/man1/faked-*.1*
  67. %lang(sv) %{_mandir}/sv/man1/fakeroot-*.1*
  68. %lang(nl) %{_mandir}/nl/man1/faked-*.1*
  69. %lang(nl) %{_mandir}/nl/man1/fakeroot-*.1*
  70. %dir %{_libdir}/libfakeroot
  71. %{_libdir}/libfakeroot/libfakeroot-*.so
  72. %{_libdir}/libfakeroot/libfakeroot-0.so
  73. %changelog
  74. * Tue Feb 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.12.4-1
  75. - new upstream release
  76. - build with --with-ipc=tcp and --with-ipc=sysv, default is tcp.
  77. - fakeroot-{tcp,sysv}
  78. * Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.5.10-1vl5
  79. - applied new versioning policy, spec in utf-8
  80. - removed *.la
  81. * Sun Jul 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5.10-0vl1
  82. - new upstream release
  83. - rebuilt with new toolchain
  84. * Wed Jun 18 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.3-0vl1
  85. - build for Vine Linux