perl-DBD-MySQL/perl-DBD-MySQL.spec

85 lines
2.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:11:54 -04:00
Name: perl-DBD-MySQL
Version: 4.046
2020-08-10 15:21:43 +08:00
Release: 7
2019-09-30 11:11:54 -04:00
Summary: Perl [DBI] driver for access to MySQL databases.
License: GPL+ or Artistic
URL: https://metacpan.org/release/DBD-mysql
Source0: https://cpan.metacpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-%{version}.tar.gz
Patch0: 0000-DBD-mysql-4.043-Fix-build-failures-for-MariaDB-10.2.patch
BuildRequires: coreutils findutils gcc mariadb-connector-c mariadb-connector-c-devel openssl-devel perl-devel
BuildRequires: perl-generators perl-interpreter zlib-devel perl perl-macros perl-interpreter perl-File-Path
BuildRequires: perl-PathTools perl-Getopt-Long perl-libs perl-ExtUtils-MakeMaker perl-Data-Dumper git
BuildRequires: perl(DBI) >= 1.609
BuildRequires: perl(DBI::DBD)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Simple) >= 0.90
Requires: perl-libs
Provides: perl-DBD-mysql = %{version}-%{release}
%{?perl_default_filter}
%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 no-one ever requested them.
%package help
Summary: Including man files for perl-DBD-MySQL
Requires: man
%description help
This contains man files for the using of perl-DBD-MySQL.
%prep
%autosetup -Sgit -n DBD-mysql-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
%check
make test
%files
%license LICENSE
%doc Changes README.md
%{perl_vendorarch}/*
%files help
%{_mandir}/man3/*.3*
%changelog
2020-08-10 15:21:43 +08:00
* Mon Aug 10 2020 volcanodragon <linfeilong@huawei.com> - 4.064-7
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update yaml file
2019-11-06 19:45:41 +08:00
* Tue Oct 15 2019 shenyangyang<shenyangyang4@huawei.com> - 4.064-6
- Type:enhancemnet
- ID:NA
- SUG:NA
- DESC:delete unneeded build requires
2019-09-30 11:11:54 -04:00
* Sat Aug 31 2019 zoujing<zoujing13@huawei.com> - 4.064-5
- Type:enhancemnet
- ID:NA
- SUG:restart
2019-11-06 19:45:41 +08:00
- DESC:openEuler Debranding
2019-09-30 11:11:54 -04:00
* Wed Aug 21 2019 renxudong<renxudong1@huawei.com> - 4.064-4.1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise patch name
* Wed Jul 18 2018 openEuler Buildteam <buildteam@openeuler.org> - 4.046-4
- Package init