8
0

Accepting request 38075 from devel:languages:perl

checked in (request 38075)

OBS-URL: https://build.opensuse.org/request/show/38075
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-mysql?expand=0&rev=10
This commit is contained in:
OBS User autobuild
2010-04-18 22:26:38 +00:00
committed by Git OBS Bridge
parent 53949d75aa
commit bfcb5be0ce
4 changed files with 35 additions and 72 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package perl-DBD-mysql (Version 4.014)
# spec file for package perl-DBD-mysql (Version 4.013)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,38 +19,25 @@
Name: perl-DBD-mysql
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: MySQL driver for the Perl5 Database Interface (DBI)
Version: 4.014
Release: 1
BuildRequires: mysql-devel perl-DBI perl-Data-ShowTable
Url: http://cpan.org/modules/by-module/DBD/
License: Artistic License ..
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DBD-mysql
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: mysql-devel
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(DBI)
BuildRequires: perl(Data::ShowTable)
#
Obsoletes: mysqperl perl-Msql-Mysql-modules
Provides: mysqperl perl-Msql-Mysql-modules
Requires: perl-DBI perl-Data-ShowTable
Requires: perl = %{perl_version}
Requires: perl(DBI)
Requires: perl(Data::ShowTable)
## FIXME: is this really still needed
# then enable again
#Provides: mysqperl perl-Msql-Mysql-modules
#Obsoletes: mysqperl perl-Msql-Mysql-modules
AutoReqProv: on
Version: 4.013
Release: 1
Summary: Interface to the MySQL database
Group: Development/Libraries/Perl
Source: http://www.cpan.org/modules/by-module/Mysql/DBD-mysql-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define _prefix /usr
%description
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. :-)
A Perl5 Database Interface to the MySQL database
@@ -59,31 +46,32 @@ Authors:
Jochen Wiedmann <joe@ispsoft.de>
%prep
%setup -q -n %{cpan_name}-%{version}
## rpmlint
# fix file permission
chmod a-x ChangeLog README INSTALL.html eg/*
chmod a-x lib/Bundle/DBD/mysql.pm
chmod a-x lib/DBD/mysql.pm
chmod a-x lib/DBD/mysql/INSTALL.pod
%setup -q -n DBD-mysql-%{version}
chmod a-x ChangeLog README INSTALL.html
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor --cflags="-I%{_includedir}/mysql $RPM_OPT_FLAGS"
%{__make} %{?_smp_mflags}
#check
#{__make} test
perl Makefile.PL --verbose
make %{?_smp_mflags}
#make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
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
%clean
%{__rm} -rf $RPM_BUILD_ROOT
# Clear up the mess
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%files
%defattr(-, root, root)
%doc ChangeLog README INSTALL.html TODO eg
%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
%changelog