2007-01-15 23:49:03 +01:00
|
|
|
#
|
|
|
|
# spec file for package FastCGI (Version 2.4.0)
|
|
|
|
#
|
2009-03-02 01:32:55 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:49:03 +01:00
|
|
|
#
|
2009-03-02 01:32:55 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:49:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-03-02 01:32:55 +01:00
|
|
|
|
2007-01-15 23:49:03 +01:00
|
|
|
Name: FastCGI
|
|
|
|
Version: 2.4.0
|
2009-03-02 01:32:55 +01:00
|
|
|
Release: 137
|
2007-01-15 23:49:03 +01:00
|
|
|
#
|
|
|
|
Group: Development/Languages/C and C++
|
2009-03-02 01:32:55 +01:00
|
|
|
License: Open Market Permissive License
|
2007-01-15 23:49:03 +01:00
|
|
|
#
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
#
|
2009-03-02 01:32:55 +01:00
|
|
|
Url: http://www.fastcgi.com
|
2007-01-15 23:49:03 +01:00
|
|
|
Source: http://www.fastcgi.com/dist/fcgi.tar.bz2
|
|
|
|
Source1: README.supervise
|
|
|
|
Patch0: FastCGI-makefile.am_cppflags.patch
|
|
|
|
Patch1: FastCGI-clientdata_pointer.patch
|
|
|
|
Patch2: FastCGI-supervise_cgi-fcgi.patch
|
2009-03-02 01:32:55 +01:00
|
|
|
Patch3: FastCGI-gcc44.patch
|
2007-01-15 23:49:03 +01:00
|
|
|
#
|
|
|
|
Summary: A Scalable, Open Extension to CGI
|
|
|
|
|
|
|
|
%description
|
|
|
|
FastCGI is a language-independent, scalable, open extension to CGI that
|
|
|
|
provides high performance without the limitations of server-specific
|
|
|
|
APIs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
2009-03-02 01:32:55 +01:00
|
|
|
License: Other uncritical OpenSource License; Open Market Permissive License
|
2007-01-15 23:49:03 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Summary: A scalable, open extension to CGI
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glibc-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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
|
2009-03-02 01:32:55 +01:00
|
|
|
License: Other uncritical OpenSource License; Open Market Permissive License
|
2007-01-15 23:49:03 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Summary: A scalable, open extension to CGI
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n perl-FastCGI
|
|
|
|
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
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2009-03-02 01:32:55 +01:00
|
|
|
%patch3
|
2007-01-15 23:49:03 +01:00
|
|
|
touch NEWS AUTHORS ChangeLog COPYING
|
|
|
|
find doc/{fastcgi-prog-guide,fastcgi-whitepaper} -type f -print0 | xargs -r0 chmod 0644
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure --includedir=%{_includedir}/fastcgi
|
|
|
|
%{__make} all
|
|
|
|
pushd perl
|
|
|
|
%configure --includedir=%{_includedir}/fastcgi
|
|
|
|
%{__perl} Makefile.PL
|
|
|
|
%{__make} all
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
pushd perl
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
popd
|
|
|
|
pushd examples
|
|
|
|
%{__make} clean
|
|
|
|
popd
|
|
|
|
%{__install} -Dd -m 0755 \
|
|
|
|
%{buildroot}%{_mandir}/man{1,3}/ \
|
|
|
|
%{buildroot}%{_docdir}/%{name}/examples/
|
|
|
|
%{__install} -m 0644 examples/* %{buildroot}%{_docdir}/%{name}/examples/
|
|
|
|
%{__install} -m 0644 doc/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
%{__install} -m 0644 doc/*.3 %{buildroot}%{_mandir}/man3/
|
|
|
|
%{__install} -m 0644 doc/*.htm* doc/*.gif LICENSE.TERMS README \
|
|
|
|
%{buildroot}%{_docdir}/%{name}/
|
|
|
|
%{__install} -m 0644 perl/README %{buildroot}%{_docdir}/%{name}/README.perl
|
|
|
|
%{__install} -m 0644 perl/ChangeLog %{buildroot}%{_docdir}/%{name}/ChangeLog.perl
|
|
|
|
%{__cp} -vr doc/{fastcgi-prog-guide,fastcgi-whitepaper} java %{S:1} \
|
|
|
|
%{buildroot}%{_docdir}/%{name}/
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot};
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /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*.a
|
|
|
|
%{_libdir}/libfcgi*.la
|
|
|
|
%dir %{_includedir}/fastcgi/
|
|
|
|
%{_includedir}/fastcgi/*
|
|
|
|
%{_mandir}/man3/*.3.gz
|
|
|
|
|
|
|
|
%files -n perl-FastCGI
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mandir}/man3/*.3pm.gz
|
|
|
|
%{perl_vendorarch}/FCGI.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/FCGI
|
|
|
|
%{perl_vendorarch}/auto/FCGI/*.*
|
|
|
|
%{perl_vendorarch}/auto/FCGI/.packlist
|
|
|
|
%{_var}/adm/perl-modules/%{name}
|
|
|
|
|
2009-03-02 01:32:55 +01:00
|
|
|
%changelog
|
|
|
|
* Mon Feb 16 2009 coolo@suse.de
|
|
|
|
- fix build with gcc 4.4
|
|
|
|
* Fri Oct 20 2006 mrueckert@suse.de
|
2007-01-15 23:49:03 +01:00
|
|
|
- remove perl_make_install for now ... i wont build for fedora
|
|
|
|
any time soon.
|
2009-03-02 01:32:55 +01:00
|
|
|
* Fri Sep 15 2006 mrueckert@suse.de
|
2007-01-15 23:49:03 +01:00
|
|
|
- add perl_make_install for all distros other than suse.
|
2009-03-02 01:32:55 +01:00
|
|
|
* Fri Sep 08 2006 mrueckert@suse.de
|
2007-01-15 23:49:03 +01:00
|
|
|
- add README.supervise
|
|
|
|
- small spec file cleanup
|
2009-03-02 01:32:55 +01:00
|
|
|
* Thu Sep 07 2006 mrueckert@suse.de
|
2007-01-15 23:49:03 +01:00
|
|
|
- applied patch from
|
|
|
|
http://rubyists.com/articles/2005/05/03/spawn-fcgi-in-the-foreground
|
|
|
|
to run fastcgi application in foreground this is useful for tools
|
|
|
|
like runit/daemontools/initng
|
2009-03-02 01:32:55 +01:00
|
|
|
* Thu Aug 24 2006 mrueckert@suse.de
|
2007-01-15 23:49:03 +01:00
|
|
|
- run ldconfig
|
2009-03-02 01:32:55 +01:00
|
|
|
* Wed Mar 08 2006 mrueckert@suse.de
|
2007-01-15 23:49:03 +01:00
|
|
|
- readded gcc-c++ to the BuildRequires
|
|
|
|
Seems it got lost in the automatic BuildRequires conversion.
|
|
|
|
fixes C++ bindings.
|
2009-03-02 01:32:55 +01:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:49:03 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2009-03-02 01:32:55 +01:00
|
|
|
* Wed Aug 17 2005 mrueckert@suse.de
|
2007-01-15 23:49:03 +01:00
|
|
|
- Initial package with version 2.4.0
|