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