|
@@ -1,18 +1,20 @@
|
|
|
|
+%define snap -SNAP-0910052249
|
|
|
|
+
|
|
Summary: FastCGI development kit
|
|
Summary: FastCGI development kit
|
|
Summary(ja): FastCGI 開発キット
|
|
Summary(ja): FastCGI 開発キット
|
|
Name: fcgi
|
|
Name: fcgi
|
|
-Version: 2.4.0
|
|
+Version: 2.4.1
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
License: BSD
|
|
License: BSD
|
|
URL: http://www.fastcgi.com/#TheDevKit
|
|
URL: http://www.fastcgi.com/#TheDevKit
|
|
-Source0: http://fastcgi.com/dist/fcgi-%{version}.tar.gz
|
|
+Source0: http://fastcgi.com/dist/fcgi-%{version}%{?snap}.tar.gz
|
|
Source1: fcgi-autogen.sh
|
|
Source1: fcgi-autogen.sh
|
|
Patch0: fcgi-2.4.0-autotools.patch
|
|
Patch0: fcgi-2.4.0-autotools.patch
|
|
# Patch0 created with Source1 after patching Patch1 and Patch2
|
|
# Patch0 created with Source1 after patching Patch1 and Patch2
|
|
-Patch1: fcgi-2.4.0-configure.in.patch
|
|
+#Patch1: fcgi-2.4.0-configure.in.patch
|
|
-Patch2: fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
|
|
+#Patch2: fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
|
|
Patch3: fcgi-2.4.0-gcc44_fixes.patch
|
|
Patch3: fcgi-2.4.0-gcc44_fixes.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
@@ -31,7 +33,7 @@ provides high performance without the limitations of server specific APIs.
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Summary: Development files for %{name}
|
|
-Summary(ja): Development files for %{name}
|
|
+Summary(ja): Development files for %{name}
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
@@ -43,7 +45,7 @@ developing applications that use %{name}.
|
|
|
|
|
|
%package perl
|
|
%package perl
|
|
Summary: Perl bindings for %{name}
|
|
Summary: Perl bindings for %{name}
|
|
-Summary(ja): Perl bindings for %{name}
|
|
+Summary(ja): Perl bindings for %{name}
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
@@ -54,9 +56,8 @@ The %{name}-perl package contains the perl bindings for fcgi.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q
|
|
+%setup -q -n "%{name}-%{version}%{snap}"
|
|
-%patch0 -p1
|
|
+%patch3 -p1
|
|
-%patch3 -p1 -b .gcc44_fixes
|
|
|
|
|
|
|
|
# remove DOS End Of Line Encoding
|
|
# remove DOS End Of Line Encoding
|
|
sed -i 's/\r//' doc/fastcgi-prog-guide/ch2c.htm
|
|
sed -i 's/\r//' doc/fastcgi-prog-guide/ch2c.htm
|
|
@@ -69,46 +70,26 @@ chmod a-x include/fcgios.h libfcgi/os_unix.c
|
|
# does not build with parallel make flags
|
|
# does not build with parallel make flags
|
|
make
|
|
make
|
|
|
|
|
|
-# build the perl bindings
|
|
|
|
-cd perl
|
|
|
|
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
-make %{?_smp_mflags}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+%{__rm} -rf %{buildroot}
|
|
-mkdir $RPM_BUILD_ROOT
|
|
+%{__mkdir_p} %{buildroot}
|
|
|
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
+make install DESTDIR=%{buildroot}
|
|
-rm $RPM_BUILD_ROOT/%{_libdir}/libfcgi{++,}.{l,}a
|
|
+%{__rm} -fv %{buildroot}/%{_libdir}/libfcgi{++,}.{l,}a
|
|
-install -p -m 0644 -D doc/cgi-fcgi.1 $RPM_BUILD_ROOT%{_mandir}/man1/cgi-fcgi.1
|
|
+install -p -m 0644 -D doc/cgi-fcgi.1 %{buildroot}/%{_mandir}/man1/cgi-fcgi.1
|
|
for manpage in doc/*.3
|
|
for manpage in doc/*.3
|
|
do
|
|
do
|
|
-install -p -m 0644 -D $manpage $RPM_BUILD_ROOT%{_mandir}/man3/$(basename $manpage)
|
|
+install -p -m 0644 -D $manpage %{buildroot}%{_mandir}/man3/$(basename $manpage)
|
|
done
|
|
done
|
|
-rm -f -- doc/*.1
|
|
+%{__rm} -f -- doc/*.1
|
|
-rm -f -- doc/*.3
|
|
+%{__rm} -f -- doc/*.3
|
|
-
|
|
|
|
-# install the perl bindings
|
|
|
|
-cd perl
|
|
|
|
-
|
|
|
|
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
-
|
|
|
|
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
-find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
|
|
|
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
|
|
|
-chmod -x *.fpl
|
|
|
|
-%{_fixperms} $RPM_BUILD_ROOT/%{perl_vendorarch}
|
|
|
|
|
|
|
|
|
|
+%post
|
|
|
|
+/sbin/ldconfig
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
+%postun
|
|
-%postun -p /sbin/ldconfig
|
|
+/sbin/ldconfig
|
|
-
|
|
|
|
-
|
|
|
|
-%check
|
|
|
|
-# perl tests -- none presently, but that may change
|
|
|
|
-cd perl && make test
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -131,21 +112,15 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libdir}/libfcgi.so
|
|
%{_libdir}/libfcgi.so
|
|
%{_libdir}/libfcgi++.so
|
|
%{_libdir}/libfcgi++.so
|
|
%{_mandir}/man3/*
|
|
%{_mandir}/man3/*
|
|
-%exclude %{_mandir}/man3/*.3pm*
|
|
|
|
%defattr(0644,root,root,0755)
|
|
%defattr(0644,root,root,0755)
|
|
%doc doc/
|
|
%doc doc/
|
|
|
|
|
|
|
|
|
|
-%files perl
|
|
|
|
-%defattr(-,root,root,-)
|
|
|
|
-%{perl_vendorarch}/*
|
|
|
|
-%exclude %dir %{perl_vendorarch}/auto
|
|
|
|
-%{_mandir}/man3/*.3pm*
|
|
|
|
-%defattr(0644,root,root,0755)
|
|
|
|
-%doc perl/ChangeLog perl/README perl/*.fpl
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Jul 8 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.1-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- removed perl binding (not used).
|
|
|
|
+
|
|
* Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> 2.4.0-2vl6
|
|
* Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> 2.4.0-2vl6
|
|
- build with perl 5.12.3
|
|
- build with perl 5.12.3
|
|
|
|
|
|
@@ -170,7 +145,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
* Thu Aug 23 2007 Till Maas <opensource till name> - 2.4.0-4
|
|
* Thu Aug 23 2007 Till Maas <opensource till name> - 2.4.0-4
|
|
- bump release for rebuild
|
|
- bump release for rebuild
|
|
|
|
|
|
-* Tue Jul 11 2007 Till Maas <opensource till name> - 2.4.0-3
|
|
+* Wed Jul 11 2007 Till Maas <opensource till name> - 2.4.0-3
|
|
- remove parallel make flags
|
|
- remove parallel make flags
|
|
|
|
|
|
* Tue Apr 17 2007 Till Maas <opensource till name> - 2.4.0-2
|
|
* Tue Apr 17 2007 Till Maas <opensource till name> - 2.4.0-2
|