uClibc-ng-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Name: uClibc-ng
  2. Summary: C library for embedded Linux
  3. Summary(ja): 組み込みLinux用のCライブラリ
  4. Version: 1.0.39
  5. Release: 1%{?_dist_release}
  6. Group: programming
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: LGPLv2
  10. URL: https://uclibc-ng.org/
  11. Source0: https://downloads.uclibc-ng.org/releases/%{version}/%{name}-%{version}.tar.xz
  12. Source1: uClibc-ng.config
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: kernel-headers
  15. %global debug_package %{nil}
  16. # This package only contains a static library
  17. %description
  18. uClibc-ng is a small C library for developing embedded Linux systems.
  19. It is much smaller than the GNU C Library, but nearly all applications
  20. supported by glibc also work perfectly with uClibc-ng.
  21. %package devel
  22. Summary: Header files and libraries for uClibc-ng library
  23. Summary(ja): Header files and libraries for uClibc-ng library
  24. Group: Development/Libraries
  25. Provides: uClibc = %{version}-%{release}
  26. Provides: uClibc-static = %{version}-%{release}
  27. Obsoletes: uClibc-devel < 1.0.0
  28. %description devel
  29. uClibc-ng is a small C library for developing embedded Linux systems.
  30. It is much smaller than the GNU C Library, but nearly all applications
  31. supported by glibc also work perfectly with uClibc-ng.
  32. This package contains the header files and libraries
  33. needed for uClibc-ng package.
  34. %prep
  35. %setup -q -n %{name}-%{version}
  36. iconv -f windows-1252 -t utf-8 README >README.pom
  37. mv README.pom README
  38. mkdir kernel-include
  39. cp -a /usr/include/asm kernel-include
  40. cp -a /usr/include/asm-generic kernel-include
  41. cp -a /usr/include/linux kernel-include
  42. %build
  43. arch=`uname -m | sed -e 's/i.86/i386/'`
  44. echo "TARGET_$arch=y" >.config
  45. echo "TARGET_ARCH=\"$arch\"" >>.config
  46. cat %{SOURCE1} >>.config
  47. yes "" | make oldconfig %{?_smp_mflags}
  48. make V=1 %{?_smp_mflags}
  49. %install
  50. rm -rf %{buildroot}
  51. mkdir -p %{buildroot}/lib
  52. make install PREFIX="%{buildroot}/"
  53. make install_headers PREFIX="%{buildroot}/" DEVEL_PREFIX=""
  54. cp -a kernel-include/* %{buildroot}/include/
  55. # move libraries to proper subdirectory
  56. mkdir -p %{buildroot}/%{_libdir}/uClibc
  57. mv %{buildroot}/lib/* %{buildroot}/%{_libdir}/uClibc/
  58. rm -rf %{buildroot}/lib/
  59. # move the header files to /usr subdirectory
  60. mkdir -p %{buildroot}/%{_includedir}/uClibc
  61. mv %{buildroot}/include/* %{buildroot}/%{_includedir}/uClibc
  62. rm -rf %{buildroot}/include/
  63. %files devel
  64. %defattr(-,root,root,-)
  65. %license COPYING.LIB*
  66. %doc README MAINTAINERS
  67. %doc docs/Glibc_vs_uClibc_Differences.txt docs/uClibc_vs_SuSv3.txt docs/porting.txt
  68. %{_includedir}/uClibc
  69. %{_libdir}/uClibc
  70. %changelog
  71. * Thu Nov 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.39-1
  72. - new upstream release.
  73. * Thu Mar 25 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.37-1
  74. - new upstream release.
  75. * Sat Oct 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.32-1
  76. - initial build of uClibc-ng.
  77. * Mon Nov 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.33.2-1
  78. - update to 0.9.33.2
  79. - update config
  80. * Mon May 23 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.32-1.rc3
  81. - initial build for Vine Linux
  82. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.32-0.2.rc2
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  84. * Mon Feb 7 2011 Tom Callaway <spot@fedoraproject.org> - 0.9.32-0.1.rc2
  85. - update config for 0.9.32-rc2, busybox
  86. - patch getutent
  87. * Tue Nov 9 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 0.9.31-2
  88. - update to 0.9.31
  89. * Fri Jun 5 2009 Ivana Varekova <varekova@redhat.com> - 0.9.30.1-2
  90. - initial build for Red Hat