File perl-Proc-PID-File.spec of Package perl-Proc-PID-File

%define realname Proc-PID-File
%define realver  1.27
%define srcext   tar.gz

%{!?perl_installarchlib:%define perl_installarchlib %(perl -V:installarchlib | sed "s!.*='!!;s!'.*!!")}

# Common info
Name:           perl-%{realname}
Version:        %{realver}
Release:        wiz%{?extraver:0.}1
License:        GPL+ or Artistic
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Proc-PID-File/
Summary:        A module to manage process id files

# Install-time parameters
Requires:       perl

# Build-time parameters
BuildArch:      noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::Simple) perl(Test::More)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         http://search.cpan.org/CPAN/authors/id/E/EC/ECALDER/%{realname}-%{realver}.%{srcext}

%description
This Perl module is useful for writers of daemons and other processes that need
to tell whether they are already running, in order to prevent multiple process
instances. The module accomplishes this via *nix-style pidfiles, which are files
that store a process identifier.

The module provides two interfaces: 1) a simple call,
and 2) an object-oriented interface

%prep
%setup -q -n %{realname}-%{realver}

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

%check
%{__make} test

%install
%{__make} DESTDIR=%{buildroot} install_vendor

%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc Changes README
%dir %{perl_vendorlib}/Proc/PID
%dir %{perl_vendorlib}/Proc
%{perl_vendorlib}/Proc/PID/File.pm
%doc %{_mandir}/man3/*
%exclude %{perl_vendorarch}/auto/Proc/PID/File/.packlist
%exclude %{perl_installarchlib}/perllocal.pod

%changelog
openSUSE Build Service is sponsored by