From 77ad1c24dee434f46db5557da11296751002f5908e7f5e1e658523989a7fcdb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 28 Dec 2015 14:13:51 +0000 Subject: [PATCH] - Split static library into libbsd-ctor-static package. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbsd?expand=0&rev=18 --- libbsd.changes | 5 +++++ libbsd.spec | 19 +++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) 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