File musl.spec of Package musl

%global debug_package %{nil}

Summary: New Standard C Library
Name:	 musl
Version: 1.1.12
Release: 1
Source0: http://www.musl-libc.org/releases/%{name}-%{version}.tar.gz
License: LGPLv2+
Group:	 Development/C
URL:	 http://www.musl-libc.org/
BuildRequires: zlib-devel

%description
musl is a new standard library to power Linux-based devices.  It is
lightweight, fast, simple, free, and strives to be correct in the sense of
standards-conformance and safety.

%package devel
Summary:	Development files for %{name}
Group:		Development/C
License:	LGPLv2+
Conflicts:  glibc, glibc-headers

%description devel
musl is a new standard library to power Linux-based devices.  It is
lightweight, fast, simple, free, and strives to be correct in the sense of
standards-conformance and safety.

%prep
%setup -q

%build
sed 's!/usr/local!/usr/lib!' dist/config.mak > config.mak
# set arch:
%ifnarch %ix86
sed -i "s/i386/%_arch/" config.mak
%endif
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files devel
%doc INSTALL README WHATSNEW 
%{_libdir}/lib*.so
%{_libdir}/*.o
%{_libdir}/lib*.a
%{_libdir}/musl-gcc.specs
%{_includedir}/*
%{_bindir}/*

%changelog
* Mon Dec 14 2015 Huaren Zhong <huaren.zhong@gmail.com> 1.1.12
- Rebuild for Fedora
* Thu Jan 12 2012 tv <tv> 0.8.3-0.1.mga2
+ Revision: 195390
- imported package musl