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