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