]> git.pld-linux.org Git - packages/dietlibc.git/blob - dietlibc.spec
- more fixes but still NYF.
[packages/dietlibc.git] / dietlibc.spec
1 Summary:        C library optimized for size
2 Name:           dietlibc
3 Version:        0.8
4 Release:        1
5 License:        GPL
6 Group:          Development/Libraries
7 Group(de):      Entwicklung/Libraries
8 Group(fr):      Development/Librairies
9 Group(pl):      Programowanie/Biblioteki
10 Source0:        http://www.fefe.de/dietlibc/%{name}-%{version}.tar.bz2
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 Small libc for building embedded applications.
15
16 %package devel
17 Summary:        Development files for dietlibc
18 Group:          Development/Libraries
19 Group(de):      Entwicklung/Libraries
20 Group(fr):      Development/Librairies
21 Group(pl):      Programowanie/Biblioteki
22 Requires:       %{name} = %{version}
23
24 %description devel
25 Small libc for building embedded applications.
26
27 %prep
28 %setup -q -n %{name}
29 ( cd include ; ln -s /usr/src/linux/include/linux . )
30 ( cd include ; ln -s /usr/src/linux/include/asm-i386 asm )
31
32 %build
33 # Override normal cflags with optimization for size
34 %{__make} CFLAGS="%{!?debug:$RPM_OPT_FLAGS -Os -fomit-frame-pointer }%{?debug:-O0 -g} \
35         -nostdinc -I%{_libdir}/gcc-lib/%{_host_alias}/2.95.3/include"
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 rm include/asm include/linux
40 %{__make} prefix=%{_prefix} INSTALLPREFIX=$RPM_BUILD_ROOT install
41
42 gzip -9nf README THANKS CAVEAT BUGS AUTHOR
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc *.gz
50
51 %files devel
52 %defattr(644,root,root,755)
53 %doc CHANGES TODO
54 %{_datadir}/dietlibc/*
55 %{_libdir}/*
This page took 0.072084 seconds and 4 git commands to generate.