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