rpms/pilot-link/devel pilot-link.spec,1.61,1.62

Alex Lancaster (alexlan) fedora-extras-commits at redhat.com
Mon Nov 12 11:20:02 UTC 2007


Author: alexlan

Update of /cvs/extras/rpms/pilot-link/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6755

Modified Files:
	pilot-link.spec 
Log Message:
* Mon Nov 12 2007 Alex Lancaster <alexl at users.sourceforge.net> - 2:0.12.2-6
- Enable Perl bindings
- Include important docs such as README.usb



Index: pilot-link.spec
===================================================================
RCS file: /cvs/extras/rpms/pilot-link/devel/pilot-link.spec,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- pilot-link.spec	29 Aug 2007 14:54:07 -0000	1.61
+++ pilot-link.spec	12 Nov 2007 11:19:29 -0000	1.62
@@ -1,11 +1,11 @@
-%define support_perl 0
-%define perl_version 5.8.0
+%define support_perl 1
+%define perl_version %(eval "`%{__perl} -V:version`"; echo $version)
 
 Name: pilot-link
 Version: 0.12.2
-Release: 5%{?dist}
+Release: 6%{?dist}
 Epoch: 2
-License: GPLv2 and GPLv2+ and LGPLv2+ and tcl
+License: GPLv2 and GPLv2+ and LGPLv2+ and TCL
 Group: Applications/Communications
 Summary: File transfer utilities between Linux and PalmPilots
 URL: http://www.pilot-link.org/
@@ -22,7 +22,8 @@
 Requires: /sbin/ldconfig
 
 %if %{support_perl}
-BuildRequireseq: perl
+Requires:      perl(:MODULE_COMPAT_%{perl_version})
+BuildRequires: perl(ExtUtils::MakeMaker)
 %endif
 
 BuildRequires: libpng-devel
@@ -95,7 +96,8 @@
 if test -f bindings/Perl/Makefile.PL ; then
    cd bindings/Perl
    perl -pi -e 's|^\$libdir =.*|\$libdir = "%{buildroot}%{_libdir}";|g' Makefile.PL
-   CFLAGS="%{optflags}" perl Makefile.PL PREFIX=%{buildroot}%{_prefix} INSTALLDIRS=vendor
+   CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
+   make -B || :
    make
    cd ../..
 fi
@@ -105,9 +107,15 @@
 make install -C doc/man DESTDIR=%{buildroot} libdir=%{_libdir}
 
 %if %{support_perl}
-  make install -C bindings/Perl
-  rm -f %{buildroot}%{_libdir}/perl5/vendor_perl/%{perl_version}/*/auto/PDA/Pilot/Pilot.bs \
-        %{buildroot}%{_libdir}/perl5/site_perl/*/*/*/PDA/Pilot/.packlist
+  cd bindings/Perl
+  make pure_install PERL_INSTALL_ROOT=%{buildroot}
+  cd ../..
+  # remove files and fix perms
+  find %{buildroot}%{_libdir}/perl5/ -type f -name '.packlist' -exec rm -f {} \;
+  find %{buildroot}%{_libdir}/perl5/ -type f -name '*.bs' -size 0 -exec rm -f {} \;
+  find %{buildroot}%{_libdir}/perl5/ -type f -name '*.so' -exec chmod 0755 {} \;
+  rm -f %{buildroot}%{_libdir}/perl5/*/*/perllocal.pod
+  rm -f %{buildroot}%{_libdir}/perl5/*/*/*/PDA/dump.pl
 %else
   rm -f %{buildroot}%{_mandir}/man1/ietf2datebook*
 %endif
@@ -127,11 +135,11 @@
 
 %files
 %defattr(-,root,root,-)
-%doc COPYING ChangeLog README NEWS
+%doc COPYING ChangeLog README NEWS doc/README.usb doc/README.debugging doc/README.libusb
 %{_libdir}/*.so.*
 %if %{support_perl}
-%{_libdir}/perl5/vendor_perl/*/*/*/PDA
-%{_libdir}/perl5/vendor_perl/*/*/PDA
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/PDA*
 %endif
 %{_bindir}/*
 %{_datadir}/pilot-link
@@ -146,6 +154,10 @@
 %{_datadir}/aclocal/*.m4
 
 %changelog
+* Mon Nov 12 2007 Alex Lancaster <alexl at users.sourceforge.net> - 2:0.12.2-6
+- Enable Perl bindings
+- Include important docs such as README.usb
+
 * Tue Aug 29 2007 Ivana Varekova <varekova at redhat.com> - 2:0.12.2-5
 - Rebuild for selinux ppc32 issue.
 - fix open function calls




More information about the fedora-extras-commits mailing list