[perl-BerkeleyDB] Update to 0.51

Paul Howarth pghmcfc at fedoraproject.org
Thu Jul 5 15:50:16 UTC 2012


commit ee682e25dfd044e2bbebd8bde308dc15f9a8a1f3
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Jul 5 16:49:07 2012 +0100

    Update to 0.51
    
    - New upstream release 0.51
      - Documentation updated courtesy of Mike Caron
      - Croak if attempt to freeze BerkeleyDB object (CPAN RT#69985)
      - Rework FETCHSIZE (CPAN RT#75691)
    - BR: perl(AutoLoader), perl(Carp), perl(Exporter) and perl(IO::File)
    - Anticipate RHEL 7 having libdb
    - Mention in %description that this module doesn't support db1
    - Don't need to remove empty directories from buildroot
    - Don't use macros for commands
    - Don't need to BR: bundled perl(Test::More)

 perl-BerkeleyDB.spec |   48 +++++++++++++++++++++++++++++++++---------------
 sources              |    2 +-
 2 files changed, 34 insertions(+), 16 deletions(-)
---
diff --git a/perl-BerkeleyDB.spec b/perl-BerkeleyDB.spec
index 66c61e1..ee2e4b2 100644
--- a/perl-BerkeleyDB.spec
+++ b/perl-BerkeleyDB.spec
@@ -1,5 +1,5 @@
 # We have db4 up to Fedora 13, then db5 (in the libdb package)
-%if 0%{?fedora} > 13
+%if 0%{?fedora} > 13 || 0%{?rhel} > 6
 %global db_pkg libdb
 %else
 %global db_pkg db4
@@ -9,22 +9,25 @@
 %global db_ver %(sed '/DB_VERSION_STRING/!d;s/.*Berkeley DB[[:space:]]*\\([^:]*\\):.*/\\1/' /usr/include/db.h 2>/dev/null || echo 4.0.0)
 
 Name:           perl-BerkeleyDB
-Version:        0.49
-Release:        5%{?dist}
+Version:        0.51
+Release:        1%{?dist}
 Summary:        Interface to Berkeley DB
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/BerkeleyDB/
 Source0:        http://www.cpan.org/authors/id/P/PM/PMQS/BerkeleyDB-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildRequires:  %{db_pkg}-devel
+BuildRequires:  perl(AutoLoader)
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(Cwd)
+BuildRequires:  perl(Exporter)
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(IO::File)
 # For "make test".
 BuildRequires:  perl(MLDBM)
-BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Pod)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 # Hard-code Berkeley DB requirement to avoid problems like #592209
 Requires:       %{db_pkg} = %{db_ver}
 
@@ -33,18 +36,22 @@ Requires:       %{db_pkg} = %{db_ver}
 
 %description
 BerkeleyDB is a module that allows Perl programs to make use of the
-facilities provided by Berkeley DB. Berkeley DB is a C library that
-provides a consistent interface to a number of database formats.
-BerkeleyDB provides an interface to all four of the database types
-(hash, btree, queue and recno) currently supported by Berkeley DB.
+facilities provided by Berkeley DB version 2 or greater (note: if
+you want to use version 1 of Berkeley DB with Perl you need the DB_File
+module).
+
+Berkeley DB is a C library that provides a consistent interface to a
+number of database formats. BerkeleyDB provides an interface to all
+four of the database types (hash, btree, queue and recno) currently
+supported by Berkeley DB.
 
 %prep
 %setup -q -n BerkeleyDB-%{version}
-%{__perl} -pi -e 's,/local/,/, if ($. == 1)' dbinfo
-chmod -x Changes README
+perl -pi -e 's,/local/,/, if ($. == 1)' dbinfo
+chmod -c -x Changes README
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
 make %{?_smp_mflags}
 
 %install
@@ -56,7 +63,6 @@ install -D -m755 dbinfo $RPM_BUILD_ROOT%{_bindir}/dbinfo
 
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 
 # Remove files we don't want packaged
 rm $RPM_BUILD_ROOT%{perl_vendorarch}/{mkconsts,scan}.pl
@@ -80,11 +86,23 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/BerkeleyDB.3pm*
 
 %changelog
+* Thu Jul  5 2012 Paul Howarth <paul at city-fan.org> - 0.51-1
+- Update to 0.51
+  - Documentation updated courtesy of Mike Caron
+  - Croak if attempt to freeze BerkeleyDB object (CPAN RT#69985)
+  - Rework FETCHSIZE (CPAN RT#75691)
+- BR: perl(AutoLoader), perl(Carp), perl(Exporter) and perl(IO::File)
+- Anticipate RHEL 7 having libdb
+- Mention in %%description that this module doesn't support db1
+- Don't need to remove empty directories from buildroot
+- Don't use macros for commands
+- Don't need to BR: bundled perl(Test::More)
+
 * Tue Jun 12 2012 Petr Pisar <ppisar at redhat.com> - 0.49-5
 - Perl 5.16 rebuild
 
 * Thu Apr 05 2012 Jindrich Novy <jnovy at redhat.com> - 0.49-4
-- rebuild against libdb 5.3.15
+- Rebuild against libdb 5.3.15
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.49-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/sources b/sources
index 1b6301b..29ed678 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8a1883f87ba82fc1614a636c8f899ea5  BerkeleyDB-0.49.tar.gz
+50d0d18227a6568e2557a1b1b33f8f55  BerkeleyDB-0.51.tar.gz


More information about the scm-commits mailing list