libbsd/libbsd.spec

67 lines
1.9 KiB
RPMSpec

#norootforbuild
Summary: Provides useful functions commonly found on BSD systems
Name: libbsd
Version: 0.0.1
Release: 0
Group: System Environment/Libraries
License: BSD/MIT
URL: http://libbsd.freedesktop.org/
Source: %{name}-%{version}.tar.bz2
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
Group: Development/Libraries
Summary: Provides useful functions commonly found on BSD systems
%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
Group: Development/Libraries
Requires: libbsd0 = %{version} glibc-devel
Summary: Development headers and files for libbsd
%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
%{__sed} -i -e "s@/lib@/%{_lib}@g" Makefile
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%{__make} %{?jobs:-j%jobs}
%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
%{_libdir}/libbsd.so
%{_includedir}/*
%{_mandir}/man3/*
%{_libdir}/pkgconfig/libbsd.pc
%changelog