diff --git a/libbsd.changes b/libbsd.changes index c6a5824..015173f 100644 --- a/libbsd.changes +++ b/libbsd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 28 14:13:16 UTC 2015 - idonmez@suse.com + +- Split static library into libbsd-ctor-static package. + ------------------------------------------------------------------- Sat Dec 26 16:57:51 UTC 2015 - mpluskal@suse.com diff --git a/libbsd.spec b/libbsd.spec index 578bf5d..139634d 100644 --- a/libbsd.spec +++ b/libbsd.spec @@ -62,6 +62,17 @@ 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 ctor-static +Summary: Development headers and files for libbsd +Group: Development/Libraries +Requires: libbsd = %{version}-%{release} +Requires: pkgconfig + +%description ctor-static +The libbsd-ctor static library is required if setproctitle() is to be used +when libbsd is loaded via dlopen() from a threaded program. This can be +configured using "pkg-config --libs libbsd-ctor". + %prep %setup -q @@ -89,8 +100,12 @@ find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print %defattr(-,root,root) %{_includedir}/bsd %{_libdir}/libbsd.so -%{_libdir}/libbsd-ctor.a %{_mandir}/man3/* -%{_libdir}/pkgconfig/*.pc +%{_libdir}/pkgconfig/libbsd.pc +%{_libdir}/pkgconfig/libbsd-overlay.pc + +%files ctor-static +%{_libdir}/%{name}-ctor.a +%{_libdir}/pkgconfig/%{name}-ctor.pc %changelog