1.617 bump
This commit is contained in:
parent
298637b94c
commit
b7c178575c
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ DBI-1.613.tar.gz
|
|||||||
/DBI-1.614.tar.gz
|
/DBI-1.614.tar.gz
|
||||||
/DBI-1.615.tar.gz
|
/DBI-1.615.tar.gz
|
||||||
/DBI-1.616.tar.gz
|
/DBI-1.616.tar.gz
|
||||||
|
/DBI-1.617.tar.gz
|
||||||
|
@ -2,73 +2,77 @@
|
|||||||
%global __requires_exclude perl\\(RPC::
|
%global __requires_exclude perl\\(RPC::
|
||||||
|
|
||||||
Name: perl-DBI
|
Name: perl-DBI
|
||||||
Version: 1.616
|
Version: 1.617
|
||||||
Release: 5%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A database access API for perl
|
Summary: A database access API for perl
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://dbi.perl.org/
|
URL: http://dbi.perl.org/
|
||||||
Source0: http://www.cpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRequires: perl(base)
|
||||||
|
BuildRequires: perl(constant)
|
||||||
|
BuildRequires: perl(lib)
|
||||||
|
BuildRequires: perl(threads)
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
|
BuildRequires: perl(Coro)
|
||||||
|
BuildRequires: perl(Coro::Handle)
|
||||||
|
BuildRequires: perl(Coro::Select)
|
||||||
|
BuildRequires: perl(Cwd)
|
||||||
|
BuildRequires: perl(Data::Dumper)
|
||||||
|
BuildRequires: perl(Encode)
|
||||||
|
BuildRequires: perl(Exporter)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(File::Path)
|
||||||
|
BuildRequires: perl(File::Spec)
|
||||||
|
BuildRequires: perl(Getopt::Long)
|
||||||
|
BuildRequires: perl(IO::File)
|
||||||
|
BuildRequires: perl(IO::Select)
|
||||||
|
BuildRequires: perl(Math::BigInt)
|
||||||
|
BuildRequires: perl(Net::Daemon::Test)
|
||||||
# perl(RPC::PlClient) for tests only, it's optional at compile and run time
|
# perl(RPC::PlClient) for tests only, it's optional at compile and run time
|
||||||
BuildRequires: perl(RPC::PlClient) >= 0.2000
|
BuildRequires: perl(RPC::PlClient) >= 0.2000
|
||||||
BuildRequires: perl(Test::Pod)
|
BuildRequires: perl(RPC::PlServer)
|
||||||
|
BuildRequires: perl(Scalar::Util)
|
||||||
|
BuildRequires: perl(Storable)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
BuildRequires: perl(Test::Simple) >= 0.90
|
BuildRequires: perl(Test::Simple) >= 0.90
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
# The automated scripts are not able to get the version for this:
|
|
||||||
Provides: perl(DBI) = %{version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
DBI is a database access Application Programming Interface (API) for
|
DBI is a database access Application Programming Interface (API) for
|
||||||
the Perl Language. The DBI API Specification defines a set of
|
the Perl Language. The DBI API Specification defines a set of
|
||||||
functions, variables and conventions that provide a consistent
|
functions, variables and conventions that provide a consistent
|
||||||
database interface independent of the actual database being used.
|
database interface independent of the actual database being used.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n DBI-%{version}
|
%setup -q -n DBI-%{version}
|
||||||
|
|
||||||
iconv -f iso8859-1 -t utf-8 lib/DBD/Gofer.pm >lib/DBD/Gofer.pm.new &&
|
iconv -f iso8859-1 -t utf-8 lib/DBD/Gofer.pm >lib/DBD/Gofer.pm.new &&
|
||||||
mv lib/DBD/Gofer.pm{.new,}
|
mv lib/DBD/Gofer.pm{.new,}
|
||||||
|
|
||||||
chmod 644 ex/*
|
chmod 644 ex/*
|
||||||
chmod 744 dbixs_rev.pl
|
chmod 744 dbixs_rev.pl
|
||||||
|
sed -i 's?#!perl?#!%{__perl}?' ex/corogofer.pl
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
|
||||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
|
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
chmod -R u+w %{buildroot}/*
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
# Remove Win32 specific files and man pages to avoid unwanted dependencies
|
# Remove Win32 specific files and man pages to avoid unwanted dependencies
|
||||||
rm -rf $RPM_BUILD_ROOT%{perl_vendorarch}/{Win32,DBI/W32ODBC.pm} \
|
rm -rf %{buildroot}%{perl_vendorarch}/{Win32,DBI/W32ODBC.pm} \
|
||||||
$RPM_BUILD_ROOT%{_mandir}/man3/{DBI::W32,Win32::DBI}ODBC.3pm
|
%{buildroot}%{_mandir}/man3/{DBI::W32,Win32::DBI}ODBC.3pm
|
||||||
|
|
||||||
perl -pi -e 's"#!perl -w"#!/usr/bin/perl -w"' \
|
perl -pi -e 's"#!perl -w"#!/usr/bin/perl -w"' \
|
||||||
$RPM_BUILD_ROOT%{perl_vendorarch}/{goferperf,dbixs_rev}.pl
|
%{buildroot}%{perl_vendorarch}/{goferperf,dbixs_rev}.pl
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README ex/
|
%doc README ex/
|
||||||
%{_bindir}/dbipro*
|
%{_bindir}/dbipro*
|
||||||
%{_bindir}/dbilogstrip
|
%{_bindir}/dbilogstrip
|
||||||
@ -80,8 +84,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
%{_mandir}/man3/*.3*
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 31 2012 Petr Šabata <contyk@redhat.com> - 1.617-1
|
||||||
|
- 1.617 bump
|
||||||
|
- Modernize spec
|
||||||
|
- Remove now obsolete perl(DBI) Provides
|
||||||
|
|
||||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.616-5
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.616-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user