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