File perl-BerkeleyDB.spec of Package perl-BerkeleyDB

#
# spec file for package perl-BerkeleyDB (Version 0.41)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           perl-BerkeleyDB
BuildRequires:  db-devel
Url:            http://cpan.org/modules/by-module/BerkeleyDB/
License:        Artistic License ..
Group:          Development/Libraries/Perl
Requires:       perl = %{perl_version}
AutoReqProv:    on
Summary:        Perl Module for Accessing Berkeley DB Functions
Version:        0.41
Release:        1
Source:         BerkeleyDB-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
BerkeleyDB is a module that allows Perl programs to use the facilities
provided by Berkeley DB version 2 or higher. To use version 1 of
Berkeley DB with Perl, you need the DB_File module.



Authors:
--------
    Paul Marquess <pmqs@cpan.org>

%prep
%setup -q -n BerkeleyDB-%{version}

%build
perl Makefile.PL
make %{?_smp_mflags}

%check
%ifnarch %arm
make test
%endif

%install
chmod a-x Changes MANIFEST README Todo
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{perl_vendorarch}/BerkeleyDB*
%{perl_vendorarch}/auto/BerkeleyDB
%doc %{_mandir}/man3/*
%doc Changes MANIFEST README Todo
/var/adm/perl-modules/perl-BerkeleyDB

%changelog
openSUSE Build Service is sponsored by