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