rpms/fcgi/F-8 fcgi.spec,1.4,1.5

Chris Weyl cweyl at fedoraproject.org
Tue Oct 14 18:28:57 UTC 2008


Author: cweyl

Update of /cvs/extras/rpms/fcgi/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2861

Modified Files:
	fcgi.spec 
Log Message:
* Tue Oct 14 2008 Chris Weyl <cweyl at alumni.drew.edu> - 2.4.0-6
- package up the perl bindings in their own subpackage



Index: fcgi.spec
===================================================================
RCS file: /cvs/extras/rpms/fcgi/F-8/fcgi.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- fcgi.spec	23 Aug 2007 08:36:34 -0000	1.4
+++ fcgi.spec	14 Oct 2008 18:28:27 -0000	1.5
@@ -1,6 +1,6 @@
 Name:           fcgi
 Version:        2.4.0
-Release:        4%{?dist}
+Release:        6%{?dist}
 Summary:        FastCGI development kit
 
 Group:          Development/Languages
@@ -14,6 +14,8 @@
 Patch2:         fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+# for -perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
 
 %description
 FastCGI is a language independent, scalable, open extension to CGI that
@@ -31,6 +33,17 @@
 developing applications that use %{name}.
 
 
+%package perl
+Summary:        Perl bindings for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+
+%description    perl
+The %{name}-perl package contains the perl bindings for fcgi.
+
+
 %prep
 %setup -q
 %patch0 -p1
@@ -45,6 +58,11 @@
 # 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
@@ -60,10 +78,28 @@
 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 ';'
+
+chmod -x *.fpl
+%{_fixperms} $RPM_BUILD_ROOT/%{perl_vendorarch}
+
+
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 
+%check
+# perl tests -- none presently, but that may change
+cd perl && make test
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -84,11 +120,28 @@
 %{_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 Oct 14 2008 Chris Weyl <cweyl at alumni.drew.edu> - 2.4.0-6
+- package up the perl bindings in their own subpackage
+
+* Wed Feb 20 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 2.4.0-5
+- Autorebuild for GCC 4.3
+
 * Thu Aug 23 2007 Till Maas <opensource till name> - 2.4.0-4
 - bump release for rebuild
 




More information about the fedora-extras-commits mailing list