forked from perl/perl-DBD-mysql
		
	OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-mysql?expand=0&rev=b93401553d6aefec5e63319d046ccf92
		
			
				
	
	
		
			81 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
#
 | 
						|
# spec file for package perl-DBD-mysql (Version 4.017)
 | 
						|
#
 | 
						|
# 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:        2
 | 
						|
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
 | 
						|
%{perl_requires}
 | 
						|
BuildRequires:  mysql-devel
 | 
						|
BuildRequires:  perl
 | 
						|
BuildRequires:  perl-macros
 | 
						|
BuildRequires:  perl(Data::Dumper)
 | 
						|
BuildRequires:  perl(DBI) >= 1.08
 | 
						|
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
 |