dietlibc-vl.spec 3.9 KB

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