source: projects/specs/trunk/p/perl-DBD-MySQL/perl-DBD-MySQL-vl.spec @ 8714

Revision 8714, 4.0 KB checked in by tomop, 10 years ago (diff)

updated perl modules.

Line 
1%define version 4.027
2%define release 1
3
4Summary:       A MySQL interface for perl
5Summary(ja):   MySQL用のperlインターフェイス
6Name:          perl-DBD-MySQL
7Version:       %{version}
8Release:       %{release}%{?_dist_release}
9License:       GPL+ or Artistic
10Group:         Development/Libraries
11Source:        DBD-mysql-%{version}.tar.gz
12Source1:       filter-requires-dbdmysql.sh
13URL:           http://search.cpan.org/dist/DBD-mysql/
14BuildRoot:     %{_tmppath}/%{name}-%{version}-root
15BuildRequires: libmysqlclient-devel
16BuildRequires: perl(ExtUtils::MakeMaker)
17BuildRequires: perl(DynaLoader)
18BuildRequires: perl(DBI) >= 1.46
19BuildRequires: zlib-devel
20Requires:      perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
21Requires:      perl-DBI >= 1.46
22
23
24%description
25An implementation of DBI for MySQL for Perl.
26
27%description -l ja
28perlを使った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
39find . -type f -exec chmod -x {} ';'
40
41%build
42# CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --testhost=localhost
43CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --ssl
44make OPTIMIZE="$RPM_OPT_FLAGS"
45
46%install
47[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
48make DESTDIR=%{buildroot} pure_install
49find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
50find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
51find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
52chmod -R u+w %{buildroot}/*
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
70* Tue Jul  1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.027-1
71- new upstream release.
72
73* Thu Mar 08 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.020-1
74- updated to 4.020-1
75
76* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.006-5
77- rebuild with perl-5.12.3
78
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
Note: See TracBrowser for help on using the repository browser.