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