2007-01-15 23:29:49 +00:00
|
|
|
#
|
2011-06-23 11:17:32 +00:00
|
|
|
# spec file for package perl-BerkeleyDB
|
2007-01-15 23:29:49 +00:00
|
|
|
#
|
2025-01-03 17:12:25 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:29:49 +00:00
|
|
|
#
|
2008-10-06 15:14:09 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-03-31 09:44:06 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:29:49 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-05-20 10:31:40 +00:00
|
|
|
%define cpan_name BerkeleyDB
|
2007-01-15 23:29:49 +00:00
|
|
|
Name: perl-BerkeleyDB
|
2025-01-03 17:12:25 +00:00
|
|
|
Version: 0.660.0
|
2011-12-12 10:44:38 +00:00
|
|
|
Release: 0
|
2025-01-03 17:12:25 +00:00
|
|
|
# 0.66 -> normalize -> 0.660.0
|
|
|
|
%define cpan_version 0.66
|
2019-03-31 09:44:06 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-05-20 10:31:40 +00:00
|
|
|
Summary: Perl extension for Berkeley DB version 2, 3, 4, 5 or 6
|
2020-09-18 08:34:23 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-01-03 17:12:25 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-15 18:48:44 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:11:56 +02:00
|
|
|
Source100: README.md
|
2010-08-09 00:25:30 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2025-01-03 17:12:25 +00:00
|
|
|
Provides: perl(BerkeleyDB) = %{version}
|
|
|
|
Provides: perl(BerkeleyDB::Btree)
|
|
|
|
Provides: perl(BerkeleyDB::CDS::Lock)
|
|
|
|
Provides: perl(BerkeleyDB::Common)
|
|
|
|
Provides: perl(BerkeleyDB::Cursor)
|
|
|
|
Provides: perl(BerkeleyDB::Env)
|
|
|
|
Provides: perl(BerkeleyDB::Hash)
|
|
|
|
Provides: perl(BerkeleyDB::Heap)
|
|
|
|
Provides: perl(BerkeleyDB::Queue)
|
|
|
|
Provides: perl(BerkeleyDB::Recno)
|
|
|
|
Provides: perl(BerkeleyDB::Term)
|
|
|
|
Provides: perl(BerkeleyDB::Txn)
|
|
|
|
Provides: perl(BerkeleyDB::TxnMgr)
|
|
|
|
Provides: perl(BerkeleyDB::Unknown)
|
|
|
|
Provides: perl(BerkeleyDB::_tiedArray)
|
|
|
|
Provides: perl(BerkeleyDB::_tiedHash)
|
|
|
|
%undefine __perllib_provides
|
2013-11-26 07:59:16 +00:00
|
|
|
%{perl_requires}
|
2015-04-15 18:48:44 +00:00
|
|
|
# MANUAL BEGIN
|
2013-10-04 09:31:37 +00:00
|
|
|
BuildRequires: db-devel
|
2015-04-15 18:48:44 +00:00
|
|
|
# MANUAL END
|
2007-01-15 23:29:49 +00:00
|
|
|
|
|
|
|
%description
|
2013-06-04 14:33:57 +00:00
|
|
|
*NOTE: This document is still under construction. Expect it to be
|
|
|
|
incomplete in places.*
|
|
|
|
|
|
|
|
This Perl module provides an interface to most of the functionality
|
2013-10-04 09:31:37 +00:00
|
|
|
available in Berkeley DB versions 2, 3, 5 and 6. In general it is safe to
|
2013-06-04 14:33:57 +00:00
|
|
|
assume that the interface provided here to be identical to the Berkeley DB
|
|
|
|
interface. The main changes have been to make the Berkeley DB API work in a
|
|
|
|
Perl way. Note that if you are using Berkeley DB 2.x, the new features
|
2013-10-04 09:31:37 +00:00
|
|
|
available in Berkeley DB 3.x or later are not available via this module.
|
2013-06-04 14:33:57 +00:00
|
|
|
|
|
|
|
The reader is expected to be familiar with the Berkeley DB documentation.
|
|
|
|
Where the interface provided here is identical to the Berkeley DB library
|
|
|
|
and the... TODO
|
|
|
|
|
|
|
|
The *db_appinit*, *db_cursor*, *db_open* and *db_txn* man pages are
|
|
|
|
particularly relevant.
|
|
|
|
|
|
|
|
The interface to Berkeley DB is implemented with a number of Perl classes.
|
2007-01-15 23:29:49 +00:00
|
|
|
|
|
|
|
%prep
|
2025-01-03 17:12:25 +00:00
|
|
|
%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
|
2007-01-15 23:29:49 +00:00
|
|
|
|
|
|
|
%build
|
2019-03-31 09:44:06 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2022-05-20 10:31:40 +00:00
|
|
|
%make_build
|
2008-07-08 21:31:40 +00:00
|
|
|
|
|
|
|
%check
|
2019-03-31 09:44:06 +00:00
|
|
|
make test
|
2007-01-15 23:29:49 +00:00
|
|
|
|
|
|
|
%install
|
2010-08-09 00:25:30 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:29:49 +00:00
|
|
|
%perl_process_packlist
|
2010-08-09 00:25:30 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:29:49 +00:00
|
|
|
|
2010-08-09 00:25:30 +00:00
|
|
|
%files -f %{name}.files
|
2013-06-04 14:33:57 +00:00
|
|
|
%doc BerkeleyDB.pod.P Changes dbinfo mkpod README Todo
|
2007-01-15 23:29:49 +00:00
|
|
|
|
2007-07-27 00:04:47 +00:00
|
|
|
%changelog
|