source: projects/specs/trunk/p/perl-DBD-CSV/perl-DBD-CSV-vl.spec @ 9141

Revision 9141, 3.0 KB checked in by inagaki, 9 years ago (diff)

2014-12-07 Ryoichi INAGAKI <ryo1@…>

  • perl-DBD-CSV, perl-DBI, perl-Gtk2, perl-Mixin-Linewise, perl-SQL-Statement: updated
  • perl-Gtk2-Unique, perl-Module-Refresh: rebuilt
  • perl-HTML-Tree, perl-Pango, perl-PerlIO-utf8_strict: NEW
Line 
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
8Summary: DBD-CSV module for perl
9Name: perl-DBD-CSV
10Version: 0.46
11Release: 1%{?_dist_release}
12License: GPL or Artistic
13Group: Development/Libraries
14URL: http://search.cpan.org/~jzucker/DBD-CSV/
15Source0: http://www.cpan.org/authors/id/J/JZ/JZUCKER/DBD-CSV-%{version}.tgz
16
17BuildRoot: %{_tmppath}/%{name}-%{version}-root
18BuildArch: noarch
19#BuildRequires:  perl(DBD::File) >= 0.40
20BuildRequires:  perl(DBI) >= 1.628
21BuildRequires:  perl(ExtUtils::MakeMaker)
22BuildRequires:  perl(SQL::Statement) >= 1.33
23BuildRequires:  perl(Text::CSV_XS) >= 1.01
24BuildRequires:  perl(Test::Harness)
25# BuildRequires >= 0.90, but 0.98 is recommended
26BuildRequires:  perl(Test::More) >= 0.98
27Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
28Requires:       perl(DBD::File) >= 0.40
29Requires:       perl(DBI) >= 1.628
30Requires:       perl(SQL::Statement) >= 1.31
31# Requires >= 0.71, but 0.83 is recommended
32Requires:       perl(Text::CSV_XS) >= 0.71
33
34
35%description
36DBD-CSV module for perl
37
38%prep
39%setup -q -n DBD-CSV-%{version}
40chmod -c a-x ChangeLog README lib/DBD/*.pm lib/Bundle/DBD/*.pm
41
42%build
43%{__perl} Makefile.PL INSTALLDIRS=vendor <<EOF
44y
45EOF
46
47make %{?_smp_mflags}
48
49%check
50make test
51
52%clean
53rm -rf %{buildroot}
54
55%install
56rm -rf %{buildroot}
57make pure_install DESTDIR=%{buildroot}
58find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
59find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
60chmod -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
Note: See TracBrowser for help on using the repository browser.