1 | %define version 4.006 |
---|
2 | %define release 4 |
---|
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 |
---|
65 | * Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.006-4 |
---|
66 | - rebuilt with MySQL-5.1.34. |
---|
67 | |
---|
68 | * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.006-3 |
---|
69 | - spec in utf-8 |
---|
70 | |
---|
71 | * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.006-2 |
---|
72 | - rebuilt with perl-5.10.0. |
---|
73 | |
---|
74 | * Wed Apr 23 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 4.006-1 |
---|
75 | - new upstream release |
---|
76 | - add missing changelog: 4.001-0vl1 |
---|
77 | |
---|
78 | * Sun Feb 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.001-0vl1 |
---|
79 | - updated to 4.001 |
---|
80 | |
---|
81 | * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0007-0vl1 |
---|
82 | - updated to 3.0007 |
---|
83 | - changed Group to Development/Libraries |
---|
84 | - installed files to vendor_perl |
---|
85 | |
---|
86 | * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 2.9004-0vl1 |
---|
87 | - new upstream version(DBD-mysql-2.9004) |
---|
88 | - fixed spec file |
---|
89 | -- used rpm macros |
---|
90 | -- fixed package's dependencies |
---|
91 | -- built with perl-5.8.6, MySQL-4.0.21, perl-DBI-1.46 |
---|
92 | |
---|
93 | * Tue Oct 12 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2219-0vl2 |
---|
94 | - rebuilt with perl-5.8.2 and MySQL-4.0.21 |
---|
95 | |
---|
96 | * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 1.2219-0vl1 |
---|
97 | - updated Msql-Mysql-modules-1.2219 |
---|
98 | |
---|
99 | * Wed Dec 05 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl4 |
---|
100 | - added BuildRequires: perl >= 1:5.6.0, perl-DBI >= 1.15, zlib-devel |
---|
101 | |
---|
102 | * Mon Jun 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
103 | - rebuilt with perl-5.6.1 |
---|
104 | - Spec was written in Shift_JIS. Fixed. |
---|
105 | - modified %%files section |
---|
106 | |
---|
107 | * Sat Jun 15 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl2 |
---|
108 | - rebuild on perl-5.6.0 |
---|
109 | - removed perl version in Requires |
---|
110 | - changed mandir to /usr/share/man |
---|
111 | |
---|
112 | * Sun May 27 2001 Satoshi MACHINO <machino@vinelinux.org> 1.2216-1vl1 |
---|
113 | - build on Vine Linux |
---|
114 | |
---|
115 | * Tue May 1 2001 Trond Eivind Glomsr <teg@redhat.com> |
---|
116 | - 1.2216 |
---|
117 | - Add doc files |
---|
118 | - Minor cleanups |
---|
119 | |
---|
120 | * Thu Nov 30 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
121 | - First cut |
---|