| 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 |
|---|
| 10 | Version: 0.46 |
|---|
| 11 | Release: 1%{?_dist_release} |
|---|
| 12 | License: GPL or Artistic |
|---|
| 13 | Group: Development/Libraries |
|---|
| 14 | URL: http://search.cpan.org/~jzucker/DBD-CSV/ |
|---|
| 15 | Source0: http://www.cpan.org/authors/id/J/JZ/JZUCKER/DBD-CSV-%{version}.tgz |
|---|
| 16 | |
|---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 18 | BuildArch: noarch |
|---|
| 19 | #BuildRequires: perl(DBD::File) >= 0.40 |
|---|
| 20 | BuildRequires: perl(DBI) >= 1.628 |
|---|
| 21 | BuildRequires: perl(ExtUtils::MakeMaker) |
|---|
| 22 | BuildRequires: perl(SQL::Statement) >= 1.33 |
|---|
| 23 | BuildRequires: perl(Text::CSV_XS) >= 1.01 |
|---|
| 24 | BuildRequires: perl(Test::Harness) |
|---|
| 25 | # BuildRequires >= 0.90, but 0.98 is recommended |
|---|
| 26 | BuildRequires: perl(Test::More) >= 0.98 |
|---|
| 27 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
|---|
| 28 | Requires: perl(DBD::File) >= 0.40 |
|---|
| 29 | Requires: perl(DBI) >= 1.628 |
|---|
| 30 | Requires: perl(SQL::Statement) >= 1.31 |
|---|
| 31 | # Requires >= 0.71, but 0.83 is recommended |
|---|
| 32 | Requires: perl(Text::CSV_XS) >= 0.71 |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | %description |
|---|
| 36 | DBD-CSV module for perl |
|---|
| 37 | |
|---|
| 38 | %prep |
|---|
| 39 | %setup -q -n DBD-CSV-%{version} |
|---|
| 40 | chmod -c a-x ChangeLog README lib/DBD/*.pm lib/Bundle/DBD/*.pm |
|---|
| 41 | |
|---|
| 42 | %build |
|---|
| 43 | %{__perl} Makefile.PL INSTALLDIRS=vendor <<EOF |
|---|
| 44 | y |
|---|
| 45 | EOF |
|---|
| 46 | |
|---|
| 47 | make %{?_smp_mflags} |
|---|
| 48 | |
|---|
| 49 | %check |
|---|
| 50 | make test |
|---|
| 51 | |
|---|
| 52 | %clean |
|---|
| 53 | rm -rf %{buildroot} |
|---|
| 54 | |
|---|
| 55 | %install |
|---|
| 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}/* |
|---|
| 61 | |
|---|
| 62 | %files |
|---|
| 63 | %defattr(-,root,root) |
|---|
| 64 | %doc README ChangeLog |
|---|
| 65 | %dir %{perl_vendorlib}/Bundle/DBD |
|---|
| 66 | %dir %{perl_vendorlib}/DBD |
|---|
| 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 |
|---|
| 70 | %{perl_vendorlib}/Bundle/DBD/*.pm |
|---|
| 71 | %{perl_vendorlib}/DBD/*.pm |
|---|
| 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 |
|---|
| 75 | %{_mandir}/*/* |
|---|
| 76 | |
|---|
| 77 | %changelog |
|---|
| 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 | |
|---|
| 82 | * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.33-1 |
|---|
| 83 | - updated to 0.33; spec revamped |
|---|
| 84 | |
|---|
| 85 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22-2 |
|---|
| 86 | - rebuild with perl-5.12.3 |
|---|
| 87 | |
|---|
| 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 |
|---|