]>
Commit | Line | Data |
---|---|---|
71b57416 JB |
1 | Summary: musl libc - new standard library to power a new generation of Linux-based devices |
2 | Summary(pl.UTF-8): musl libc - nowa biblioteka standardowa dla urządzeń linuksowych nowej generacji | |
360b7f42 | 3 | Name: musl |
10ed8c25 JB |
4 | Version: 1.1.14 |
5 | Release: 1 | |
71b57416 JB |
6 | License: MIT |
7 | Group: Libraries | |
8 | Source0: http://www.musl-libc.org/releases/%{name}-%{version}.tar.gz | |
10ed8c25 | 9 | # Source0-md5: d529ce4a2f7f79d8c3fd4b8329417b57 |
71b57416 JB |
10 | URL: http://www.musl-libc.org/ |
11 | BuildRequires: gcc >= 5:3.2 | |
360b7f42 | 12 | BuildRequires: zlib-devel |
71b57416 | 13 | Requires: uname(release) >= 2.6.0 |
437e2736 | 14 | ExclusiveArch: %{ix86} %{x8664} x32 arm mips microblaze ppc |
71b57416 | 15 | ExcludeArch: i386 |
360b7f42 ER |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
71b57416 JB |
18 | %define _libdir %{_prefix}/%{_lib}/musl |
19 | %define _includedir %{_prefix}/include/musl | |
20 | %define _fortify_cflags %{nil} | |
21 | %define _ssp_cflags %{nil} | |
22 | ||
8717f06f | 23 | # i386, x86_64, x32, arm, mips, microblaze, ppc |
437e2736 | 24 | %ifarch x32 |
437e2736 | 25 | %define musl_arch x32 |
8717f06f JB |
26 | %else |
27 | %define musl_arch %{_target_base_arch} | |
437e2736 AM |
28 | %endif |
29 | ||
360b7f42 | 30 | %description |
71b57416 JB |
31 | musl libc is a new standard library to power a new generation of |
32 | Linux-based devices. It is lightweight, fast, simple, free, and | |
33 | strives to be correct in the sense of standards-conformance and | |
34 | safety. | |
35 | ||
36 | musl is an alternative to glibc, uClibc, dietlibc, and klibc. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | musl libc to nowa biblioteka standardowa, przeznaczona do zasilania | |
40 | urządzeń linuksowych nowej generacji. Jest lekka, szybka, prosta, | |
41 | wolnodostępna i stara się być poprawna w sensie zgodności ze | |
42 | standardami i bezpieczeństwa. | |
43 | ||
44 | musl jest alternatywą dla bibliotek glibc, uClibc, dietlibc i klibc. | |
360b7f42 ER |
45 | |
46 | %package devel | |
71b57416 JB |
47 | Summary: Development files for musl libc |
48 | Summary(pl.UTF-8): Pliki programistyczne biblioteki musl libc | |
360b7f42 | 49 | Group: Development/Libraries |
71b57416 | 50 | Requires: %{name} = %{version}-%{release} |
360b7f42 ER |
51 | |
52 | %description devel | |
71b57416 JB |
53 | Development files for musl libc. |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki programistyczne biblioteki musl libc. | |
360b7f42 ER |
57 | |
58 | %prep | |
59 | %setup -q | |
60 | ||
61 | %build | |
71b57416 JB |
62 | %configure \ |
63 | --syslibdir=/%{_lib} | |
360b7f42 ER |
64 | %{__make} |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71b57416 JB |
71 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
72 | echo '%{_libdir}' > $RPM_BUILD_ROOT%{_sysconfdir}/ld-musl-%{musl_arch}.path | |
360b7f42 ER |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
71b57416 JB |
77 | %files |
78 | %defattr(644,root,root,755) | |
79 | %doc COPYRIGHT INSTALL README WHATSNEW | |
80 | %attr(755,root,root) /%{_lib}/ld-musl-%{musl_arch}.so.1 | |
81 | %dir %{_libdir} | |
82 | %attr(755,root,root) %{_libdir}/libc.so | |
83 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld-musl-%{musl_arch}.path | |
84 | ||
360b7f42 ER |
85 | %files devel |
86 | %defattr(644,root,root,755) | |
71b57416 JB |
87 | %attr(755,root,root) %{_bindir}/musl-gcc |
88 | %{_libdir}/libc.a | |
89 | # empty stubs | |
90 | %{_libdir}/libcrypt.a | |
91 | %{_libdir}/libdl.a | |
92 | %{_libdir}/libm.a | |
93 | %{_libdir}/libpthread.a | |
94 | %{_libdir}/libresolv.a | |
95 | %{_libdir}/librt.a | |
96 | %{_libdir}/libutil.a | |
97 | %{_libdir}/libxnet.a | |
98 | # crts | |
99 | %{_libdir}/Scrt1.o | |
100 | %{_libdir}/crt*.o | |
c6997d0b | 101 | %{_libdir}/rcrt1.o |
71b57416 JB |
102 | %{_libdir}/musl-gcc.specs |
103 | %{_includedir} |