[5803] | 1 | %define version 1.618 |
---|
| 2 | %define release 1 |
---|
[521] | 3 | |
---|
| 4 | Summary: A database access API for perl |
---|
| 5 | Summary(ja): perl 用データベース接続 API |
---|
| 6 | Name: perl-DBI |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release}%{?_dist_release} |
---|
| 9 | License: Artistic |
---|
| 10 | Group: Development/Libraries |
---|
[5803] | 11 | URL: http://dbi.perl.org/ |
---|
| 12 | Source0: http://www.cpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz |
---|
| 13 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 14 | # Run-time |
---|
| 15 | BuildRequires: perl(base) |
---|
| 16 | BuildRequires: perl(constant) |
---|
| 17 | BuildRequires: perl(Carp) |
---|
| 18 | # Clone is optional |
---|
| 19 | BuildRequires: perl(Clone) |
---|
| 20 | BuildRequires: perl(Coro) |
---|
| 21 | BuildRequires: perl(Coro::Handle) |
---|
| 22 | BuildRequires: perl(Coro::Select) |
---|
| 23 | BuildRequires: perl(Cwd) |
---|
| 24 | BuildRequires: perl(Data::Dumper) |
---|
| 25 | # DB_File is optional |
---|
| 26 | BuildRequires: perl(DB_File) |
---|
| 27 | BuildRequires: perl(DynaLoader) |
---|
| 28 | BuildRequires: perl(Errno) |
---|
| 29 | BuildRequires: perl(Exporter) |
---|
| 30 | BuildRequires: perl(Fcntl) |
---|
| 31 | BuildRequires: perl(File::Basename) |
---|
| 32 | BuildRequires: perl(File::Spec) |
---|
| 33 | BuildRequires: perl(Getopt::Long) |
---|
| 34 | BuildRequires: perl(IO::File) |
---|
| 35 | BuildRequires: perl(IO::Select) |
---|
| 36 | BuildRequires: perl(IPC::Open3) |
---|
| 37 | BuildRequires: perl(Math::BigInt) |
---|
| 38 | # MLDBM is optional |
---|
| 39 | ##BuildRequires: perl(MLDBM) |
---|
| 40 | # RPC::PlClient is optional |
---|
| 41 | ##BuildRequires: perl(RPC::PlClient) >= 0.2000 |
---|
| 42 | # RPC::PlServer is optional |
---|
| 43 | ##BuildRequires: perl(RPC::PlServer) |
---|
| 44 | BuildRequires: perl(Scalar::Util) |
---|
| 45 | # SQL::Statement is optional |
---|
| 46 | BuildRequires: perl(SQL::Statement) >= 1.28 |
---|
| 47 | BuildRequires: perl(Storable) |
---|
| 48 | BuildRequires: perl(Symbol) |
---|
| 49 | BuildRequires: perl(threads) |
---|
| 50 | BuildRequires: perl(Tie::Hash) |
---|
| 51 | BuildRequires: perl(UNIVERSAL) |
---|
| 52 | # Tests |
---|
| 53 | BuildRequires: perl(Encode) |
---|
| 54 | BuildRequires: perl(File::Path) |
---|
| 55 | BuildRequires: perl(lib) |
---|
| 56 | BuildRequires: perl(Net::Daemon::Test) |
---|
| 57 | BuildRequires: perl(Test::More) |
---|
| 58 | BuildRequires: perl(Test::Simple) >= 0.90 |
---|
| 59 | # Optional tests |
---|
| 60 | BuildRequires: perl(Test::Pod) >= 1.00 |
---|
| 61 | BuildRequires: perl(Test::Pod::Coverage) >= 1.04 |
---|
| 62 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 63 | Requires: perl(Math::BigInt) |
---|
[521] | 64 | |
---|
[5803] | 65 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 66 | |
---|
| 67 | |
---|
[521] | 68 | %description |
---|
| 69 | DBI is a database access Application Programming Interface (API) for |
---|
| 70 | the Perl Language. The DBI API Specification defines a set of |
---|
| 71 | functions, variables and conventions that provide a consistent |
---|
| 72 | database interface independent of the actual database being used. |
---|
| 73 | |
---|
| 74 | %description -l ja |
---|
| 75 | DBI は Perl でデータベースにアクセスするための API です. |
---|
| 76 | DBI API では,実際に使われるデータベースに依存しない様に, |
---|
| 77 | 関数,変数などの取り決めが定義されています. |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %prep |
---|
| 81 | %setup -q -n DBI-%{version} |
---|
[5803] | 82 | iconv -f iso8859-1 -t utf-8 lib/DBD/Gofer.pm >lib/DBD/Gofer.pm.new && |
---|
| 83 | mv lib/DBD/Gofer.pm{.new,} |
---|
| 84 | chmod 644 ex/* |
---|
| 85 | chmod 744 dbixs_rev.pl |
---|
| 86 | sed -i 's?#!perl?#!%{__perl}?' ex/corogofer.pl |
---|
[521] | 87 | |
---|
| 88 | |
---|
| 89 | %build |
---|
[5803] | 90 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
| 91 | make %{?_smp_mflags} |
---|
[521] | 92 | |
---|
| 93 | %install |
---|
| 94 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
[5803] | 95 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
| 96 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 97 | find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' |
---|
| 98 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 99 | chmod -R u+w %{buildroot}/* |
---|
| 100 | # Remove Win32 specific files and man pages to avoid unwanted dependencies |
---|
| 101 | rm -rf %{buildroot}%{perl_vendorarch}/{Win32,DBI/W32ODBC.pm} \ |
---|
| 102 | %{buildroot}%{_mandir}/man3/{DBI::W32,Win32::DBI}ODBC.3pm |
---|
| 103 | perl -pi -e 's"#!perl -w"#!/usr/bin/perl -w"' \ |
---|
| 104 | %{buildroot}%{perl_vendorarch}/{goferperf,dbixs_rev}.pl |
---|
[521] | 105 | |
---|
| 106 | %clean |
---|
| 107 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 108 | |
---|
| 109 | %check |
---|
| 110 | make test |
---|
| 111 | |
---|
| 112 | %files |
---|
| 113 | %defattr(-,root,root) |
---|
[5803] | 114 | %doc Changes README ex/ |
---|
| 115 | %{perl_vendorarch}/*.p* |
---|
| 116 | %{perl_vendorarch}/Bundle/ |
---|
| 117 | %{perl_vendorarch}/DBD/ |
---|
| 118 | %{perl_vendorarch}/DBI/ |
---|
| 119 | %{perl_vendorarch}/auto/DBI/ |
---|
[521] | 120 | %{_bindir}/* |
---|
| 121 | %{_mandir}/*/* |
---|
| 122 | |
---|
| 123 | %changelog |
---|
[5803] | 124 | * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.618-1 |
---|
| 125 | - updated to 1.618; spec revamped |
---|
| 126 | |
---|
[3112] | 127 | * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 1.604-4vl6 |
---|
| 128 | - rebuild with perl 5.12.3 |
---|
| 129 | - using __perl_requires macro for VineSeed (vl6) |
---|
| 130 | |
---|
[521] | 131 | * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.604-3 |
---|
| 132 | - spec in utf-8 |
---|
| 133 | |
---|
| 134 | * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.604-2 |
---|
| 135 | - rebuilt with perl-5.10.0. |
---|
| 136 | |
---|
| 137 | * Wed Apr 23 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 1.604-1 |
---|
| 138 | - new upstream release |
---|
| 139 | |
---|
| 140 | * Mon Aug 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.58-0vl1 |
---|
| 141 | - new upstream release |
---|
| 142 | |
---|
| 143 | * Sun Jan 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.53-0vl1 |
---|
| 144 | - new upstream release |
---|
| 145 | |
---|
| 146 | * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.51-0vl1 |
---|
| 147 | - new upstream release |
---|
| 148 | - changed Group to Development/Libraries |
---|
| 149 | - installed module files to vendor_perl |
---|
| 150 | |
---|
| 151 | * Sat Jul 22 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.46-0vl2 |
---|
| 152 | - use filter-requires-dbi.sh instead of find-requires.perl |
---|
| 153 | |
---|
| 154 | * Sat Dec 04 2004 IWAI, Masaharu <iwai@alib.jp> 1.46-0vl1 |
---|
| 155 | - new upstream version |
---|
| 156 | - build on perl-5.8.6-0vl1 |
---|
| 157 | |
---|
| 158 | * Sat May 22 2004 Satoshi MACHINO <machino@vinelinux.org> 1.40-0vl1 |
---|
| 159 | - new upstream version |
---|
| 160 | |
---|
| 161 | * Sat May 24 2003 IWAI Masaharu <iwai@alib.jp> 1.37-0vl1 |
---|
| 162 | - update 1.37 |
---|
| 163 | - build with perl-5.8.0 |
---|
| 164 | - add make test |
---|
| 165 | |
---|
| 166 | * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 1.21-0vl1 |
---|
| 167 | - updated 1.21 |
---|
| 168 | |
---|
| 169 | * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 1.20-0vl1 |
---|
| 170 | - updated 1.20 |
---|
| 171 | |
---|
| 172 | * Sat Sep 15 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.19-0vl2 |
---|
| 173 | - the spec was in Shift-JIS. Fixed. |
---|
| 174 | |
---|
| 175 | * Fri Aug 03 2001 Satoshi MACHINO <machino@vinelinux.org> 1.19-0vl1 |
---|
| 176 | - updated 1.19 |
---|
| 177 | |
---|
| 178 | * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 1.15-1vl2 |
---|
| 179 | - rebuild on perl-5.6.0 |
---|
| 180 | - changed mandir to /usr/share/man |
---|
| 181 | - removed version in Requires perl |
---|
| 182 | |
---|
| 183 | * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 1.15-1vl1 |
---|
| 184 | - updated perl-DBL-1.15 |
---|
| 185 | |
---|
| 186 | * Tue May 08 2001 Satoshi MACHINO <machino@vinelinux.org> 1.14-10vl1 |
---|
| 187 | - fixed Vine Linux |
---|
| 188 | |
---|
| 189 | * Tue Feb 27 2001 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 190 | - Cleanups |
---|
| 191 | |
---|
| 192 | * Thu Nov 30 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 193 | - build for main distribution |
---|
| 194 | - use %%{_tmppath} |
---|
| 195 | - change name of specfile |
---|
| 196 | - don't use a find script to generate file lists |
---|
| 197 | - general cleanup |
---|
| 198 | - add descriptive summary and description |
---|
| 199 | |
---|
| 200 | |
---|
| 201 | * Mon Aug 14 2000 Tim Powers <timp@redhat.com> |
---|
| 202 | - Spec file was autogenerated. |
---|