]> git.pld-linux.org Git - packages/klibc.git/blame - klibc.spec
- updated to 1.5.23
[packages/klibc.git] / klibc.spec
CommitLineData
e17d518f 1#
e0821253
JK
2# TODO:
3# - warning: Installed (but unpackaged) file(s) found:
4# /usr/lib/klibc/libc.so.hash
5#
e17d518f
JB
6# Conditional build:
7%bcond_without dist_kernel # build without distribution kernel-headers
4f5f4ff4 8%bcond_with verbose # verbose build
e17d518f 9#
d3eef778 10Summary: Minimalistic libc subset for use with initramfs
8690a6c0 11Summary(pl.UTF-8): Zminimalizowany podzbiór biblioteki C do używania z initramfs
d3eef778 12Name: klibc
56e06937 13Version: 1.5.23
e0821253 14Release: 1
8c66903c 15License: BSD/GPL
d3eef778 16Group: Libraries
e0821253 17Source0: http://www.kernel.org/pub/linux/libs/klibc/Current/%{name}-%{version}.tar.bz2
56e06937 18# Source0-md5: 38a0ac99c4facd14443f4495b29aeff1
0de29ff3 19Patch0: %{name}-klcc.patch
b920e5ff 20Patch1: %{name}-make.patch
321006c0 21URL: http://www.zytor.com/mailman/listinfo/klibc/
e65c6b5d
JB
22# ld.bfd binary
23BuildRequires: binutils >= 2.20.51.0.6
580efb58 24BuildRequires: bison
25BuildRequires: flex
3f35718a 26BuildRequires: linux-libc-headers >= 7:2.6.24-1
e17d518f 27BuildRequires: perl-base
f18cfcaa 28BuildRequires: perl-modules
29BuildRequires: rpmbuild(macros) >= 1.153
d3eef778
AM
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
e17d518f 32%define no_install_post_strip 1
d3eef778
AM
33
34%description
35klibc, what is intended to be a minimalistic libc subset for use with
36initramfs. It is deliberately written for small size, minimal
37entaglement and portability, not speed. It is definitely a work in
38progress, and a lot of things are still missing.
39
df4dc817
JR
40%description -l pl.UTF-8
41klibc w zamierzeniu ma być minimalistycznym podzbiorem biblioteki libc
42do użycia z initramfs. Celem jest minimalizacja, przenośność ale nie
43szybkość. klibc jest rozwijaną biblioteką w związku z czym nadal
d3eef778
AM
44brakuje wielu rzeczy.
45
bdde959a
PS
46%package devel
47Summary: Development files for klibc
8690a6c0 48Summary(pl.UTF-8): Pliki dla programistów klibc
bdde959a 49Group: Development/Libraries
d5f6848a 50Requires: %{name} = %{version}-%{release}
bdde959a 51Requires: binutils
3f35718a 52Requires: linux-libc-headers >= 7:2.6.24-1
bdde959a
PS
53
54%description devel
55Small libc for building embedded applications - development files.
56
df4dc817
JR
57%description devel -l pl.UTF-8
58Mała libc do budowania aplikacji wbudowanych - pliki dla programistów.
bdde959a
PS
59
60%package static
61Summary: Static klibc libraries
8690a6c0 62Summary(pl.UTF-8): Biblioteki statyczne klibc
bdde959a 63Group: Development/Libraries
d5f6848a 64Requires: %{name}-devel = %{version}-%{release}
bdde959a
PS
65
66%description static
67Static klibc libraries.
68
df4dc817 69%description static -l pl.UTF-8
bdde959a
PS
70Biblioteki statyczne klibc.
71
7a694fa4 72%package utils-shared
2c601817 73Summary: Utilities dynamically linked with klibc
8690a6c0 74Summary(pl.UTF-8): Narzędzia dynamicznie zlinkowane z klibc
2c601817 75Group: Base
036f735f 76Requires: %{name} = %{version}-%{release}
7a694fa4
AM
77
78%description utils-shared
036f735f
JB
79Utilities dynamically linked with klibc.
80
df4dc817
JR
81%description utils-shared -l pl.UTF-8
82Narzędzia dynamicznie zlinkowane z klibc.
7a694fa4 83
a78269a3
JR
84%package utils-shared-debug
85Summary: Utilities dynamically linked with klibc (unstripped)
40258091 86Summary(pl.UTF-8): Narzędzia dynamicznie zlinkowane z klibc (z informacjami dla debuggera)
a78269a3
JR
87Group: Base
88Requires: %{name}-utils-shared = %{version}-%{release}
89
90%description utils-shared-debug
91Utilities dynamically linked with klibc.
40258091 92
9cab31ae 93Programs in this package have debugging information not stripped.
a78269a3
JR
94
95%description utils-shared-debug -l pl.UTF-8
96Narzędzia dynamicznie zlinkowane z klibc.
40258091
JB
97
98Programy zawarte w tym pakiecie zawierają informacje dla debuggera.
a78269a3 99
7a694fa4 100%package utils-static
2c601817 101Summary: Utilities statically linked with klibc
8690a6c0 102Summary(pl.UTF-8): Narzędzia statycznie zlinkowane z klibc
2c601817 103Group: Base
7a694fa4
AM
104
105%description utils-static
106Utilities staticly linked with klibc.
107
df4dc817
JR
108%description utils-static -l pl.UTF-8
109Narzędzia statycznie zlinkowane z klibc.
a78269a3
JR
110
111%package utils-static-debug
112Summary: Utilities statically linked with klibc (unstripped)
40258091 113Summary(pl.UTF-8): Narzędzia statycznie zlinkowane z klibc (z informacjami dla debuggera)
a78269a3
JR
114Group: Base
115Requires: %{name}-utils-static = %{version}-%{release}
116
117%description utils-static-debug
118Utilities staticly linked with klibc.
40258091 119
5018c634 120Programs in this package have debugging information not stripped.
a78269a3
JR
121
122%description utils-static-debug -l pl.UTF-8
123Narzędzia statycznie zlinkowane z klibc.
40258091
JB
124
125Programy zawarte w tym pakiecie zawierają informacje dla debuggera.
036f735f 126
d3eef778
AM
127%prep
128%setup -q
1a41b530 129%patch0 -p1
b920e5ff 130%patch1 -p1
d3eef778
AM
131
132%build
cfacef84 133cd usr/include
30162054
JB
134ln -sf /usr/include/asm .
135ln -sf /usr/include/asm-generic .
4f5f4ff4 136%ifarch sparc64
137ln -sf /usr/include/asm-sparc .
138ln -sf /usr/include/asm-sparc64 .
139%endif
3f35718a
PS
140ln -sf /usr/include/linux .
141# early-userspace needs acces to e.g. uvesafb.h.
142ln -sf /usr/include/video .
4f5f4ff4 143
cfacef84 144cd ../..
291edbfa
JB
145install -d linux
146ln -sf ../usr/include linux/include
d3eef778 147
d3eef778 148%{__make} \
8c66903c 149 ARCH=%{_target_base_arch} \
f2698199 150 HOSTCC="%{__cc}" \
e65c6b5d
JB
151 CC="%{__cc}" \
152 LD="ld.bfd" \
278b233a
AM
153 rpm_prefix=%{_prefix} \
154 rpm_bindir=%{_bindir} \
155 rpm_includedir=%{_includedir}/klibc \
156 rpm_libdir=%{_libdir} \
09055665 157 SHLIBDIR=/%{_lib} \
4f5f4ff4 158 %{?with_verbose:KBUILD_VERBOSE=1} \
d3eef778 159 OPTFLAGS="%{rpmcflags} -Os -fomit-frame-pointer -falign-functions=0 \
368a55c7 160 -falign-jumps=0 -falign-loops=0 -ffreestanding"
d3eef778
AM
161
162%install
163rm -rf $RPM_BUILD_ROOT
a8f95f0f 164install -d $RPM_BUILD_ROOT/%{_lib}
d3eef778 165install -d $RPM_BUILD_ROOT%{_includedir}/klibc
7a694fa4 166install -d $RPM_BUILD_ROOT%{_libdir}/klibc/bin-{shared,static}
d3eef778 167
cfacef84 168cp -a usr/include/* $RPM_BUILD_ROOT%{_includedir}/klibc
0de29ff3
AM
169install klcc/klcc -D $RPM_BUILD_ROOT%{_bindir}/klcc
170install klcc/klcc.1 -D $RPM_BUILD_ROOT%{_mandir}/man1/klcc.1
cfacef84 171install usr/klibc/libc.* usr/klibc/arch/%{_target_base_arch}/crt0.o usr/klibc/interp.o $RPM_BUILD_ROOT%{_libdir}/klibc
201b5da4 172install usr/klibc/klibc-*.so $RPM_BUILD_ROOT/%{_lib}
cfacef84
PS
173install usr/dash/sh.shared $RPM_BUILD_ROOT%{_libdir}/klibc/bin-shared/sh
174install usr/dash/sh.shared.g $RPM_BUILD_ROOT%{_libdir}/klibc/bin-shared/sh.g
175install usr/dash/sh $RPM_BUILD_ROOT%{_libdir}/klibc/bin-static/sh
176install usr/dash/sh.g $RPM_BUILD_ROOT%{_libdir}/klibc/bin-static/sh.g
386f9626 177install usr/kinit/*/shared/* $RPM_BUILD_ROOT%{_libdir}/klibc/bin-shared
178install usr/kinit/*/static/* $RPM_BUILD_ROOT%{_libdir}/klibc/bin-static
cfacef84
PS
179install usr/utils/shared/* $RPM_BUILD_ROOT%{_libdir}/klibc/bin-shared
180install usr/utils/static/* $RPM_BUILD_ROOT%{_libdir}/klibc/bin-static
7a694fa4 181
a78269a3
JR
182ln -s %{_libdir}/klibc/bin-shared $RPM_BUILD_ROOT%{_libdir}/klibc/bin
183
d3eef778
AM
184%clean
185rm -rf $RPM_BUILD_ROOT
186
187%files
188%defattr(644,root,root,755)
201b5da4 189%attr(755,root,root) /%{_lib}/klibc-*.so
bdde959a
PS
190
191%files devel
192%defattr(644,root,root,755)
00a0ff6f
PS
193%attr(755,root,root) %{_bindir}/klcc
194%{_includedir}/klibc
d3eef778 195%dir %{_libdir}/klibc
d3eef778 196%attr(755,root,root) %{_libdir}/klibc/*.so
bdde959a 197%{_libdir}/klibc/*.o
e65c6b5d 198%{_mandir}/man1/klcc.1*
7a694fa4 199
bdde959a
PS
200%files static
201%defattr(644,root,root,755)
202%{_libdir}/klibc/*.a
203
7a694fa4
AM
204%files utils-shared
205%defattr(644,root,root,755)
a78269a3 206%{_libdir}/klibc/bin
7a694fa4
AM
207%dir %{_libdir}/klibc/bin-shared
208%attr(755,root,root) %{_libdir}/klibc/bin-shared/*
a78269a3
JR
209%exclude %{_libdir}/klibc/bin-shared/*.g
210
211%files utils-shared-debug
212%defattr(644,root,root,755)
213%attr(755,root,root) %{_libdir}/klibc/bin-shared/*.g
7a694fa4
AM
214
215%files utils-static
216%defattr(644,root,root,755)
217%dir %{_libdir}/klibc/bin-static
218%attr(755,root,root) %{_libdir}/klibc/bin-static/*
a78269a3
JR
219%exclude %{_libdir}/klibc/bin-static/*.g
220
221%files utils-static-debug
222%defattr(644,root,root,755)
223%attr(755,root,root) %{_libdir}/klibc/bin-static/*.g
This page took 0.132728 seconds and 4 git commands to generate.