8cfa6d
Name:           fcgi
8cfa6d
Version:        2.4.0
e1342b
Release:        19%{?dist}
8cfa6d
Summary:        FastCGI development kit
8cfa6d
8cfa6d
Group:          Development/Languages
013a00
License:        OML
8cfa6d
URL:            http://www.fastcgi.com/#TheDevKit
8cfa6d
Source0:        http://fastcgi.com/dist/fcgi-%{version}.tar.gz
8cfa6d
Source1:        fcgi-autogen.sh
8cfa6d
Patch0:         fcgi-2.4.0-autotools.patch
8cfa6d
# Patch0 created with Source1 after patching Patch1 and Patch2
8cfa6d
Patch1:         fcgi-2.4.0-configure.in.patch
8cfa6d
Patch2:         fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
fb563e
Patch3:         fcgi-2.4.0-gcc44_fixes.patch
8cfa6d
8cfa6d
%description
8cfa6d
FastCGI is a language independent, scalable, open extension to CGI that
8cfa6d
provides high performance without the limitations of server specific APIs.
8cfa6d
8cfa6d
8cfa6d
%package        devel
8cfa6d
Summary:        Development files for %{name}
8cfa6d
Group:          Development/Libraries
8cfa6d
Requires:       %{name} = %{version}-%{release}
8cfa6d
8cfa6d
8cfa6d
%description    devel
8cfa6d
The %{name}-devel package contains libraries and header files for
8cfa6d
developing applications that use %{name}.
8cfa6d
8cfa6d
8cfa6d
%prep
8cfa6d
%setup -q
8cfa6d
%patch0 -p1
fb563e
%patch3 -p1 -b .gcc44_fixes
fb563e
8cfa6d
# remove DOS End Of Line Encoding
8cfa6d
sed -i 's/\r//' doc/fastcgi-prog-guide/ch2c.htm
8cfa6d
# fix file permissions
8cfa6d
chmod a-x include/fcgios.h libfcgi/os_unix.c
8cfa6d
8cfa6d
8cfa6d
%build
8cfa6d
%configure
218121
# does not build with parallel make flags
218121
make
8cfa6d
8cfa6d
8cfa6d
%install
8cfa6d
rm -rf $RPM_BUILD_ROOT
8cfa6d
mkdir $RPM_BUILD_ROOT
8cfa6d
8cfa6d
make install DESTDIR=$RPM_BUILD_ROOT
8cfa6d
rm $RPM_BUILD_ROOT/%{_libdir}/libfcgi{++,}.{l,}a
8cfa6d
install -p -m 0644 -D doc/cgi-fcgi.1 $RPM_BUILD_ROOT%{_mandir}/man1/cgi-fcgi.1
8cfa6d
for manpage in doc/*.3
8cfa6d
do
8cfa6d
install -p -m 0644 -D $manpage $RPM_BUILD_ROOT%{_mandir}/man3/$(basename $manpage)
8cfa6d
done
8cfa6d
rm -f -- doc/*.1
8cfa6d
rm -f -- doc/*.3
8cfa6d
Chris Weyl 2b48ff
8cfa6d
%post -p /sbin/ldconfig
8cfa6d
%postun -p /sbin/ldconfig
8cfa6d
8cfa6d
8cfa6d
%files
8cfa6d
%{_bindir}/cgi-fcgi
8cfa6d
%{_libdir}/libfcgi.so.*
8cfa6d
%{_libdir}/libfcgi++.so.*
8cfa6d
%{_mandir}/man1/*
8cfa6d
%defattr(0644,root,root,0755)
8cfa6d
%doc LICENSE.TERMS README
8cfa6d
8cfa6d
8cfa6d
%files devel
8cfa6d
%{_includedir}/*
8cfa6d
%{_libdir}/libfcgi.so
8cfa6d
%{_libdir}/libfcgi++.so
8cfa6d
%{_mandir}/man3/*
8cfa6d
%defattr(0644,root,root,0755)
8cfa6d
%doc doc/
8cfa6d
8cfa6d
8cfa6d
%changelog
e1342b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-19
e1342b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e1342b
28bc42
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-18
28bc42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
28bc42
868686
* Fri Sep 09 2011 Iain Arnell <iarnell@gmail.com> 2.4.0-17
868686
- drop perl sub-package; it's been replaced by perl-FCGI (rhbz#736612)
868686
Marcela Mašláňová 12661b
* Thu Jun 16 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.4.0-16
Marcela Mašláňová df8426
- Perl mass rebuild & clean spec & clean Makefile.PL
Marcela Mašláňová 12661b
121f55
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-15
121f55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
121f55
f7fb18
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.4.0-14
f7fb18
- Mass rebuild with perl-5.12.0
f7fb18
013a00
* Sun May 16 2010 Till Maas <opensource@till.name> - 2.4.0-13
013a00
- Fix license tag. It's OML instead of BSD
013a00
Chris Weyl 5b51a3
* Mon Jan 18 2010 Chris Weyl <cweyl@alumni.drew.edu> - 2.4.0-12
Chris Weyl 5b51a3
- drop perl .so provides filtering, as it may have multiarch rpm implications
Chris Weyl 5b51a3
a6a9e0
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 2.4.0-11
a6a9e0
- rebuild against perl 5.10.1
a6a9e0
ff2852
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-10
ff2852
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ff2852
Chris Weyl 023124
* Sun Mar 01 2009 Chris Weyl <cweyl@alumni.drew.edu> - 2.4.0-9
Chris Weyl 023124
- Stripping bad provides of private Perl extension libs
Chris Weyl 023124
8a1997
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-8
8a1997
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8a1997
fb563e
* Sun Feb 15 2009 Till Maas <opensource@till.name> - 2.4.0-7
fb563e
- Add missing #include <cstdio> to make it compile with gcc 4.4
fb563e
Chris Weyl 2b48ff
* Tue Oct 14 2008 Chris Weyl <cweyl@alumni.drew.edu> - 2.4.0-6
Chris Weyl 2b48ff
- package up the perl bindings in their own subpackage
Chris Weyl 2b48ff
615734
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.4.0-5
615734
- Autorebuild for GCC 4.3
615734
2d6978
* Thu Aug 23 2007 Till Maas <opensource till="" name=""> - 2.4.0-4
2d6978
- bump release for rebuild
2d6978
c39462
* Tue Jul 11 2007 Till Maas <opensource till="" name=""> - 2.4.0-3
218121
- remove parallel make flags
218121
8cfa6d
* Tue Apr 17 2007 Till Maas <opensource till="" name=""> - 2.4.0-2
8cfa6d
- add some documentation
8cfa6d
- add mkdir ${RPM_BUILD_ROOT} to %%install
8cfa6d
- install man-pages
8cfa6d
8cfa6d
* Mon Mar 5 2007 Till Maas <opensource till="" name=""> - 2.4.0-1
8cfa6d
- Initial spec for fedora