[521] | 1 | %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) |
---|
| 2 | %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) |
---|
| 3 | |
---|
| 4 | # Provide perl-specific find-{provides,requires}. |
---|
| 5 | %define __find_provides /usr/lib/rpm/find-provides.perl |
---|
| 6 | %define __find_requires /usr/lib/rpm/find-requires.perl |
---|
| 7 | |
---|
| 8 | Summary: DBD-CSV module for perl |
---|
| 9 | Name: perl-DBD-CSV |
---|
[9141] | 10 | Version: 0.46 |
---|
[5803] | 11 | Release: 1%{?_dist_release} |
---|
[9141] | 12 | License: GPL or Artistic |
---|
[521] | 13 | Group: Development/Libraries |
---|
[9141] | 14 | URL: http://search.cpan.org/~jzucker/DBD-CSV/ |
---|
[5803] | 15 | Source0: http://www.cpan.org/authors/id/J/JZ/JZUCKER/DBD-CSV-%{version}.tgz |
---|
[9141] | 16 | |
---|
[521] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildArch: noarch |
---|
[5803] | 19 | #BuildRequires: perl(DBD::File) >= 0.40 |
---|
[9141] | 20 | BuildRequires: perl(DBI) >= 1.628 |
---|
[5803] | 21 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 22 | BuildRequires: perl(SQL::Statement) >= 1.33 |
---|
[9141] | 23 | BuildRequires: perl(Text::CSV_XS) >= 1.01 |
---|
[5803] | 24 | BuildRequires: perl(Test::Harness) |
---|
| 25 | # BuildRequires >= 0.90, but 0.98 is recommended |
---|
[9141] | 26 | BuildRequires: perl(Test::More) >= 0.98 |
---|
[5803] | 27 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 28 | Requires: perl(DBD::File) >= 0.40 |
---|
[9141] | 29 | Requires: perl(DBI) >= 1.628 |
---|
[5803] | 30 | Requires: perl(SQL::Statement) >= 1.31 |
---|
| 31 | # Requires >= 0.71, but 0.83 is recommended |
---|
| 32 | Requires: perl(Text::CSV_XS) >= 0.71 |
---|
[521] | 33 | |
---|
[5803] | 34 | |
---|
[521] | 35 | %description |
---|
| 36 | DBD-CSV module for perl |
---|
| 37 | |
---|
| 38 | %prep |
---|
| 39 | %setup -q -n DBD-CSV-%{version} |
---|
[9141] | 40 | chmod -c a-x ChangeLog README lib/DBD/*.pm lib/Bundle/DBD/*.pm |
---|
[521] | 41 | |
---|
| 42 | %build |
---|
[9141] | 43 | %{__perl} Makefile.PL INSTALLDIRS=vendor <<EOF |
---|
| 44 | y |
---|
| 45 | EOF |
---|
| 46 | |
---|
[5803] | 47 | make %{?_smp_mflags} |
---|
[521] | 48 | |
---|
| 49 | %check |
---|
| 50 | make test |
---|
| 51 | |
---|
| 52 | %clean |
---|
[5803] | 53 | rm -rf %{buildroot} |
---|
[521] | 54 | |
---|
| 55 | %install |
---|
[5803] | 56 | rm -rf %{buildroot} |
---|
| 57 | make pure_install DESTDIR=%{buildroot} |
---|
| 58 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 59 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 60 | chmod -R u+w %{buildroot}/* |
---|
[521] | 61 | |
---|
[5803] | 62 | %files |
---|
[521] | 63 | %defattr(-,root,root) |
---|
| 64 | %doc README ChangeLog |
---|
| 65 | %dir %{perl_vendorlib}/Bundle/DBD |
---|
| 66 | %dir %{perl_vendorlib}/DBD |
---|
[9141] | 67 | %dir %{perl_vendorlib}/DBD/CSV |
---|
| 68 | %exclude %dir %{perl_vendorlib}/DBI/Test/Case/DBD/CSV |
---|
| 69 | %exclude %dir %{perl_vendorlib}/DBI/Test/DBD/CSV |
---|
[5803] | 70 | %{perl_vendorlib}/Bundle/DBD/*.pm |
---|
| 71 | %{perl_vendorlib}/DBD/*.pm |
---|
[9141] | 72 | %{perl_vendorlib}/DBD/CSV/*.pm |
---|
| 73 | %exclude %{perl_vendorlib}/DBI/Test/Case/DBD/CSV/*.pm |
---|
| 74 | %exclude %{perl_vendorlib}/DBI/Test/DBD/CSV/*.pm |
---|
[5803] | 75 | %{_mandir}/*/* |
---|
[521] | 76 | |
---|
| 77 | %changelog |
---|
[9141] | 78 | * Fri Dec 5 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.46-1 |
---|
| 79 | - updated to 0.46 |
---|
| 80 | - built with perl 5.16.3 |
---|
| 81 | |
---|
[5803] | 82 | * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.33-1 |
---|
| 83 | - updated to 0.33; spec revamped |
---|
| 84 | |
---|
[3736] | 85 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22-2 |
---|
| 86 | - rebuild with perl-5.12.3 |
---|
| 87 | |
---|
[521] | 88 | * Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-1 |
---|
| 89 | - applied new versioning policy |
---|
| 90 | |
---|
| 91 | * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl2 |
---|
| 92 | - changed Group to Development/Libraries |
---|
| 93 | - s/Copyright/License/ |
---|
| 94 | |
---|
| 95 | * Thu Sep 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl1 |
---|
| 96 | - updated to 0.22 |
---|
| 97 | - added BuildRequires: perl-DBI |
---|
| 98 | - rebuild with perl 5.8.6 |
---|
| 99 | - use vendor_perl dir |
---|
| 100 | |
---|
| 101 | * Sat Apr 13 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.2002-0vl1 |
---|
| 102 | - first build for Vine Linux |
---|