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
This commit is contained in:
Ismail Dönmez 2014-12-13 15:26:10 +00:00 committed by Git OBS Bridge
parent ff9173f980
commit 5033cb2ff9
2 changed files with 25 additions and 9 deletions

View File

@ -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 Mon Sep 1 07:41:20 UTC 2014 - fcrozat@suse.com

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%define so_ver 0
Name: FastCGI Name: FastCGI
Version: 2.4.0 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 provides high performance without the limitations of server-specific
APIs. APIs.
%package devel %package devel
Summary: A scalable, open extension to CGI Summary: A scalable, open extension to CGI
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: %{name} = %{version} Requires: libfcgi++-%{so_ver} = %{version}
Requires: glibc-devel Requires: glibc-devel
%description 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 provides high performance without the limitations of server specific
APIs. 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 %package -n perl-FastCGI
Summary: A scalable, open extension to CGI 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 provides high performance without the limitations of server specific
APIs. APIs.
%prep %prep
%setup -n fcgi-%{version} %setup -n fcgi-%{version}
%patch0 %patch0
@ -123,24 +127,29 @@ popd
%{buildroot}%{_docdir}/%{name}/ %{buildroot}%{_docdir}/%{name}/
rm -f %{buildroot}%{_libdir}/libfcgi*.la 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 %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/cgi-fcgi %{_bindir}/cgi-fcgi
%{_libdir}/libfcgi*.so.*
%{_mandir}/man1/*.1.gz %{_mandir}/man1/*.1.gz
%doc %{_docdir}/%{name} %doc %{_docdir}/%{name}
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libfcgi*.so
%dir %{_includedir}/fastcgi/ %dir %{_includedir}/fastcgi/
%{_includedir}/fastcgi/* %{_includedir}/fastcgi/*
%{_libdir}/libfcgi*.so
%{_mandir}/man3/*.3.gz %{_mandir}/man3/*.3.gz
%files -n libfcgi++-%{so_ver}
%defattr(-,root,root)
%{_libdir}/libfcgi*.so.*
%files -n perl-FastCGI %files -n perl-FastCGI
%defattr(-,root,root) %defattr(-,root,root)
%{_mandir}/man3/*.3pm.gz %{_mandir}/man3/*.3pm.gz