Browse Source

fcgi-2.4.1-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8762 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 9 years ago
parent
commit
56bc714f74
1 changed files with 28 additions and 53 deletions
  1. 28 53
      f/fcgi/fcgi-vl.spec

+ 28 - 53
f/fcgi/fcgi-vl.spec

@@ -1,18 +1,20 @@
+%define snap -SNAP-0910052249
+
 Summary:        FastCGI development kit
 Summary(ja):    FastCGI 開発キット
 Name:           fcgi
-Version:        2.4.0
-Release:        2%{?_dist_release}
+Version:        2.4.1
+Release:        1%{?_dist_release}
 
 Group:          Development/Languages
 License:        BSD
 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
 Patch0:         fcgi-2.4.0-autotools.patch
 # Patch0 created with Source1 after patching Patch1 and Patch2
-Patch1:         fcgi-2.4.0-configure.in.patch
-Patch2:         fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
+#Patch1:         fcgi-2.4.0-configure.in.patch
+#Patch2:         fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
 Patch3:         fcgi-2.4.0-gcc44_fixes.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
@@ -31,7 +33,7 @@ provides high performance without the limitations of server specific APIs.
 
 %package        devel
 Summary:        Development files for %{name}
-Summary(ja):        Development files for %{name}
+Summary(ja):    Development files for %{name}
 Group:          Development/Libraries
 Requires:       %{name} = %{version}-%{release}
 
@@ -43,7 +45,7 @@ developing applications that use %{name}.
 
 %package perl
 Summary:        Perl bindings for %{name}
-Summary(ja):        Perl bindings for %{name}
+Summary(ja):    Perl bindings for %{name}
 Group:          Development/Libraries
 Requires:       %{name} = %{version}-%{release}
 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
-%setup -q
-%patch0 -p1
-%patch3 -p1 -b .gcc44_fixes
+%setup -q -n "%{name}-%{version}%{snap}"
+%patch3 -p1
 
 # remove DOS End Of Line Encoding
 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
 make
 
-# build the perl bindings
-cd perl
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
-make %{?_smp_mflags}
-
-
 %install
-rm -rf $RPM_BUILD_ROOT
-mkdir $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
+%{__mkdir_p} %{buildroot}
 
-make install DESTDIR=$RPM_BUILD_ROOT
-rm $RPM_BUILD_ROOT/%{_libdir}/libfcgi{++,}.{l,}a
-install -p -m 0644 -D doc/cgi-fcgi.1 $RPM_BUILD_ROOT%{_mandir}/man1/cgi-fcgi.1
+make install DESTDIR=%{buildroot}
+%{__rm} -fv %{buildroot}/%{_libdir}/libfcgi{++,}.{l,}a
+install -p -m 0644 -D doc/cgi-fcgi.1 %{buildroot}/%{_mandir}/man1/cgi-fcgi.1
 for manpage in doc/*.3
 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
-rm -f -- doc/*.1
-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 ';'
+%{__rm} -f -- doc/*.1
+%{__rm} -f -- doc/*.3
 
-chmod -x *.fpl
-%{_fixperms} $RPM_BUILD_ROOT/%{perl_vendorarch}
 
+%post
+/sbin/ldconfig
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
-
-%check
-# perl tests -- none presently, but that may change
-cd perl && make test
+%postun
+/sbin/ldconfig
 
 
 %clean
@@ -131,21 +112,15 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libfcgi.so
 %{_libdir}/libfcgi++.so
 %{_mandir}/man3/*
-%exclude %{_mandir}/man3/*.3pm*
 %defattr(0644,root,root,0755)
 %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
+* 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
 - 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
 - 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
 
 * Tue Apr 17 2007 Till Maas <opensource till name> - 2.4.0-2