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