forked from perl/perl-DBD-mysql
		
	checked in (request 43312) OBS-URL: https://build.opensuse.org/request/show/43312 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-mysql?expand=0&rev=12
		
			
				
	
	
		
			90 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			90 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
| #
 | |
| # spec file for package perl-DBD-mysql (Version 4.014)
 | |
| #
 | |
| # 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 %( echo %{name} | %{__sed} -e 's,perl-,,' )
 | |
| Summary:        MySQL driver for the Perl5 Database Interface (DBI)
 | |
| Version:        4.014
 | |
| Release:        1
 | |
| 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)
 | |
| #
 | |
| 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
 | |
| 
 | |
| %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
 | |
| # 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
 | |
| 
 | |
| %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 README INSTALL.html TODO eg
 | |
| 
 | |
| %changelog
 |