53 lines
1.4 KiB
RPMSpec
53 lines
1.4 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
Name: perl-Lazy-Lockfile
|
||
|
Version: 1.17
|
||
|
Release: 0
|
||
|
Summary: Simple Locking Module for Perl
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/J/JE/JEAGLE/Lazy-Lockfile-%{version}.tar.gz
|
||
|
URL: http://search.cpan.org/dist/Lazy-Lockfile
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
%{perl_requires}
|
||
|
BuildRequires: perl-macros
|
||
|
%if 0%{?suse_version} >= 1120
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
%description
|
||
|
Lazy::Lockfile is a module designed for simple locking, requiring very
|
||
|
little of the user. Once the object is instanced, the lock will be held as
|
||
|
long as object is in scope. When the object is destroyed, the lock is
|
||
|
released.
|
||
|
|
||
|
Lazy::Lockfile is smart enough to detect stale lockfiles from PIDs no
|
||
|
longer on the system.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "Lazy-Lockfile-%{version}"
|
||
|
%__sed -i '/^auto_install/d' Makefile.PL
|
||
|
find . -type f -exec %__chmod 0644 {} \;
|
||
|
|
||
|
%build
|
||
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||
|
%__make %{?_smp_flags}
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%check
|
||
|
%__make test
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc README
|
||
|
%dir %{perl_vendorlib}/Lazy
|
||
|
%{perl_vendorlib}/Lazy/Lockfile.pm
|
||
|
%doc %{perl_man3dir}/Lazy::Lockfile.%{perl_man3ext}%{ext_man}
|
||
|
|