Blob Blame History Raw
Name:           perl-DB_File-Lock
Version:        0.05
Release:        2%{?dist}
Summary:        Locking with flock wrapper for DB_File
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/DB_File-Lock/
Source0:        http://www.cpan.org/modules/by-module/DB_File/DB_File-Lock-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Carp)
BuildRequires:  perl(DB_File)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(Symbol)
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))


%description
This module provides a wrapper for the DB_File module, adding locking.


%prep
%setup -q -n DB_File-Lock-%{version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*


%check
make test


%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


%changelog
* Tue Apr 22 2014 Xavier Bachelot <xavier@bachelot.org> 0.05-2
- Package review cleanups.

* Thu Apr 17 2014 Xavier Bachelot <xavier@bachelot.org> 0.05-1
- Initial release.