File perl-MLDBM-Sync.spec of Package perl-MLDBM-Sync
#
# spec file for package perl-MLDBM-Sync
#
# Copyright (c) 2011 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-MLDBM-Sync
BuildRequires: dos2unix perl-MLDBM perl-Tie-Cache
BuildRequires: perl-macros
Version: 0.30
Release: 391
Requires: perl-MLDBM perl-Tie-Cache
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic-1.0
Url: http://cpan.org/modules/by-module/MLDBM
Summary: Perl module for safe concurrent access to MLDBM databases
Source: MLDBM-Sync-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
This module wraps around the MLDBM interface, by handling concurrent
access to MLDBM databases with file locking, and flushes i/o explicity
per lock/unlock. The new [Read]Lock()/UnLock() API can be used to
serialize requests logically and improve performance for bundled reads
& writes.
Authors:
--------
Joshua Chamas <asp@chamas.com>
%prep
%setup -n MLDBM-Sync-%{version}
%build
perl Makefile.PL
make %{?_smp_mflags}
dos2unix CHANGES
chmod 644 README CHANGES
%check
make test
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc CHANGES README bench
%doc %{_mandir}/man?/*
%{perl_vendorlib}/MLDBM
%{perl_vendorarch}/auto/MLDBM/Sync/
%changelog