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