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