commit 6860e1a01c4bc4c4356bade4b570b6c80309195a Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:11:59 2019 -0400 Package init diff --git a/DBI-1.642.tar.gz b/DBI-1.642.tar.gz new file mode 100644 index 0000000..058b455 Binary files /dev/null and b/DBI-1.642.tar.gz differ diff --git a/perl-DBI.spec b/perl-DBI.spec new file mode 100644 index 0000000..92b4717 --- /dev/null +++ b/perl-DBI.spec @@ -0,0 +1,76 @@ +Name: perl-DBI +Version: 1.642 +Release: 2 +Summary: Database independent interface for Perl +License: GPL+ or Artistic +URL: http://dbi.perl.org/ +Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz +BuildRequires: perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More) + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(Math::BigInt) + +%description +The DBI is the standard database interface module for Perl. +It defines a set of methods, variables and conventions that provide +a consistent database interface independent of the actual database being used. +It is important to remember that the DBI is just an interface. +The DBI is a layer of "glue" between an application and one or more database driver modules. +It is the driver modules which do most of the real work. The DBI provides a standard interface +and framework for the drivers to operate within. + +%package_help + +%prep +%autosetup -n DBI-%{version} -p1 +chmod 744 dbixs_rev.pl + +for F in dbixs_rev.pl ex/corogofer.pl; do + perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})" +done +sed -i -e 's/"dbiproxy$ext_pl",//' Makefile.PL +for F in lib/DBD/Gofer/Transport/corostream.pm lib/Bundle/DBI.pm lib/DBD/Proxy.pm lib/DBI/ProxyServer.pm \ + dbiproxy.PL t/80proxy.t lib/DBI/W32ODBC.pm lib/Win32/DBIODBC.pm ;do + rm "$F" + sed -i -e '\|^'"$F"'|d' MANIFEST +done + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 OPTIMIZE="%{optflags}" +%make_build + +%install +%make_install +%{_fixperms} -c %{buildroot} + +%check +make test + +%pre + +%preun + +%post + +%postun + +%files +%defattr(-,root,root) +%license LICENSE +%{_bindir}/* +%{perl_vendorarch}/* + +%files help +%defattr(-,root,root) +%doc ex/perl_dbi_nulls_test.pl ex/profile.pl +%doc README.md +%{_mandir}/*/* + +%changelog +* Fri Sep 27 2019 openEuler Buildteam - 1.642-2 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: change the directory of ex/ and add LICENSE + +* Wed Sep 4 2019 openEuler Buildteam - 1.642-1 +- Package init