[8714] | 1 | %define version 4.027 |
---|
[5859] | 2 | %define release 1 |
---|
[521] | 3 | |
---|
| 4 | Summary: A MySQL interface for perl |
---|
| 5 | Summary(ja): MySQL用のperlインターフェイス |
---|
| 6 | Name: perl-DBD-MySQL |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release}%{?_dist_release} |
---|
[5859] | 9 | License: GPL+ or Artistic |
---|
[521] | 10 | Group: Development/Libraries |
---|
| 11 | Source: DBD-mysql-%{version}.tar.gz |
---|
| 12 | Source1: filter-requires-dbdmysql.sh |
---|
| 13 | URL: http://search.cpan.org/dist/DBD-mysql/ |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[8714] | 15 | BuildRequires: libmysqlclient-devel |
---|
[5859] | 16 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 17 | BuildRequires: perl(DynaLoader) |
---|
| 18 | BuildRequires: perl(DBI) >= 1.46 |
---|
| 19 | BuildRequires: zlib-devel |
---|
| 20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 21 | Requires: perl-DBI >= 1.46 |
---|
[521] | 22 | |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | An implementation of DBI for MySQL for Perl. |
---|
| 26 | |
---|
| 27 | %description -l ja |
---|
| 28 | perlを使ったMySQL用のDBI |
---|
| 29 | |
---|
| 30 | # Provide perl-specific find-{provides,requires}. |
---|
| 31 | #define __find_provides /usr/lib/rpm/find-provides.perl |
---|
| 32 | #define __find_requires /usr/lib/rpm/find-requires.perl |
---|
| 33 | %define __perl_requires %{SOURCE1} |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q -n DBD-mysql-%{version} |
---|
| 38 | # Correct file permissions |
---|
| 39 | find . -type f -exec chmod -x {} ';' |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | # CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --testhost=localhost |
---|
| 43 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --ssl |
---|
| 44 | make OPTIMIZE="$RPM_OPT_FLAGS" |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
[5859] | 48 | make DESTDIR=%{buildroot} pure_install |
---|
| 49 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 50 | find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' |
---|
| 51 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 52 | chmod -R u+w %{buildroot}/* |
---|
[521] | 53 | |
---|
| 54 | %check || : |
---|
| 55 | # Full test coverage requires a live MySQL database |
---|
| 56 | # make test |
---|
| 57 | |
---|
| 58 | %clean |
---|
| 59 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %files |
---|
| 63 | %defattr(-,root,root) |
---|
| 64 | %doc README ChangeLog TODO |
---|
| 65 | %{perl_vendorarch}/* |
---|
| 66 | %{_mandir}/*/* |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %changelog |
---|
[8714] | 70 | * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.027-1 |
---|
| 71 | - new upstream release. |
---|
| 72 | |
---|
[5859] | 73 | * Thu Mar 08 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.020-1 |
---|
| 74 | - updated to 4.020-1 |
---|
| 75 | |
---|
[3736] | 76 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.006-5 |
---|
| 77 | - rebuild with perl-5.12.3 |
---|
| 78 | |
---|
[521] | 79 | * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.006-4 |
---|
| 80 | - rebuilt with MySQL-5.1.34. |
---|
| 81 | |
---|
| 82 | * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.006-3 |
---|
| 83 | - spec in utf-8 |
---|
| 84 | |
---|
| 85 | * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.006-2 |
---|
| 86 | - rebuilt with perl-5.10.0. |
---|
| 87 | |
---|
| 88 | * Wed Apr 23 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 4.006-1 |
---|
| 89 | - new upstream release |
---|
| 90 | - add missing changelog: 4.001-0vl1 |
---|
| 91 | |
---|
| 92 | * Sun Feb 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.001-0vl1 |
---|
| 93 | - updated to 4.001 |
---|
| 94 | |
---|
| 95 | * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0007-0vl1 |
---|
| 96 | - updated to 3.0007 |
---|
| 97 | - changed Group to Development/Libraries |
---|
| 98 | - installed files to vendor_perl |
---|
| 99 | |
---|
| 100 | * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 2.9004-0vl1 |
---|
| 101 | - new upstream version(DBD-mysql-2.9004) |
---|
| 102 | - fixed spec file |
---|
| 103 | -- used rpm macros |
---|
| 104 | -- fixed package's dependencies |
---|
| 105 | -- built with perl-5.8.6, MySQL-4.0.21, perl-DBI-1.46 |
---|
| 106 | |
---|
| 107 | * Tue Oct 12 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2219-0vl2 |
---|
| 108 | - rebuilt with perl-5.8.2 and MySQL-4.0.21 |
---|
| 109 | |
---|
| 110 | * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 1.2219-0vl1 |
---|
| 111 | - updated Msql-Mysql-modules-1.2219 |
---|
| 112 | |
---|
| 113 | * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl4 |
---|
| 114 | - added BuildRequires: perl >= 1:5.6.0, perl-DBI >= 1.15, zlib-devel |
---|
| 115 | |
---|
| 116 | * Mon Jun 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 117 | - rebuilt with perl-5.6.1 |
---|
| 118 | - Spec was written in Shift_JIS. Fixed. |
---|
| 119 | - modified %%files section |
---|
| 120 | |
---|
| 121 | * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl2 |
---|
| 122 | - rebuild on perl-5.6.0 |
---|
| 123 | - removed perl version in Requires |
---|
| 124 | - changed mandir to /usr/share/man |
---|
| 125 | |
---|
| 126 | * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl1 |
---|
| 127 | - build on Vine Linux |
---|
| 128 | |
---|
| 129 | * Tue May 1 2001 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 130 | - 1.2216 |
---|
| 131 | - Add doc files |
---|
| 132 | - Minor cleanups |
---|
| 133 | |
---|
| 134 | * Thu Nov 30 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 135 | - First cut |
---|