# # spec file for package perl-DB_File # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name DB_File Name: perl-DB_File Version: 1.859.0 Release: 1.8 %define cpan_version 1.859 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl5 access to Berkeley DB version 1.x URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildRequires: perl BuildRequires: perl-macros Provides: perl(DB_File) = 1.859.0 Provides: perl(DB_File::BTREEINFO) Provides: perl(DB_File::HASHINFO) Provides: perl(DB_File::RECNOINFO) %define __perllib_provides /bin/true %{perl_requires} # MANUAL BEGIN %if 0%{?suse_version} >= 1140 BuildRequires: libdb-4_8-devel %else BuildRequires: libdb-4_5-devel %endif # MANUAL END %description *DB_File* is a module which allows Perl programs to make use of the facilities provided by Berkeley DB version 1.x (if you have a newer version of DB, see Using DB_File with Berkeley DB version 2 or greater). It is assumed that you have a copy of the Berkeley DB manual pages at hand when reading this documentation. The interface defined here mirrors the Berkeley DB interface closely. Berkeley DB is a C library which provides a consistent interface to a number of database formats. *DB_File* provides an interface to all three of the database types currently supported by Berkeley DB. The file types are: * *DB_HASH* This database type allows arbitrary key/value pairs to be stored in data files. This is equivalent to the functionality provided by other hashing packages like DBM, NDBM, ODBM, GDBM, and SDBM. Remember though, the files created using DB_HASH are not compatible with any of the other packages mentioned. A default hashing algorithm, which will be adequate for most applications, is built into Berkeley DB. If you do need to use your own hashing algorithm it is possible to write your own in Perl and have *DB_File* use it instead. * *DB_BTREE* The btree format allows arbitrary key/value pairs to be stored in a sorted, balanced binary tree. As with the DB_HASH format, it is possible to provide a user defined Perl routine to perform the comparison of keys. By default, though, the keys are stored in lexical order. * *DB_RECNO* DB_RECNO allows both fixed-length and variable-length flat text files to be manipulated using the same key/value pair interface as in DB_HASH and DB_BTREE. In this case the key will consist of a record (line) number. %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes dbinfo README %changelog * Tue Aug 22 2023 Tina Müller - updated to 1.859 see /usr/share/doc/packages/perl-DB_File/Changes 1.859 21 August 2023 * silence clang compiler warnings https://github.com/pmqs/DB_File/issues/13 Sun Aug 20 16:30:05 2023 +0100 6f8902efe7b2782ad418ea53ddaad08ed9bebf9b * Sat May 14 2022 Tina Müller - updated to 1.858 see /usr/share/doc/packages/perl-DB_File/Changes 1.858 13 May 2022 * Update to license wording Fri May 13 07:50:35 2022 +0100 5089ede9dbc01ea9e47f5cb96bf9c8706ad1794d * Sat Feb 26 2022 Tina Müller - updated to 1.857 see /usr/share/doc/packages/perl-DB_File/Changes 1.857 25 February 2022 * Silence gcc12 'empty-body' warning https://github.com/pmqs/DB_File/issues/10 22c4850b70d0c32eb4acb9c987868274a61072ec * Wed Jun 23 2021 Tina Müller - updated to 1.856 see /usr/share/doc/packages/perl-DB_File/Changes 1.856 22 June 2021 * Ensure that all *.bak files are cleaned up https://github.com/pmqs/DB_File/pull/9 96bcf494625897ab4fcda322481dd6f730bdb668 * Wed Oct 14 2020 Tina Müller - updated to 1.855 see /usr/share/doc/packages/perl-DB_File/Changes 1.855 13 October 2020 * Stop shipping DB_File_BS for the NeXT operating system. https://github.com/pmqs/DB_File/pull/7 e5f329e066bf99f683c895f4a8b8ea328804bbb1 80e0bb7b655a2cb035292b3ae4b095d569314bdf * Thu Sep 17 2020 Tina Müller - updated to 1.854 see /usr/share/doc/packages/perl-DB_File/Changes 1.854 16 September 2020 * Prefer direct notation over indirect (#4) * Make hint/BS snippets strict compliant. * trim whitespace * Mon Jan 6 2020 - updated to 1.853 see /usr/share/doc/packages/perl-DB_File/Changes * Mon Apr 22 2019 Stephan Kulow - updated to 1.852 see /usr/share/doc/packages/perl-DB_File/Changes 1.852 21 April Feb 2019 * ParseOpenInfo() leaks if it croaks DB_File_type memory not freed when ParseOpenInfo croaks. https://github.com/pmqs/DB_File/issues/1 * Fix whitespace in DB_File.xs * Fri Apr 5 2019 Stephan Kulow - updated to 1.851 see /usr/share/doc/packages/perl-DB_File/Changes 1.851 4 April Feb 2019 * Fix typo in MANIFEST with .travis.yml file * Sun Mar 31 2019 Stephan Kulow - updated to 1.850 see /usr/share/doc/packages/perl-DB_File/Changes 1.850 10 Feb 2019 * Added soure to github https://github.com/pmqs/DB_File * Added .travis.yml * Added t/meta-json.t & t/meta-yaml.t * Thu Nov 8 2018 Stephan Kulow - updated to 1.843 see /usr/share/doc/packages/perl-DB_File/Changes 1.843 2 November 2018 * hints file (sourced from http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/lang/perl5/files/) Highlighed by Sevan Janiyan hints/bitrig.pl hints/netbsd.pl hints/minix.pl hints/openbsd.pl * Mon Jul 16 2018 coolo@suse.com - updated to 1.842 see /usr/share/doc/packages/perl-DB_File/Changes 1.842 14 July 2018 * Document the MaocOS build failures & how MacPort can work around th eissue. [#] 125238 [#] 125585 [#] RT 133280 * Write all test db files into a directory created by File::Temp Protects against any possible races if running a parallel build. * #96357: DB_File destructor is not thread-safe Added CLONE_SKIP to DB_File.pm and included the test db-threads.t from the patch. Note - This only works with perl >= 5.8.7 * Tue Apr 3 2018 coolo@suse.com - updated to 1.841 see /usr/share/doc/packages/perl-DB_File/Changes 1.841 2 Apr 2018 * #124944 allow ppport.h-less builds in core * Fri Dec 30 2016 coolo@suse.com - updated to 1.840 see /usr/share/doc/packages/perl-DB_File/Changes 1.840 29 Dec 2016 * #119569: Failed to install DB_File-1.839 into Linux 1.839 29 Dec 2016 * #119557: DB_File.xs: unused-parameter warnings * #107642: unused arg * Mon May 23 2016 coolo@suse.com - updated to 1.838 see /usr/share/doc/packages/perl-DB_File/Changes 1.838 15 May 2016 * #101342: R_SETCURSOR compiler warning [#111726]: Coverity finding: flagSet() test always false 1.837 9 Jan 2016 * DB_File: database UTF-8 documentation RT #110248 * Coverity finding: status variable ignored multiple times RT #111725 1.836 6 Jan 2016 * Confirm build with BDB 6.2 * Tue Sep 1 2015 coolo@suse.com - updated to 1.835 see /usr/share/doc/packages/perl-DB_File/Changes 1.835 23 Dec 2014 * Silence more compiler warnings 1.834 11 Dec 2014 * Makefile.PL: version check is missing a zero RT #100844 1.833 9 Dec 2014 * More Silence compiler warnings * 1.832 breaks bleadperl C89 build RT #100812 1.832 8 Dec 2014 * Silence compiler warnings * C++ change from blead 1.831 15 November 2013 * C99 comment is a nogo RT #90383 1.830 2 November 2013 * Memory leaks when failed to open db RT #89589 * DB_File uses AutoLoader for no reason RT #88258 1.829 7 July 2013 * make realclean: removing all files RT #68214 * Documented the issue where the error below BDB0588 At least one secondary cursor must be specified to DB->join * DB_File installs to wrong place for CPAN version RT #70420 Makefile.PL prevents INSTALLDIRS on command line. RT #68287: Makefile.PL prevents INSTALLDIRS on command line. * typo fix RT #85335 1.828 7 May 2013 * Minor change to build with Berkeley DB 6.x 1.827 25 Jan 2012 * DB_File.pm - Don't use "@_" construct [RT #79287] * Wed Feb 15 2012 seiler@b1-systems.de - changed dependency to get the build working (hopefully) for SLE10 distributions * Wed Feb 15 2012 seiler@b1-systems.de - changed dependency to get the build working (hopefully) for SLE10 distributions * Wed Feb 15 2012 seiler@b1-systems.de - corrected mistake in >= and == to prevent that the if condition for sles10 fits for sles11 too * Wed Feb 15 2012 seiler@b1-systems.de - corrected if conditions to get the macros interpreted correctly for sles versions * Tue Feb 14 2012 seiler@b1-systems.de - added dependencies libd4_x-devel to prevent missing db.h file in build section (compiling error)