forked from pool/perl-DB_File
Accepting request 105224 from home:seilerphilipp:branches:devel:languages:perl:CPAN-D
copied this package from cpan Project and corrected the missing header file error. And pelase add me as an maintainer ;) OBS-URL: https://build.opensuse.org/request/show/105224 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DB_File?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
DB_File-1.826.tar.gz
Normal file
3
DB_File-1.826.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c39828ef3cfecff8197ff057cb1c6127b87107c051d182b87c6b9ac79d23f09c
|
||||
size 88977
|
5
perl-DB_File.changes
Normal file
5
perl-DB_File.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 14 11:29:24 UTC 2012 - seiler@b1-systems.de
|
||||
|
||||
- added dependencies libd4_x-devel to prevent missing db.h file in build section (compiling error)
|
||||
|
103
perl-DB_File.spec
Normal file
103
perl-DB_File.spec
Normal file
@@ -0,0 +1,103 @@
|
||||
#
|
||||
# spec file for package perl-DB_File
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-DB_File
|
||||
Version: 1.826
|
||||
Release: 0
|
||||
%define cpan_name DB_File
|
||||
Summary: Perl5 access to Berkeley DB version 1.x
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/DB_File/
|
||||
Source: http://www.cpan.org/authors/id/P/PM/PMQS/%{cpan_name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
|
||||
%if 0%{?sles_version} >= 1100
|
||||
BuildRequires: libdb-4_5-devel
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1140
|
||||
BuildRequires: libdb-4_8-devel
|
||||
%endif
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%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 the Using DB_File with Berkeley DB version 2 or greater
|
||||
manpage). 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
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes DB_File_BS dbinfo README
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user