diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 --- a/.cvsignore +++ /dev/null diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1eda430 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/BerkeleyDB-[0-9.]*.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index 873b438..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: perl-BerkeleyDB -# $Id$ -NAME := perl-BerkeleyDB -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/perl-BerkeleyDB.rpmlintrc b/perl-BerkeleyDB.rpmlintrc new file mode 100644 index 0000000..a9f5bc3 --- /dev/null +++ b/perl-BerkeleyDB.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error %description -l en_US (btree|recno) -> ") diff --git a/perl-BerkeleyDB.spec b/perl-BerkeleyDB.spec new file mode 100644 index 0000000..3b5b2a2 --- /dev/null +++ b/perl-BerkeleyDB.spec @@ -0,0 +1,413 @@ +# We have db4 up to Fedora 13, then db5 (in the libdb package) +%if 0%{?fedora} > 13 || 0%{?rhel} > 6 +%global db_pkg libdb +%else +%global db_pkg db4 +%endif + +# Run optional test +%if ! 0%{?rhel} +%bcond_without perl_BerkeleyDB_enables_optional_test +%else +%bcond_with perl_BerkeleyDB_enables_optional_test +%endif + + +# We need to know the exact DB version we're built against +%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.63 +Release: 2%{?dist} +Summary: Interface to Berkeley DB +License: GPL+ or Artistic +URL: https://metacpan.org/release/BerkeleyDB +Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/BerkeleyDB-%{version}.tar.gz +# Module Build +BuildRequires: %{db_pkg}-devel +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: sed +# Module Runtime +BuildRequires: perl(Exporter) +BuildRequires: perl(IO::File) +BuildRequires: perl(strict) +BuildRequires: perl(UNIVERSAL) +BuildRequires: perl(vars) +BuildRequires: perl(XSLoader) +# Test Suite +BuildRequires: perl(Carp) +BuildRequires: perl(charnames) +BuildRequires: perl(constant) +BuildRequires: perl(Cwd) +BuildRequires: perl(File::Path) +BuildRequires: perl(lib) +BuildRequires: perl(overload) +BuildRequires: perl(Symbol) +BuildRequires: perl(Test::More) +BuildRequires: perl(threads::shared) +%if %{with perl_BerkeleyDB_enables_optional_test} +# Optional Tests +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Encode) +BuildRequires: perl(MLDBM) +BuildRequires: perl(Test::CPAN::Meta) +BuildRequires: perl(Test::CPAN::Meta::JSON) +BuildRequires: perl(Test::NoWarnings) +BuildRequires: perl(Test::Pod) >= 1.00 +%endif +# Runtime +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} +Requires: perl(XSLoader) + +# Don't "provide" private Perl libs +%{?perl_default_filter} + +%description +BerkeleyDB is a module that allows Perl programs to make use of the +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 -c -x Changes README + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name '*.bs' -empty -delete +%{_fixperms} -c %{buildroot} +install -D -m755 dbinfo %{buildroot}%{_bindir}/dbinfo + +# Remove files we don't want packaged +rm %{buildroot}%{perl_vendorarch}/{mkconsts,scan}.pl + +%check +make test + +%files +%doc README Changes Todo +%{_bindir}/dbinfo +%{perl_vendorarch}/BerkeleyDB/ +%{perl_vendorarch}/BerkeleyDB.pm +%doc %{perl_vendorarch}/BerkeleyDB.pod +%{perl_vendorarch}/auto/BerkeleyDB/ +%{_mandir}/man3/BerkeleyDB.3* + +%changelog +* Fri Jul 26 2019 Fedora Release Engineering - 0.63-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jul 22 2019 Jitka Plesnikova - 0.63-1 +- 0.63 bump + +* Fri May 31 2019 Jitka Plesnikova - 0.61-2 +- Perl 5.30 rebuild + +* Sun Mar 31 2019 Paul Howarth - 0.61-1 +- Update to 0.61 + - Fix a couple of typos (GH#1) + +* Sat Mar 30 2019 Paul Howarth - 0.60-1 +- Update to 0.60 + - Updates for BDB 6.2 and BDB 6.3 + - Expose set_lg_filemode (CPAN RT#124979) + - Added meta-json.t and meta-yaml.t + - Moved source to github: https://github.com/pmqs/BerkeleyDB + - Add META_MERGE to Makefile.PL +- Add patch to fix a couple of typos + https://github.com/pmqs/BerkeleyDB/pull/1 + +* Fri Feb 01 2019 Fedora Release Engineering - 0.55-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.55-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 0.55-12 +- Perl 5.28 rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 0.55-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.55-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.55-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 0.55-8 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.55-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 0.55-6 +- Perl 5.24 rebuild + +* Thu Apr 21 2016 Paul Howarth - 0.55-5 +- Fix FTBFS due to missing buildreq perl-devel +- Simplify find commands using -empty and -delete + +* Thu Feb 04 2016 Fedora Release Engineering - 0.55-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 0.55-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Jun 05 2015 Jitka Plesnikova - 0.55-2 +- Perl 5.22 rebuild + +* Sun Feb 22 2015 Paul Howarth - 0.55-1 +- Update to 0.55 + - Error opening ErrFile with PerlIO_findFILE (CPAN RT#101883) + - Minor updates for BDB 6.1 +- Classify buildreqs by usage + +* Wed Aug 27 2014 Jitka Plesnikova - 0.54-4 +- Perl 5.20 rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 0.54-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.54-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Nov 10 2013 Paul Howarth - 0.54-1 +- Update to 0.54 + - Fix memory leak in CDS locking routines (CPAN RT#90134) + +* Wed Oct 09 2013 Jitka Plesnikova - 0.53-2 +- Rebuild against libdb 5.3.28 + +* Fri Aug 16 2013 Paul Howarth 0.53-1 +- Update to 0.53 + - BerkeleyDB 0.52 failed to build on 5.18.1RC3 (CPAN RT#87771) + - Typo fixes (CPAN RT#86705) + +* Sat Aug 03 2013 Fedora Release Engineering - 0.52-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Petr Pisar - 0.52-2 +- Perl 5.18 rebuild + +* Tue Jun 11 2013 Paul Howarth 0.52-1 +- Update to 0.52 + - Updates for BDB 6.0 - added Blob support + - Added BerkeleyDB::DbStream class to interface to Blobs + - Added BlobThreshold and BlobDir options to BerkeleyDB::Env constructor + - Added BlobThreshold and BlobDir options to Hash, Btree and Heap + constructors + - Added get_blob_threshold method to BerkeleyDB::Env + - Added get_blob_dir method to BerkeleyDB::Env + - Added get_blob_threshold method to Hash, Btree and Heap + - Added get_blob_dir method to Hash, Btree and Heap + - Added method $cursor->set_partial + - Added method $cursor->partial_clear + - Fixed $env->lock_detect dies due to incorrect version check (CPAN RT#84179) + - Fixed memory leak in db_verify() method with libdb < 4.2 (CPAN RT##84409) + - Fixed a few croaks +- Drop %%defattr, redundant since rpm 4.4 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.51-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 0.51-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jul 09 2012 Petr Pisar - 0.51-2 +- Perl 5.16 rebuild + +* Thu Jul 5 2012 Paul Howarth - 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 - 0.49-5 +- Perl 5.16 rebuild + +* Thu Apr 05 2012 Jindrich Novy - 0.49-4 +- Rebuild against libdb 5.3.15 + +* Fri Jan 13 2012 Fedora Release Engineering - 0.49-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Sep 21 2011 Paul Howarth - 0.49-2 +- Rebuild for libdb 5.2.36 in Rawhide + +* Sun Sep 18 2011 Steven Pritchard 0.49-1 +- Update to 0.49. +- BR Cwd (not in core now). + +* Sun Jun 19 2011 Paul Howarth - 0.48-2 +- Perl mass rebuild + +* Sun Jun 19 2011 Paul Howarth - 0.48-1 +- Update to 0.48 + - Added support for db_exists and lock_detect + - Fixed bug with c_pget when the DB_GET_BOTH flag is used + - Fixed bug with db_pget when the DB_GET_BOTH flag is used + - Changes to build with BDB 5.2 + - Add support for new Heap database format + - Fixed test harness issue with Heap.t (CPAN RT#68818) +- Don't package build tools mkconsts.pl and scan.pl + +* Sun Jun 19 2011 Marcela Mašláňová - 0.43-6 +- Perl mass rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.43-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Feb 4 2011 Paul Howarth - 0.43-4 +- Rebuild for libdb 5.1.25 in Rawhide + +* Wed Sep 29 2010 jkeating - 0.43-3 +- Rebuilt for gcc bug 634757 + +* Sun Sep 12 2010 Paul Howarth - 0.43-2 +- Rebuild for libdb 5.1.19 in Rawhide + +* Tue Aug 3 2010 Marcela Maslanova - 0.43-1 +- Update to 0.43 + - Changes to build with BDB 5.1 + - Dropped support for Server option when creating an environment + - Documentation updates (CPAN RT#59202) + - Fixed compilation error with MS Visual Studio 2005 (CPAN RT#59924) + +* Wed Jul 7 2010 Paul Howarth - 0.42-1 +- Update to 0.42 + - added $db->Env method to retrieve environment object from a database object + - get the tied interface to use truncate in the CLEAR method if available +- Build with libdb (Berkeley DB 5.x) from Fedora 14 onwards (#612139) +- Tag BerkeleyDB.pod as %%doc +- Use DESTDIR rather than PERL_INSTALL_ROOT + +* Tue May 25 2010 Paul Howarth - 0.41-3 +- Rebuild for Berkeley DB 4.8.30 in F-13 and Rawhide (#592209) +- Hard-code Berkeley DB requirement to avoid problems like #592209 +- Add %%{?perl_default_filter} + +* Thu Apr 29 2010 Marcela Maslanova - 0.41-2 +- Mass rebuild with perl-5.12.0 + +* Sat Feb 13 2010 Steven Pritchard 0.41-1 +- Update to 0.41. + +* Mon Dec 7 2009 Stepan Kasal - 0.39-2 +- rebuild against perl 5.10.1 + +* Sat Aug 29 2009 Steven Pritchard 0.39-1 +- Update to 0.39. + +* Sat Jul 25 2009 Fedora Release Engineering - 0.38-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Jun 04 2009 Steven Pritchard 0.38-1 +- Update to 0.38. + +* Thu Jun 04 2009 Steven Pritchard 0.36-1 +- Update to 0.36. + +* Thu Feb 26 2009 Fedora Release Engineering - 0.34-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu May 15 2008 Steven Pritchard 0.34-1 +- Update to 0.34. + +* Thu Mar 06 2008 Tom "spot" Callaway - 0.33-3 +Rebuild for new perl + +* Tue Feb 19 2008 Fedora Release Engineering - 0.33-2 +- Autorebuild for GCC 4.3 + +* Mon Jan 28 2008 Steven Pritchard 0.33-1 +- Update to 0.33. +- Update License tag. +- BR Test::More. + +* Wed Aug 29 2007 Fedora Release Engineering - 0.32-2 +- Rebuild for selinux ppc32 issue. + +* Fri Jul 13 2007 Steven Pritchard 0.32-1 +- Update to 0.32. + +* Tue Apr 17 2007 Steven Pritchard 0.31-3 +- BR ExtUtils::MakeMaker. + +* Mon Oct 16 2006 Steven Pritchard 0.31-2 +- Rebuild. + +* Mon Oct 16 2006 Steven Pritchard 0.31-1 +- Update to 0.31. +- Use fixperms macro instead of our own chmod incantation. + +* Wed Sep 13 2006 Steven Pritchard 0.30-1 +- Update to 0.30. + +* Mon Aug 28 2006 Steven Pritchard 0.29-2 +- Minor spec cleanup. + +* Fri Jul 07 2006 Steven Pritchard 0.29-1 +- Update to 0.29. + +* Fri Jun 30 2006 Steven Pritchard 0.28-1 +- Update to 0.28 + +* Sat Feb 18 2006 Steven Pritchard 0.27-2 +- Rebuild + +* Tue Jan 10 2006 Steven Pritchard 0.27-1 +- Update to 0.27 + +* Wed Oct 12 2005 Steven Pritchard 0.26-6 +- Another rebuild + +* Sat Sep 24 2005 Steven Pritchard 0.26-5 +- Rebuild for new db4 in rawhide + +* Mon Sep 05 2005 Steven Pritchard 0.26-4 +- Spec cleanup +- Include COPYING and Artistic + +* Wed Aug 03 2005 Steven Pritchard 0.26-3 +- Move OPTIMIZE to Makefile.PL instead of make + +* Mon Aug 01 2005 Steven Pritchard 0.26-2 +- Various fixes from Paul Howarth: + - Add description + - Fix permissions on docs (also Paul Howarth) + - Add OPTIMIZE to make + - Don't own perl_vendorarch/auto/ + - BuildRequire Test::Pod and MLDBM + +* Wed Jul 06 2005 Steven Pritchard 0.26-1 +- Specfile autogenerated. +- Add BuildRequires db4-devel. +- Install dbinfo script. diff --git a/sources b/sources index e69de29..275f50c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (BerkeleyDB-0.63.tar.gz) = 43edf4eb3650e7b03dfc45ead834ea766d458cf3bc9b6405646142ad0ab223bdb3267815be5a92ddbf3958e5507d39f193d749d9ff6fe83a3beb9e02e8f6c66b