dietlibc-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. Summary: A small libc implementation
  2. Summary(ja): 小さな libc の実装
  3. Name: dietlibc
  4. Version: 0.31
  5. Release: 1%{?_dist_release}
  6. Group: Development/Libraries
  7. License: GPL
  8. Url: http://www.fefe.de/dietlibc/
  9. ExclusiveArch: i386 x86_64 alpha ppc
  10. Source0: %{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Patch1: dietlibc-0.28-setpriority.patch
  13. Patch3: dietlibc-0.24-gnuokay.patch
  14. Patch10: dietlibc-0.29-scall.patch
  15. Patch30: dietlibc-0.30-longdouble.patch
  16. Patch31: dietlibc-0.31-defpath.patch
  17. Patch32: dietlibc-0.31-stacksmash.patch
  18. Patch33: dietlibc-0.31-stacksmash-dyn.patch
  19. %description
  20. A small libc implementation
  21. %description -l ja
  22. 小さな libc の実装
  23. %prep
  24. %setup -q
  25. %patch1 -p1 -b .nice
  26. %patch3 -p1 -b .gnuokay
  27. %patch10 -p1 -b .scall
  28. %patch30 -p1 -b .longdouble
  29. %patch31 -p1 -b .defpath
  30. %patch32 -p1 -b .stacksmash
  31. %patch33 -p1 -b .stacksmash-dyn
  32. sed -i -e 's!strip !: !g' Makefile
  33. %global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -Os
  34. %global basemakeflags prefix=%_libdir/dietlibc BINDIR=%_bindir MAN1DIR=%_mandir/man1 COMMENT=: CFLAGS="$RPM_OPT_FLAGS %fixcflags" PDIET=%_libdir/dietlibc
  35. %global makeflags %basemakeflags
  36. %build
  37. make %makeflags all %{?_smp_mglags}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make %makeflags DESTDIR=$RPM_BUILD_ROOT install
  41. ln -s lib-%_arch ${RPM_BUILD_ROOT}%_libdir/dietlibc/lib-%_arch-%_vendor
  42. chmod a-x $RPM_BUILD_ROOT%_libdir/dietlibc/lib-*/*.o
  43. rm -f $RPM_BUILD_ROOT%_bindir/dnsd
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files
  47. %defattr(-,root,root)
  48. %doc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO
  49. %{_bindir}/diet
  50. %{_libdir}/dietlibc
  51. %{_mandir}/man*/*
  52. %changelog
  53. * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.31-1
  54. - applied new versioning policy
  55. - spec in UTF-8
  56. * Sat Sep 08 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.31-0vl1
  57. - new upstream release
  58. * Fri Jun 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.25-0vl1
  59. - new upstream release
  60. * Tue Dec 10 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.21-2vl1
  61. - based on 0.21-2 from Rawhide and built for Vine Linux
  62. * Tue Nov 19 2002 Bill Nottingham <notting@redhat.com>
  63. - use the right elf definition for hammer
  64. * Fri Nov 1 2002 Jeremy Katz <katzj@redhat.com>
  65. - update to 0.21
  66. - stop applying patches already upstream
  67. - i386 optimized getenv should work now
  68. * Tue Oct 22 2002 Jeremy Katz <katzj@redhat.com>
  69. - also build on alpha, x86_64, and ppc
  70. - add a patch so that the ppc64 kernel still builds for ppc
  71. * Tue Aug 13 2002 Jeremy Katz <katzj@redhat.com>
  72. - apply patch to fix fwrite with empty strings from upstream cvs
  73. * Fri Aug 9 2002 Jeremy Katz <katzj@redhat.com>
  74. - apply patch to fix calloc from upstream cvs
  75. * Fri Aug 9 2002 Jeremy Katz <katzj@redhat.com>
  76. - update to 0.19
  77. - __thread patch is present, so don't apply anymore
  78. * Wed Jul 10 2002 Erik Troan <ewt@redhat.com>
  79. - upgraded to 0.18
  80. - added patch to work around __thread being a gcc 3.1 keyword
  81. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  82. - automated rebuild
  83. * Thu Mar 14 2002 Jeremy Katz <katzj@redhat.com>
  84. - remove the i386 optimized getenv since it seems to break when you have
  85. two variables that start out the same (eg LANG and LANGKEY)
  86. * Tue Feb 26 2002 Erik Troan <ewt@redhat.com>
  87. - updated to 0.15 -- no more RH specific patches required
  88. * Wed Feb 20 2002 Jeremy Katz <katzj@redhat.com>
  89. - update to 0.14 which includes a lot of Erik's patches
  90. - include the man page
  91. - munge a few patches
  92. - we want to allow linking against glibc objects
  93. * Mon Feb 4 2002 Bill Nottingham <notting@redhat.com>
  94. - add fdatasync
  95. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  96. - automated rebuild
  97. * Sat Dec 15 2001 Erik Troan <ewt@redhat.com>
  98. - fixed putenv to remove environment variables
  99. * Fri Dec 07 2001 Erik Troan <ewt@redhat.com>
  100. - added fnmatch() fix
  101. * Fri Nov 09 2001 Erik Troan <ewt@redhat.com>
  102. - initial packaging