7d6f4c5683
* BUG #60085, Andreas Koenig's patch for DBI changes * Updated documents OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-mysql?expand=0&rev=13
83 lines
2.5 KiB
RPMSpec
83 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package perl-DBD-mysql (Version 4.016)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: perl-DBD-mysql
|
|
%define cpan_name DBD-mysql
|
|
Summary: MySQL driver for the Perl5 Database Interface (DBI)
|
|
Version: 4.017
|
|
Release: 1
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries/Perl
|
|
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
|
|
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
|
|
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 %{cpan_name}-%{version}
|
|
# rpmlint: executable-docs,
|
|
# spurious-executable-perm
|
|
# script-without-shebang
|
|
find -type f -exec %{__chmod} 0644 {} \;
|
|
|
|
%build
|
|
%{__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
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,-)
|
|
%doc ChangeLog eg INSTALL.html README TODO
|
|
|
|
%changelog
|