2007-01-15 23:49:03 +01:00
|
|
|
#
|
2011-05-27 12:16:31 +02:00
|
|
|
# spec file for package FastCGI
|
2007-01-15 23:49:03 +01:00
|
|
|
#
|
2014-09-01 10:32:33 +02:00
|
|
|
# Copyright (c) 2014 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: FastCGI
|
2014-12-26 12:18:24 +01:00
|
|
|
%define lname libfcgi0
|
2007-01-15 23:49:03 +01:00
|
|
|
Version: 2.4.0
|
2012-06-11 17:03:33 +02:00
|
|
|
Release: 0
|
2014-12-26 12:18:24 +01:00
|
|
|
Summary: A Scalable, Open Extension to CGI
|
|
|
|
License: OML
|
|
|
|
Group: Development/Languages/C and C++
|
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-12-26 11:35:20 +01:00
|
|
|
Patch3: fastcgi-2.4.0_missing_call_to_fclose.patch
|
|
|
|
Patch4: FastCGI-gcc44.patch
|
2011-05-27 09:57:07 +02:00
|
|
|
Patch5: FastCGI-perl514.patch
|
2011-12-21 17:26:41 +01:00
|
|
|
Patch6: FastCGI-fix_deprecated_api.patch
|
2014-12-26 12:18:24 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:49:03 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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
|
2012-06-11 17:03:33 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2014-12-26 12:18:24 +01:00
|
|
|
Requires: %lname = %version
|
2007-01-15 23:49:03 +01:00
|
|
|
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.
|
|
|
|
|
2014-12-26 12:18:24 +01:00
|
|
|
%package -n %lname
|
2014-12-13 16:26:10 +01:00
|
|
|
Summary: A scalable, open extension to CGI - System library
|
|
|
|
Group: System/Libraries
|
2014-12-26 12:18:24 +01:00
|
|
|
Obsoletes: libfcgi++-0 < %version-%release
|
|
|
|
Provides: libfcgi++-0 = %version-%release
|
2007-01-15 23:49:03 +01:00
|
|
|
|
2014-12-26 12:18:24 +01:00
|
|
|
%description -n %lname
|
2014-12-13 16:26:10 +01:00
|
|
|
FastCGI is a language independent, scalable, open extension to CGI that
|
|
|
|
provides high performance without the limitations of server specific
|
|
|
|
APIs.
|
2007-01-15 23:49:03 +01:00
|
|
|
|
|
|
|
%package -n perl-FastCGI
|
|
|
|
Summary: A scalable, open extension to CGI
|
2012-06-11 17:03:33 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2007-01-15 23:49:03 +01:00
|
|
|
Requires: %{name} = %{version}
|
2013-03-20 14:20:54 +01:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
Requires: perl >= 5.8.0
|
|
|
|
%else
|
2012-06-11 17:03:33 +02:00
|
|
|
%{perl_requires}
|
2013-03-20 14:20:54 +01:00
|
|
|
%endif
|
2007-01-15 23:49:03 +01:00
|
|
|
|
|
|
|
%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
|
2009-12-26 11:35:20 +01:00
|
|
|
%patch4
|
2011-05-27 09:57:07 +02:00
|
|
|
%patch5
|
2011-12-21 17:26:41 +01:00
|
|
|
%patch6
|
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
|
2014-12-26 12:18:24 +01:00
|
|
|
%configure --disable-static --includedir=%{_includedir}/fastcgi
|
2011-09-17 12:05:33 +02:00
|
|
|
make all
|
2007-01-15 23:49:03 +01:00
|
|
|
pushd perl
|
2014-12-26 12:18:24 +01:00
|
|
|
%configure --disable-static --includedir=%{_includedir}/fastcgi
|
2007-01-15 23:49:03 +01:00
|
|
|
%{__perl} Makefile.PL
|
2011-09-17 12:05:33 +02:00
|
|
|
make %{?_smp_mflags} all
|
2007-01-15 23:49:03 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2014-12-26 12:18:24 +01:00
|
|
|
%make_install
|
2007-01-15 23:49:03 +01:00
|
|
|
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}/
|
2009-12-26 11:35:20 +01:00
|
|
|
rm -f %{buildroot}%{_libdir}/libfcgi*.la
|
2007-01-15 23:49:03 +01:00
|
|
|
|
2014-12-26 12:18:24 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-01-15 23:49:03 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/cgi-fcgi
|
|
|
|
%{_mandir}/man1/*.1.gz
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/fastcgi/
|
|
|
|
%{_includedir}/fastcgi/*
|
2014-12-13 16:26:10 +01:00
|
|
|
%{_libdir}/libfcgi*.so
|
2007-01-15 23:49:03 +01:00
|
|
|
%{_mandir}/man3/*.3.gz
|
|
|
|
|
2014-12-26 12:18:24 +01:00
|
|
|
%files -n %lname
|
2014-12-13 16:26:10 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libfcgi*.so.*
|
|
|
|
|
2007-01-15 23:49:03 +01:00
|
|
|
%files -n perl-FastCGI
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mandir}/man3/*.3pm.gz
|
|
|
|
%{perl_vendorarch}/FCGI.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/FCGI
|
|
|
|
%{perl_vendorarch}/auto/FCGI/*.*
|
2010-12-07 18:39:04 +01:00
|
|
|
%if %suse_version < 1140
|
2007-01-15 23:49:03 +01:00
|
|
|
%{perl_vendorarch}/auto/FCGI/.packlist
|
|
|
|
%{_var}/adm/perl-modules/%{name}
|
2010-12-07 18:39:04 +01:00
|
|
|
%endif
|
2007-01-15 23:49:03 +01:00
|
|
|
|
2009-03-02 01:32:55 +01:00
|
|
|
%changelog
|