| 1 | %define snap -SNAP-0910052249 |
|---|
| 2 | |
|---|
| 3 | Summary: FastCGI development kit |
|---|
| 4 | Summary(ja): FastCGI 開発キット |
|---|
| 5 | Name: fcgi |
|---|
| 6 | Version: 2.4.1 |
|---|
| 7 | Release: 2%{?_dist_release} |
|---|
| 8 | |
|---|
| 9 | Group: Development/Languages |
|---|
| 10 | License: BSD |
|---|
| 11 | URL: http://www.fastcgi.com/#TheDevKit |
|---|
| 12 | Source0: http://fastcgi.com/dist/fcgi-%{version}%{?snap}.tar.gz |
|---|
| 13 | Source1: fcgi-autogen.sh |
|---|
| 14 | Patch0: fcgi-2.4.0-autotools.patch |
|---|
| 15 | # Patch0 created with Source1 after patching Patch1 and Patch2 |
|---|
| 16 | #Patch1: fcgi-2.4.0-configure.in.patch |
|---|
| 17 | #Patch2: fcgi-2.4.0-Makefile.am-CPPFLAGS.patch |
|---|
| 18 | Patch3: fcgi-2.4.0-gcc44_fixes.patch |
|---|
| 19 | Patch4: fcgi-2.4.1-poll.patch |
|---|
| 20 | |
|---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 22 | |
|---|
| 23 | # for -perl |
|---|
| 24 | BuildRequires: perl(ExtUtils::MakeMaker) |
|---|
| 25 | |
|---|
| 26 | # don't "provide" private Perl libs |
|---|
| 27 | %global __provides_exclude_from %{perl_vendorarch}.*\\.so$ |
|---|
| 28 | |
|---|
| 29 | %description |
|---|
| 30 | FastCGI is a language independent, scalable, open extension to CGI that |
|---|
| 31 | provides high performance without the limitations of server specific APIs. |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | %package devel |
|---|
| 35 | Summary: Development files for %{name} |
|---|
| 36 | Summary(ja): Development files for %{name} |
|---|
| 37 | Group: Development/Libraries |
|---|
| 38 | Requires: %{name} = %{version}-%{release} |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | %description devel |
|---|
| 42 | The %{name}-devel package contains libraries and header files for |
|---|
| 43 | developing applications that use %{name}. |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | %package perl |
|---|
| 47 | Summary: Perl bindings for %{name} |
|---|
| 48 | Summary(ja): Perl bindings for %{name} |
|---|
| 49 | Group: Development/Libraries |
|---|
| 50 | Requires: %{name} = %{version}-%{release} |
|---|
| 51 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | %description perl |
|---|
| 55 | The %{name}-perl package contains the perl bindings for fcgi. |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | %prep |
|---|
| 59 | %setup -q -n "%{name}-%{version}%{snap}" |
|---|
| 60 | #%patch0 -p1 |
|---|
| 61 | %patch3 -p1 |
|---|
| 62 | %patch4 -p1 |
|---|
| 63 | |
|---|
| 64 | # remove DOS End Of Line Encoding |
|---|
| 65 | sed -i 's/\r//' doc/fastcgi-prog-guide/ch2c.htm |
|---|
| 66 | # fix file permissions |
|---|
| 67 | chmod a-x include/fcgios.h libfcgi/os_unix.c |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | %build |
|---|
| 71 | %configure |
|---|
| 72 | # does not build with parallel make flags |
|---|
| 73 | make |
|---|
| 74 | |
|---|
| 75 | %install |
|---|
| 76 | %{__rm} -rf %{buildroot} |
|---|
| 77 | %{__mkdir_p} %{buildroot} |
|---|
| 78 | |
|---|
| 79 | make install DESTDIR=%{buildroot} |
|---|
| 80 | %{__rm} -fv %{buildroot}/%{_libdir}/libfcgi{++,}.{l,}a |
|---|
| 81 | install -p -m 0644 -D doc/cgi-fcgi.1 %{buildroot}/%{_mandir}/man1/cgi-fcgi.1 |
|---|
| 82 | for manpage in doc/*.3 |
|---|
| 83 | do |
|---|
| 84 | install -p -m 0644 -D $manpage %{buildroot}%{_mandir}/man3/$(basename $manpage) |
|---|
| 85 | done |
|---|
| 86 | %{__rm} -f -- doc/*.1 |
|---|
| 87 | %{__rm} -f -- doc/*.3 |
|---|
| 88 | |
|---|
| 89 | |
|---|
| 90 | %post |
|---|
| 91 | /sbin/ldconfig |
|---|
| 92 | |
|---|
| 93 | %postun |
|---|
| 94 | /sbin/ldconfig |
|---|
| 95 | |
|---|
| 96 | |
|---|
| 97 | %clean |
|---|
| 98 | rm -rf $RPM_BUILD_ROOT |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | %files |
|---|
| 102 | %defattr(-,root,root,-) |
|---|
| 103 | %{_bindir}/cgi-fcgi |
|---|
| 104 | %{_libdir}/libfcgi.so.* |
|---|
| 105 | %{_libdir}/libfcgi++.so.* |
|---|
| 106 | %{_mandir}/man1/* |
|---|
| 107 | %defattr(0644,root,root,0755) |
|---|
| 108 | %doc LICENSE.TERMS README |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | %files devel |
|---|
| 112 | %defattr(-,root,root,-) |
|---|
| 113 | %{_includedir}/* |
|---|
| 114 | %{_libdir}/libfcgi.so |
|---|
| 115 | %{_libdir}/libfcgi++.so |
|---|
| 116 | %{_mandir}/man3/* |
|---|
| 117 | %defattr(0644,root,root,0755) |
|---|
| 118 | %doc doc/ |
|---|
| 119 | |
|---|
| 120 | |
|---|
| 121 | %changelog |
|---|
| 122 | * Mon Dec 21 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.1-2 |
|---|
| 123 | - made to use internal dependency generator. |
|---|
| 124 | |
|---|
| 125 | * Tue Jul 8 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.1-1 |
|---|
| 126 | - new upstream release. |
|---|
| 127 | - removed perl binding (not used). |
|---|
| 128 | |
|---|
| 129 | * Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> 2.4.0-2vl6 |
|---|
| 130 | - build with perl 5.12.3 |
|---|
| 131 | |
|---|
| 132 | * Sat Jul 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1 |
|---|
| 133 | - initial build for Vine Linux |
|---|
| 134 | |
|---|
| 135 | * Sun Mar 01 2009 Chris Weyl <cweyl@alumni.drew.edu> - 2.4.0-9 |
|---|
| 136 | - Stripping bad provides of private Perl extension libs |
|---|
| 137 | |
|---|
| 138 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-8 |
|---|
| 139 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 140 | |
|---|
| 141 | * Sun Feb 15 2009 Till Maas <opensource@till.name> - 2.4.0-7 |
|---|
| 142 | - Add missing #include <cstdio> to make it compile with gcc 4.4 |
|---|
| 143 | |
|---|
| 144 | * Tue Oct 14 2008 Chris Weyl <cweyl@alumni.drew.edu> - 2.4.0-6 |
|---|
| 145 | - package up the perl bindings in their own subpackage |
|---|
| 146 | |
|---|
| 147 | * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.4.0-5 |
|---|
| 148 | - Autorebuild for GCC 4.3 |
|---|
| 149 | |
|---|
| 150 | * Thu Aug 23 2007 Till Maas <opensource till name> - 2.4.0-4 |
|---|
| 151 | - bump release for rebuild |
|---|
| 152 | |
|---|
| 153 | * Wed Jul 11 2007 Till Maas <opensource till name> - 2.4.0-3 |
|---|
| 154 | - remove parallel make flags |
|---|
| 155 | |
|---|
| 156 | * Tue Apr 17 2007 Till Maas <opensource till name> - 2.4.0-2 |
|---|
| 157 | - add some documentation |
|---|
| 158 | - add mkdir ${RPM_BUILD_ROOT} to %%install |
|---|
| 159 | - install man-pages |
|---|
| 160 | |
|---|
| 161 | * Mon Mar 5 2007 Till Maas <opensource till name> - 2.4.0-1 |
|---|
| 162 | - Initial spec for fedora |
|---|