#norootforbuild Name: libbsd Version: 0.3.0 Release: 0 License: BSD/MIT Summary: Provides useful functions commonly found on BSD systems Url: http://libbsd.freedesktop.org/ Group: System Environment/Libraries Source: %{name}-%{version}.tar.bz2 BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. %package -n libbsd0 Summary: Provides useful functions commonly found on BSD systems Group: Development/Libraries %description -n libbsd0 This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. %package devel Summary: Development headers and files for libbsd Group: Development/Libraries Requires: glibc-devel Requires: libbsd0 = %{version} %description devel This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. %prep %setup -q %build export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" sed -i -e 's@${exec_prefix}/lib@/%{_lib}@g' -e 's@${prefix}/lib@%{_libdir}@g' Makefile make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} rm -f %{buildroot}%{_libdir}/*.a %post -n libbsd0 -p /sbin/ldconfig %postun -n libbsd0 -p /sbin/ldconfig %clean rm -rf %{buildroot} %files -n libbsd0 %defattr(-, root, root) /%{_lib}/libbsd.so.0* %files devel %defattr(-,root,root) %doc ChangeLog %dir %{_includedir}/bsd %dir %{_includedir}/bsd/netinet %dir %{_includedir}/bsd/sys %{_includedir}/bsd/*.h %{_includedir}/bsd/netinet/*.h %{_includedir}/bsd/sys/*.h %{_includedir}/*.h %{_libdir}/libbsd.so %{_mandir}/man3/* %{_libdir}/pkgconfig/*.pc %changelog