From 5033cb2ff986e0d997fb3ff13ac233e2a310aac59b9ea906e502506740b00830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Sat, 13 Dec 2014 15:26:10 +0000 Subject: [PATCH] Accepting request 265073 from home:posophe:branches:devel:libraries:c_c++ Split out library OBS-URL: https://build.opensuse.org/request/show/265073 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/FastCGI?expand=0&rev=34 --- FastCGI.changes | 7 +++++++ FastCGI.spec | 27 ++++++++++++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/FastCGI.changes b/FastCGI.changes index fb3a7a1..8cc65f6 100644 --- a/FastCGI.changes +++ b/FastCGI.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Dec 13 13:33:33 UTC 2014 - p.drouand@gmail.com + +- Split out the system library, following the shared library + conventions +- Make devel subpackage depends on shared library package + ------------------------------------------------------------------- Mon Sep 1 07:41:20 UTC 2014 - fcrozat@suse.com diff --git a/FastCGI.spec b/FastCGI.spec index 63a6c34..1de2362 100644 --- a/FastCGI.spec +++ b/FastCGI.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%define so_ver 0 Name: FastCGI Version: 2.4.0 @@ -46,12 +47,10 @@ FastCGI is a language-independent, scalable, open extension to CGI that provides high performance without the limitations of server-specific APIs. - - %package devel Summary: A scalable, open extension to CGI Group: Development/Languages/C and C++ -Requires: %{name} = %{version} +Requires: libfcgi++-%{so_ver} = %{version} Requires: glibc-devel %description devel @@ -59,7 +58,14 @@ FastCGI is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs. +%package -n libfcgi++-%{so_ver} +Summary: A scalable, open extension to CGI - System library +Group: System/Libraries +%description -n libfcgi++-%{so_ver} +FastCGI is a language independent, scalable, open extension to CGI that +provides high performance without the limitations of server specific +APIs. %package -n perl-FastCGI Summary: A scalable, open extension to CGI @@ -76,8 +82,6 @@ FastCGI is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs. - - %prep %setup -n fcgi-%{version} %patch0 @@ -123,24 +127,29 @@ popd %{buildroot}%{_docdir}/%{name}/ rm -f %{buildroot}%{_libdir}/libfcgi*.la -%post -p /sbin/ldconfig +%post -n libfcgi++-%{so_ver} +/sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n libfcgi++-%{so_ver} +/sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/cgi-fcgi -%{_libdir}/libfcgi*.so.* %{_mandir}/man1/*.1.gz %doc %{_docdir}/%{name} %files devel %defattr(-,root,root) -%{_libdir}/libfcgi*.so %dir %{_includedir}/fastcgi/ %{_includedir}/fastcgi/* +%{_libdir}/libfcgi*.so %{_mandir}/man3/*.3.gz +%files -n libfcgi++-%{so_ver} +%defattr(-,root,root) +%{_libdir}/libfcgi*.so.* + %files -n perl-FastCGI %defattr(-,root,root) %{_mandir}/man3/*.3pm.gz