8
0

Accepting request 43174 from home:computersalat:devel:perl

Copy from home:computersalat:devel:perl/perl-DBD-mysql via accept of submit request 43174 revision 2.
Request was accepted with message:
self accept

OBS-URL: https://build.opensuse.org/request/show/43174
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-mysql?expand=0&rev=11
This commit is contained in:
Christian Wittmer
2010-07-17 15:52:56 +00:00
committed by Git OBS Bridge
parent bfcb5be0ce
commit bf16bbea44
4 changed files with 85 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package perl-DBD-mysql (Version 4.013)
# spec file for package perl-DBD-mysql (Version 4.016)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -17,61 +17,65 @@
# norootforbuild
Name: perl-DBD-mysql
BuildRequires: mysql-devel perl-DBI perl-Data-ShowTable
Url: http://cpan.org/modules/by-module/DBD/
License: Artistic License ..
Group: Development/Libraries/Perl
Obsoletes: mysqperl perl-Msql-Mysql-modules
Provides: mysqperl perl-Msql-Mysql-modules
Requires: perl-DBI perl-Data-ShowTable
Requires: perl = %{perl_version}
AutoReqProv: on
Version: 4.013
%define cpan_name DBD-mysql
Summary: MySQL driver for the Perl5 Database Interface (DBI)
Version: 4.016
Release: 1
Summary: Interface to the MySQL database
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Source: http://www.cpan.org/modules/by-module/Mysql/DBD-mysql-%{version}.tar.bz2
Url: http://search.cpan.org/dist/DBD-mysql/
#Source: http://www.cpan.org/modules/by-module/DBD/DBD-mysql-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define _prefix /usr
BuildRequires: mysql-devel
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DBI) >= 1.08
Requires: perl = %{perl_version}
Requires: perl(Data::Dumper)
Requires: perl(DBI) >= 1.08
%description
A Perl5 Database Interface to the MySQL database
DBD::mysql is the Perl5 Database Interface driver for the MySQL database.
In other words: DBD::mysql is an interface between the Perl programming
language and the MySQL programming API that comes with the MySQL relational
database management system. Most functions provided by this programming API
are supported. Some rarely used functions are missing, mainly because noone
ever requested them. :-)
Authors:
--------
Jochen Wiedmann <joe@ispsoft.de>
%prep
%setup -q -n DBD-mysql-%{version}
chmod a-x ChangeLog README INSTALL.html
%setup -q -n %{cpan_name}-%{version}
# rpmlint: executable-docs,
# spurious-executable-perm
# script-without-shebang
find -type f -exec %{__chmod} 0644 {} \;
%build
perl Makefile.PL --verbose
make %{?_smp_mflags}
#make test
%{__perl} Makefile.PL INSTALLDIRS=vendor --cflags="-I%{_includedir}/mysql $RPM_OPT_FLAGS"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
chmod a-x $RPM_BUILD_ROOT/%{perl_vendorarch}//Bundle/DBD/mysql.pm
chmod a-x $RPM_BUILD_ROOT/%{perl_vendorarch}/DBD/mysql.pm
chmod a-x $RPM_BUILD_ROOT/%{perl_vendorarch}/DBD/mysql/INSTALL.pod
%perl_gen_filelist
%clean
# Clear up the mess
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc ChangeLog README INSTALL.html TODO
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/DBD
%{perl_vendorarch}/Bundle/DBD
%{perl_vendorarch}/DBD
/var/adm/perl-modules/perl-DBD-mysql
%files -f %{name}.files
%defattr(-,root,root,-)
%doc ChangeLog eg INSTALL.html README TODO
%changelog