]> git.pld-linux.org Git - packages/klibc.git/blob - klibc.spec
- 0.148
[packages/klibc.git] / klibc.spec
1 #
2 # Conditional build:
3 %bcond_without  dist_kernel     # build without distribution kernel-headers
4 #
5 Summary:        Minimalistic libc subset for use with initramfs
6 Summary(pl):    Zminimalizowany podzbiór biblioteki C do u¿ywania z initramfs
7 Name:           klibc
8 Version:        0.148
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 Source0:        ftp://ftp.kernel.org/pub/linux/libs/klibc/%{name}-%{version}.tar.bz2
13 # Source0-md5:  c129ba5d61267e5fa6b774113f40a271
14 URL:            http://www.zytor.com/mailman/listinfo/klibc/
15 %{?with_dist_kernel:BuildRequires:      kernel-headers >= 2.4}
16 BuildRequires:  perl-base
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         no_install_post_strip   1
20
21 %description
22 klibc, what is intended to be a minimalistic libc subset for use with
23 initramfs. It is deliberately written for small size, minimal
24 entaglement and portability, not speed. It is definitely a work in
25 progress, and a lot of things are still missing.
26
27 %description -l pl
28 klibc w zamierzeniu ma byæ minimalistycznym podzbiorem biblioteki libc
29 do u¿ycia z initramfs. Celem jest minimalizacja, przeno¶no¶æ ale nie
30 szybko¶æ. klibc jest rozwijan± bibliotek± w zwi±zku z czym nadal
31 brakuje wielu rzeczy.
32
33 %prep
34 %setup -q
35
36 %build
37 ln -s %{_kernelsrcdir} linux
38
39 %{__make} \
40         CC=%{__cc} \
41         OPTFLAGS="%{rpmcflags} -Os -fomit-frame-pointer -falign-functions=0 \
42                 -falign-jumps=0 -falign-loops=0"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_includedir}/klibc
47 install -d $RPM_BUILD_ROOT%{_libdir}/klibc
48
49 cp -a klibc/include/* $RPM_BUILD_ROOT%{_includedir}/klibc
50 install klibc/libc.* klibc/crt0.o       $RPM_BUILD_ROOT%{_libdir}/klibc
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %dir %{_libdir}/klibc
58 %attr(755,root,root) %{_libdir}/klibc/*.so
59 %{_libdir}/klibc/*.[ao]
60 %{_includedir}/klibc
This page took 0.088316 seconds and 4 git commands to generate.