|
@@ -1,91 +1,225 @@
|
|
-%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
|
|
|
|
-%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
|
|
|
-
|
|
|
|
-# Provide perl-specific find-{provides,requires}.
|
|
|
|
-%define __find_provides /usr/lib/rpm/find-provides.perl
|
|
|
|
-%define __find_requires /usr/lib/rpm/find-requires.perl
|
|
|
|
-
|
|
|
|
-Summary: Text-CSV_XS module for perl
|
|
|
|
-Name: perl-Text-CSV_XS
|
|
|
|
-Version: 0.65
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
-License: Artistic/GPL
|
|
|
|
-Group: Development/Libraries
|
|
|
|
-Source0: http://www.cpan.org/authors/id/JWIED/Text-CSV_XS-%{version}.tgz
|
|
|
|
-URL: http://search.cpan.org/~jwied/Text-CSV_XS/
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
-BuildRequires: perl >= 5.8.6
|
|
|
|
-Requires: perl >= 5.8.6
|
|
|
|
|
|
+Name: perl-Text-CSV_XS
|
|
|
|
+Version: 0.86
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+Summary: Comma-separated values manipulation routines
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+License: GPL+ or Artistic
|
|
|
|
+URL: http://search.cpan.org/dist/Text-CSV_XS/
|
|
|
|
+Source0: http://www.cpan.org/authors/id/H/HM/HMBRAND/Text-CSV_XS-%{version}.tgz
|
|
|
|
+BuildRequires: perl(Test::Pod)
|
|
|
|
+BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
+BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
+BuildRequires: perl(IO::Handle)
|
|
|
|
+BuildRequires: perl(Test::Harness)
|
|
|
|
+BuildRequires: perl(Test::More)
|
|
|
|
+BuildRequires: perl(Tie::Scalar)
|
|
|
|
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
+
|
|
|
|
+%{?perl_default_filter}
|
|
|
|
|
|
%description
|
|
%description
|
|
-Text-CSV_XS module for perl
|
|
|
|
|
|
+Text::CSV provides facilities for the composition and decomposition of
|
|
|
|
+comma-separated values. An instance of the Text::CSV class can combine
|
|
|
|
+fields into a CSV string and parse a CSV string into fields.
|
|
|
|
+
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -n Text-CSV_XS-%{version}
|
|
|
|
|
|
+%setup -q -n Text-CSV_XS-%{version}
|
|
|
|
+iconv -f latin1 -t utf8 ChangeLog > ChangeLog.utf8 && mv ChangeLog.utf8 ChangeLog
|
|
|
|
+chmod -c a-x examples/*
|
|
|
|
+# Upstream does this on purpose (2011-03-23):
|
|
|
|
+# "As Text::CSV_XS is so low-level, most of these files are actually *examples*
|
|
|
|
+# and not ready-to-run out-of-the-box scripts that work as expected, though
|
|
|
|
+# I must admit that some have evolved into being like that."
|
|
|
|
+#find . -type f -exec sed -i '1s/pro/usr/' {} \;
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
-CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
|
|
|
|
-make
|
|
|
|
|
|
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%install
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
+make pure_install DESTDIR=%{buildroot}
|
|
|
|
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
+find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
|
|
|
|
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
+chmod -R u+w %{buildroot}/*
|
|
|
|
+
|
|
|
|
|
|
%check
|
|
%check
|
|
|
|
+# TODO: Parallel testing supported since 0.73
|
|
make test
|
|
make test
|
|
|
|
|
|
-%clean
|
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
-%install
|
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
|
|
-make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
-
|
|
|
|
-find $RPM_BUILD_ROOT%{_prefix} -type f -print |
|
|
|
|
- sed "s@^$RPM_BUILD_ROOT@@g" |
|
|
|
|
- grep -v ^%{_mandir} |
|
|
|
|
- grep -v perllocal.pod |
|
|
|
|
- grep -v "\.packlist" > %{name}.files
|
|
|
|
-if [ "$(cat %{name}.files)X" = "X" ] ; then
|
|
|
|
- echo "ERROR: EMPTY FILE LIST"
|
|
|
|
- exit -1
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-# remove unnecessary files.
|
|
|
|
-%{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_archlib}/perllocal.pod
|
|
|
|
-%{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_vendorarch}/auto/Text/CSV_XS/.packlist
|
|
|
|
-
|
|
|
|
-%files -f %{name}.files
|
|
|
|
-%defattr(-,root,root)
|
|
|
|
-%doc README ChangeLog
|
|
|
|
-%{_mandir}/*/*
|
|
|
|
-%dir %{perl_vendorarch}/auto/Text/CSV_XS
|
|
|
|
|
|
+%clean
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%files
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%doc ChangeLog README examples/
|
|
|
|
+%{perl_vendorarch}/Text/
|
|
|
|
+%{perl_vendorarch}/auto/Text/
|
|
|
|
+%{_mandir}/man3/*.3pm*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
-* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.65-2
|
|
|
|
-- rebuild with perl-5.12.3
|
|
|
|
|
|
+* Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.86-1
|
|
|
|
+- updated to 0.86
|
|
|
|
+- spec revamped in accordance with Fedora 0.86-1
|
|
|
|
+- previous Vine changelog as follows:
|
|
|
|
+
|
|
|
|
+ - Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.65-2
|
|
|
|
+ - rebuild with perl-5.12.3
|
|
|
|
+
|
|
|
|
+ - Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.65-1
|
|
|
|
+ - new upstream release
|
|
|
|
+
|
|
|
|
+ - Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 0.34-1vl5
|
|
|
|
+ - applied new versioning policy
|
|
|
|
+ - built with perl-5.10.0
|
|
|
|
+
|
|
|
|
+ - Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl1
|
|
|
|
+ - rebuild for VineSeed.
|
|
|
|
+ - Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl0
|
|
|
|
+ - new upstream release.
|
|
|
|
+
|
|
|
|
+ - Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl0
|
|
|
|
+ - new upstream release.
|
|
|
|
+
|
|
|
|
+ - Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.23-0vl3
|
|
|
|
+ - changed Group to Development/Libraries
|
|
|
|
+
|
|
|
|
+ - Thu Sep 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.23-0vl2
|
|
|
|
+ - rebuild with perl 5.8.6
|
|
|
|
+ - use vendor_perl
|
|
|
|
+ - updated URL
|
|
|
|
+ - s/Copyright/License/
|
|
|
|
+
|
|
|
|
+ - Sat Apr 13 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.23-0vl1
|
|
|
|
+ - first build for Vine Linux
|
|
|
|
+
|
|
|
|
+* Tue Jan 24 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.86-1
|
|
|
|
+- update to 0.86
|
|
|
|
+
|
|
|
|
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.85-2
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Thu Sep 08 2011 Petr Sabata <contyk@redhat.com> - 0.85-1
|
|
|
|
+- 0.85 bump
|
|
|
|
+
|
|
|
|
+* Mon Aug 08 2011 Petr Sabata <contyk@redhat.com> - 0.83a-1
|
|
|
|
+- 0.83a bump
|
|
|
|
+
|
|
|
|
+* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.82-2
|
|
|
|
+- Perl mass rebuild
|
|
|
|
+
|
|
|
|
+* Mon May 9 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.82-1
|
|
|
|
+- update to 0.82
|
|
|
|
+
|
|
|
|
+* Wed Mar 23 2011 Petr Sabata <psabata@redhat.com> - 0.81-2
|
|
|
|
+- Revert example scripts interpreter changes
|
|
|
|
+
|
|
|
|
+* Wed Mar 23 2011 Petr Sabata <psabata@redhat.com> - 0.81-1
|
|
|
|
+- 0.81 version bump
|
|
|
|
+- Changed script interpreters in various example files
|
|
|
|
+- Convert ChangeLog to proper UTF8
|
|
|
|
+- Removed buildroot garbage
|
|
|
|
+
|
|
|
|
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.80-2
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Mon Jan 3 2011 Petr Sabata <psabata@redhat.com> - 0.80-1
|
|
|
|
+- 0.80 version bump
|
|
|
|
+
|
|
|
|
+* Thu Dec 2 2010 Petr Sabata <psabata@redhat.com> - 0.79-1
|
|
|
|
+- 0.79 version bump
|
|
|
|
|
|
-* Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.65-1
|
|
|
|
|
|
+* Mon Oct 18 2010 Petr Sabata <psabata@redhat.com> - 0.76-1
|
|
|
|
+- 0.76 version bump
|
|
|
|
+
|
|
|
|
+* Mon Oct 11 2010 Petr Sabata <psabata@redhat.com> - 0.75-1
|
|
|
|
+- 0.75 version bump
|
|
|
|
+
|
|
|
|
+* Mon Oct 04 2010 Petr Pisar <ppisar@redhat.com> - 0.74-1
|
|
|
|
+- 0.74 bump
|
|
|
|
+
|
|
|
|
+* Wed Sep 08 2010 Petr Pisar <ppisar@redhat.com> - 0.73-1
|
|
|
|
+- 0.73 bump
|
|
|
|
+
|
|
|
|
+* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.72-2
|
|
|
|
+- Mass rebuild with perl-5.12.0
|
|
|
|
+
|
|
|
|
+* Wed Mar 17 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.72-1
|
|
|
|
+- PERL_INSTALL_ROOT => DESTDIR, add perl_default_filter (XS module)
|
|
|
|
+- auto-update to 0.72 (by cpan-spec-update 0.01) (DBIx::Class needed a newer
|
|
|
|
+ Text::CSV, which in turn can only leverage Text::CSV_XS >= 0.70)
|
|
|
|
+- added a new br on perl(ExtUtils::MakeMaker) (version 0)
|
|
|
|
+- added a new br on perl(IO::Handle) (version 0)
|
|
|
|
+- added a new br on perl(Test::Harness) (version 0)
|
|
|
|
+- added a new br on perl(Test::More) (version 0)
|
|
|
|
+- added a new br on perl(Tie::Scalar) (version 0)
|
|
|
|
+
|
|
|
|
+* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.69-2
|
|
|
|
+- rebuild against perl 5.10.1
|
|
|
|
+
|
|
|
|
+* Mon Nov 2 2009 Stepan Kasal <skasal@redhat.com> - 0.69
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|
|
-* Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 0.34-1vl5
|
|
|
|
-- applied new versioning policy
|
|
|
|
-- built with perl-5.10.0
|
|
|
|
|
|
+* Wed Oct 7 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.68-1
|
|
|
|
+- update to new upstream release
|
|
|
|
|
|
-* Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl1
|
|
|
|
-- rebuild for VineSeed.
|
|
|
|
- * Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl0
|
|
|
|
- - new upstream release.
|
|
|
|
|
|
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.58-3
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.58-2
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Wed Dec 10 2008 Lubomir Rintel <lkundrak@v3.sk> - 0.58-1
|
|
|
|
+- Update to latest upstream
|
|
|
|
+- SvUPGRADE patch upstreamed
|
|
|
|
+
|
|
|
|
+* Tue Jul 08 2008 Lubomir Rintel <lkundrak@v3.sk> - 0.52-2
|
|
|
|
+- Actually solving the issue mentioned in previous change
|
|
|
|
+
|
|
|
|
+* Tue Jul 08 2008 Lubomir Rintel <lkundrak@v3.sk> - 0.52-1
|
|
|
|
+- Updated to 0.52 to solve an issue with perl 5.10
|
|
|
|
+
|
|
|
|
+* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.30-5
|
|
|
|
+- Rebuild for perl 5.10 (again)
|
|
|
|
+
|
|
|
|
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.30-4
|
|
|
|
+- Autorebuild for GCC 4.3
|
|
|
|
+
|
|
|
|
+* Sat Feb 2 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.30-3
|
|
|
|
+- rebuild for new perl
|
|
|
|
+
|
|
|
|
+* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.30-2
|
|
|
|
+- Rebuild for selinux ppc32 issue.
|
|
|
|
+
|
|
|
|
+* Sat Jun 23 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.30-1
|
|
|
|
+- Update to 0.30.
|
|
|
|
+
|
|
|
|
+* Sat Jun 16 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.29-1
|
|
|
|
+- Update to 0.29.
|
|
|
|
+
|
|
|
|
+* Sat Jun 16 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.27-1
|
|
|
|
+- Update to 0.27.
|
|
|
|
+- New upstream maintainer.
|
|
|
|
+
|
|
|
|
+* Thu Sep 7 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.23-5
|
|
|
|
+- Rebuild for FC6.
|
|
|
|
|
|
-* Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl0
|
|
|
|
-- new upstream release.
|
|
|
|
|
|
+* Wed Feb 22 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.23-4
|
|
|
|
+- Rebuild for FC5 (perl 5.8.8).
|
|
|
|
|
|
-* Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.23-0vl3
|
|
|
|
-- changed Group to Development/Libraries
|
|
|
|
|
|
+* Wed Feb 22 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.23-3
|
|
|
|
+- The wonders of CVS problems (released skipped).
|
|
|
|
|
|
-* Thu Sep 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.23-0vl2
|
|
|
|
-- rebuild with perl 5.8.6
|
|
|
|
-- use vendor_perl
|
|
|
|
-- updated URL
|
|
|
|
-- s/Copyright/License/
|
|
|
|
|
|
+* Thu Jan 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.23-2
|
|
|
|
+- Build section: simplified RPM_OPT_FLAGS handling (#175898).
|
|
|
|
|
|
-* Sat Apr 13 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.23-0vl1
|
|
|
|
-- first build for Vine Linux
|
|
|
|
|
|
+* Sat Nov 05 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.23-1
|
|
|
|
+- First build.
|