Allisson Azevedo 6cbabdc
Name:           perl-MooseX-Daemonize
Allisson Azevedo 6cbabdc
Version:        0.08
Allisson Azevedo 6cbabdc
Release:        2%{?dist}
Allisson Azevedo 6cbabdc
Summary:        Role for daemonizing your Moose based application
Allisson Azevedo 6cbabdc
License:        GPL+ or Artistic
Allisson Azevedo 6cbabdc
Group:          Development/Libraries
Allisson Azevedo 6cbabdc
URL:            http://search.cpan.org/dist/MooseX-Daemonize/
Allisson Azevedo 6cbabdc
Source0:        http://www.cpan.org/authors/id/S/ST/STEVAN/MooseX-Daemonize-%{version}.tar.gz
Allisson Azevedo 6cbabdc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Allisson Azevedo 6cbabdc
BuildArch:      noarch
Allisson Azevedo 6cbabdc
BuildRequires:  perl(ExtUtils::MakeMaker)
Allisson Azevedo 6cbabdc
BuildRequires:  perl(Moose) >= 0.33
Allisson Azevedo 6cbabdc
BuildRequires:  perl(MooseX::Getopt) >= 0.07
Allisson Azevedo 6cbabdc
BuildRequires:  perl(MooseX::Types::Path::Class)
Allisson Azevedo 6cbabdc
BuildRequires:  perl(Test::More)
Allisson Azevedo 6cbabdc
BuildRequires:  perl(Test::Exception)
Allisson Azevedo 6cbabdc
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%description
Allisson Azevedo 6cbabdc
Often you want to write a persistant daemon that has a pid file, and
Allisson Azevedo 6cbabdc
responds appropriately to Signals. This module provides a set of basic
Allisson Azevedo 6cbabdc
roles as an infrastructure to do that.
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%prep
Allisson Azevedo 6cbabdc
%setup -q -n MooseX-Daemonize-%{version}
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%build
Allisson Azevedo 6cbabdc
%{__perl} Makefile.PL INSTALLDIRS=vendor
Allisson Azevedo 6cbabdc
make %{?_smp_mflags}
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%install
Allisson Azevedo 6cbabdc
rm -rf $RPM_BUILD_ROOT
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
Allisson Azevedo 6cbabdc
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%{_fixperms} $RPM_BUILD_ROOT/*
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%check
Allisson Azevedo 6cbabdc
make test
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%clean
Allisson Azevedo 6cbabdc
rm -rf $RPM_BUILD_ROOT
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%files
Allisson Azevedo 6cbabdc
%defattr(-,root,root,-)
Allisson Azevedo 6cbabdc
%doc Changes README
Allisson Azevedo 6cbabdc
%{perl_vendorlib}/*
Allisson Azevedo 6cbabdc
%{_mandir}/man3/*
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
%changelog
Allisson Azevedo 6cbabdc
* Thu Jan 29 2009 Allisson Azevedo <allisson@gmail.com> 0.08-2
Allisson Azevedo 6cbabdc
- Updated spec using cpanspec.
Allisson Azevedo 6cbabdc
Allisson Azevedo 6cbabdc
* Sun Jan 25 2009 Allisson Azevedo <allisson@gmail.com> 0.08-1
Allisson Azevedo 6cbabdc
- Initial RPM release