source: projects/specs/trunk/f/fcgi/fcgi-vl.spec @ 8762

Revision 8762, 4.2 KB checked in by tomop, 10 years ago (diff)

fcgi-2.4.1-1

Line 
1%define snap -SNAP-0910052249
2
3Summary:        FastCGI development kit
4Summary(ja):    FastCGI 開発キット
5Name:           fcgi
6Version:        2.4.1
7Release:        1%{?_dist_release}
8
9Group:          Development/Languages
10License:        BSD
11URL:            http://www.fastcgi.com/#TheDevKit
12Source0:        http://fastcgi.com/dist/fcgi-%{version}%{?snap}.tar.gz
13Source1:        fcgi-autogen.sh
14Patch0:         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
18Patch3:         fcgi-2.4.0-gcc44_fixes.patch
19BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
20
21# for -perl
22BuildRequires:  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
30FastCGI is a language independent, scalable, open extension to CGI that
31provides high performance without the limitations of server specific APIs.
32
33
34%package        devel
35Summary:        Development files for %{name}
36Summary(ja):    Development files for %{name}
37Group:          Development/Libraries
38Requires:       %{name} = %{version}-%{release}
39
40
41%description    devel
42The %{name}-devel package contains libraries and header files for
43developing applications that use %{name}.
44
45
46%package perl
47Summary:        Perl bindings for %{name}
48Summary(ja):    Perl bindings for %{name}
49Group:          Development/Libraries
50Requires:       %{name} = %{version}-%{release}
51Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
52
53
54%description    perl
55The %{name}-perl package contains the perl bindings for fcgi.
56
57
58%prep
59%setup -q -n "%{name}-%{version}%{snap}"
60%patch3 -p1
61
62# remove DOS End Of Line Encoding
63sed -i 's/\r//' doc/fastcgi-prog-guide/ch2c.htm
64# fix file permissions
65chmod a-x include/fcgios.h libfcgi/os_unix.c
66
67
68%build
69%configure
70# does not build with parallel make flags
71make
72
73%install
74%{__rm} -rf %{buildroot}
75%{__mkdir_p} %{buildroot}
76
77make install DESTDIR=%{buildroot}
78%{__rm} -fv %{buildroot}/%{_libdir}/libfcgi{++,}.{l,}a
79install -p -m 0644 -D doc/cgi-fcgi.1 %{buildroot}/%{_mandir}/man1/cgi-fcgi.1
80for manpage in doc/*.3
81do
82install -p -m 0644 -D $manpage %{buildroot}%{_mandir}/man3/$(basename $manpage)
83done
84%{__rm} -f -- doc/*.1
85%{__rm} -f -- doc/*.3
86
87
88%post
89/sbin/ldconfig
90
91%postun
92/sbin/ldconfig
93
94
95%clean
96rm -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
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
124* Sun Apr  3 2011 IWAI, Masaharu <iwai@alib.jp> 2.4.0-2vl6
125- build with perl 5.12.3
126
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
148* Wed Jul 11 2007 Till Maas <opensource till name> - 2.4.0-3
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
Note: See TracBrowser for help on using the repository browser.