Package init
This commit is contained in:
commit
6860e1a01c
BIN
DBI-1.642.tar.gz
Normal file
BIN
DBI-1.642.tar.gz
Normal file
Binary file not shown.
76
perl-DBI.spec
Normal file
76
perl-DBI.spec
Normal file
@ -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 <buildteam@openeuler.org> - 1.642-2
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: change the directory of ex/ and add LICENSE
|
||||
|
||||
* Wed Sep 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.642-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user