]> git.pld-linux.org Git - packages/musl.git/blame - musl.spec
Up to 1.2.3.
[packages/musl.git] / musl.spec
CommitLineData
71b57416
JB
1Summary: musl libc - new standard library to power a new generation of Linux-based devices
2Summary(pl.UTF-8): musl libc - nowa biblioteka standardowa dla urządzeń linuksowych nowej generacji
360b7f42 3Name: musl
05713c54 4Version: 1.2.3
88f43c0f 5Release: 1
71b57416
JB
6License: MIT
7Group: Libraries
8Source0: http://www.musl-libc.org/releases/%{name}-%{version}.tar.gz
05713c54 9# Source0-md5: a507ae4f7f20bcfe566d8eb65c1af73e
b5db195f 10Patch0: %{name}-gcc.patch
71b57416
JB
11URL: http://www.musl-libc.org/
12BuildRequires: gcc >= 5:3.2
360b7f42 13BuildRequires: zlib-devel
71b57416 14Requires: uname(release) >= 2.6.0
437e2736 15ExclusiveArch: %{ix86} %{x8664} x32 arm mips microblaze ppc
71b57416 16ExcludeArch: i386
360b7f42
ER
17BuildRoot: %{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
8717f06f 24# i386, x86_64, x32, arm, mips, microblaze, ppc
437e2736 25%ifarch x32
437e2736 26%define musl_arch x32
8717f06f
JB
27%else
28%define musl_arch %{_target_base_arch}
437e2736
AM
29%endif
30
360b7f42 31%description
71b57416
JB
32musl libc is a new standard library to power a new generation of
33Linux-based devices. It is lightweight, fast, simple, free, and
34strives to be correct in the sense of standards-conformance and
35safety.
36
37musl is an alternative to glibc, uClibc, dietlibc, and klibc.
38
39%description -l pl.UTF-8
40musl libc to nowa biblioteka standardowa, przeznaczona do zasilania
41urządzeń linuksowych nowej generacji. Jest lekka, szybka, prosta,
42wolnodostępna i stara się być poprawna w sensie zgodności ze
43standardami i bezpieczeństwa.
44
45musl jest alternatywą dla bibliotek glibc, uClibc, dietlibc i klibc.
360b7f42
ER
46
47%package devel
71b57416
JB
48Summary: Development files for musl libc
49Summary(pl.UTF-8): Pliki programistyczne biblioteki musl libc
360b7f42 50Group: Development/Libraries
71b57416 51Requires: %{name} = %{version}-%{release}
360b7f42
ER
52
53%description devel
71b57416
JB
54Development files for musl libc.
55
56%description devel -l pl.UTF-8
57Pliki programistyczne biblioteki musl libc.
360b7f42
ER
58
59%prep
60%setup -q
b5db195f 61%patch0 -p1
360b7f42
ER
62
63%build
71b57416
JB
64%configure \
65 --syslibdir=/%{_lib}
2628abbe
ER
66
67# WRAPCC_GCC that will be used as $REALGCC fallback in musl-gcc script
68# regardless what is value when this package is built (ccache, etc)
69%{__make} \
70 WRAPCC_GCC="%{_target_platform}-gcc"
360b7f42
ER
71
72%install
73rm -rf $RPM_BUILD_ROOT
74%{__make} install \
75 DESTDIR=$RPM_BUILD_ROOT
76
71c32529
ER
77# move actual library to /lib to handle /usr mounts
78mv $RPM_BUILD_ROOT{%{_libdir}/libc.so,/%{_lib}/ld-musl-%{musl_arch}.so.1}
79ln -s /%{_lib}/ld-musl-%{musl_arch}.so.1 $RPM_BUILD_ROOT%{_libdir}/libc.so
80
71b57416
JB
81install -d $RPM_BUILD_ROOT%{_sysconfdir}
82echo '%{_libdir}' > $RPM_BUILD_ROOT%{_sysconfdir}/ld-musl-%{musl_arch}.path
360b7f42
ER
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
71b57416
JB
87%files
88%defattr(644,root,root,755)
89%doc COPYRIGHT INSTALL README WHATSNEW
90%attr(755,root,root) /%{_lib}/ld-musl-%{musl_arch}.so.1
91%dir %{_libdir}
92%attr(755,root,root) %{_libdir}/libc.so
93%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld-musl-%{musl_arch}.path
94
360b7f42
ER
95%files devel
96%defattr(644,root,root,755)
71b57416
JB
97%attr(755,root,root) %{_bindir}/musl-gcc
98%{_libdir}/libc.a
99# empty stubs
100%{_libdir}/libcrypt.a
101%{_libdir}/libdl.a
102%{_libdir}/libm.a
103%{_libdir}/libpthread.a
104%{_libdir}/libresolv.a
105%{_libdir}/librt.a
106%{_libdir}/libutil.a
107%{_libdir}/libxnet.a
108# crts
109%{_libdir}/Scrt1.o
110%{_libdir}/crt*.o
c6997d0b 111%{_libdir}/rcrt1.o
71b57416
JB
112%{_libdir}/musl-gcc.specs
113%{_includedir}
This page took 0.104756 seconds and 4 git commands to generate.