123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- %define version 4.006
- %define release 4
- Summary: A MySQL interface for perl
- Summary(ja): MySQL用のperlインターフェイス
- Name: perl-DBD-MySQL
- Version: %{version}
- Release: %{release}%{?_dist_release}
- License: GPL or Artistic
- Group: Development/Libraries
- Source: DBD-mysql-%{version}.tar.gz
- Source1: filter-requires-dbdmysql.sh
- URL: http://search.cpan.org/dist/DBD-mysql/
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- Requires: perl >= 5.8.6 , perl-DBI >= 1.46
- BuildRequires: MySQL-devel >= 4.0.21, perl >= 5.8.6, perl-DBI >= 1.46, zlib-devel
- %description
- An implementation of DBI for MySQL for Perl.
- %description -l ja
- perlを使ったMySQL用のDBI
- # Provide perl-specific find-{provides,requires}.
- #define __find_provides /usr/lib/rpm/find-provides.perl
- #define __find_requires /usr/lib/rpm/find-requires.perl
- %define __perl_requires %{SOURCE1}
- %prep
- %setup -q -n DBD-mysql-%{version}
- # Correct file permissions
- find . -type f -exec chmod -x {} ';'
- %build
- # CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --testhost=localhost
- CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --ssl
- make OPTIMIZE="$RPM_OPT_FLAGS"
- %install
- [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
- make DESTDIR=$RPM_BUILD_ROOT install
- find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
- find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
- find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
- chmod -R u+w $RPM_BUILD_ROOT/*
- %check || :
- # Full test coverage requires a live MySQL database
- # make test
- %clean
- [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
- %files
- %defattr(-,root,root)
- %doc README ChangeLog TODO
- %{perl_vendorarch}/*
- %{_mandir}/*/*
- %changelog
- * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.006-4
- - rebuilt with MySQL-5.1.34.
- * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.006-3
- - spec in utf-8
- * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.006-2
- - rebuilt with perl-5.10.0.
- * Wed Apr 23 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 4.006-1
- - new upstream release
- - add missing changelog: 4.001-0vl1
- * Sun Feb 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.001-0vl1
- - updated to 4.001
- * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0007-0vl1
- - updated to 3.0007
- - changed Group to Development/Libraries
- - installed files to vendor_perl
- * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 2.9004-0vl1
- - new upstream version(DBD-mysql-2.9004)
- - fixed spec file
- -- used rpm macros
- -- fixed package's dependencies
- -- built with perl-5.8.6, MySQL-4.0.21, perl-DBI-1.46
- * Tue Oct 12 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2219-0vl2
- - rebuilt with perl-5.8.2 and MySQL-4.0.21
- * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 1.2219-0vl1
- - updated Msql-Mysql-modules-1.2219
- * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl4
- - added BuildRequires: perl >= 1:5.6.0, perl-DBI >= 1.15, zlib-devel
- * Mon Jun 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
- - rebuilt with perl-5.6.1
- - Spec was written in Shift_JIS. Fixed.
- - modified %%files section
- * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl2
- - rebuild on perl-5.6.0
- - removed perl version in Requires
- - changed mandir to /usr/share/man
- * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl1
- - build on Vine Linux
- * Tue May 1 2001 Trond Eivind Glomsr <teg@redhat.com>
- - 1.2216
- - Add doc files
- - Minor cleanups
- * Thu Nov 30 2000 Trond Eivind Glomsr <teg@redhat.com>
- - First cut
|