Blame SPECS/perl-Net-Daemon.spec

6fb57e
Name:           perl-Net-Daemon
6fb57e
Version:        0.48
166c67
Release:        5%{?dist}
6fb57e
Summary:        Perl extension for portable daemons
6fb57e
6fb57e
Group:          Development/Libraries
6fb57e
License:        GPL+ or Artistic
6fb57e
URL:            http://search.cpan.org/dist/Net-Daemon/
6fb57e
Source0:        http://search.cpan.org/CPAN/authors/id/M/MN/MNOONING/Net-Daemon-%{version}.tar.gz
6fb57e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6fb57e
6fb57e
BuildArch:      noarch
6fb57e
BuildRequires:  perl(ExtUtils::MakeMaker)
6fb57e
BuildRequires:  perl-Pod-Perldoc
6fb57e
# Run-time:
6fb57e
BuildRequires:  perl(Getopt::Long)
6fb57e
# Tests:
6fb57e
BuildRequires:  perl(IO::Socket)
6fb57e
BuildRequires:  perl(Test::More)
6fb57e
# Network tests:
6fb57e
%{?_with_network_tests:
6fb57e
BuildRequires:  perl(lib)
6fb57e
}
6fb57e
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
6fb57e
6fb57e
%description
6fb57e
Net::Daemon is an abstract base class for implementing portable server 
6fb57e
applications in a very simple way. The module is designed for Perl 5.006 and 
6fb57e
ithreads (and higher), but can work with fork() and Perl 5.004.
6fb57e
6fb57e
The Net::Daemon class offers methods for the most common tasks a daemon 
6fb57e
needs: Starting up, logging, accepting clients, authorization, restricting 
6fb57e
its own environment for security and doing the true work. You only have to 
6fb57e
override those methods that aren't appropriate for you, but typically 
6fb57e
inheriting will safe you a lot of work anyways.
6fb57e
6fb57e
6fb57e
%prep
6fb57e
%setup -q -n Net-Daemon-%{version}
6fb57e
# Convert EOL
6fb57e
sed -i 's/\r//' README
6fb57e
6fb57e
# generate our other two licenses...
6fb57e
perldoc perlgpl > LICENSE.GPL
6fb57e
perldoc perlartistic > LICENSE.Artistic
6fb57e
6fb57e
6fb57e
%build
6fb57e
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
6fb57e
make %{?_smp_mflags}
6fb57e
6fb57e
6fb57e
%install
6fb57e
rm -rf $RPM_BUILD_ROOT
6fb57e
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
6fb57e
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
6fb57e
# Remove the next line from noarch packages (unneeded)
6fb57e
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
6fb57e
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
6fb57e
chmod -R u+w $RPM_BUILD_ROOT/*
6fb57e
6fb57e
6fb57e
%check
6fb57e
%{?!_with_network_tests:
6fb57e
# Disable tests which will fail under mock
6fb57e
  rm t/config*
6fb57e
  rm t/fork*
6fb57e
  rm t/ithread*
6fb57e
  rm t/loop*
6fb57e
  rm t/single.t
6fb57e
  rm t/unix.t
6fb57e
}
6fb57e
6fb57e
make test
6fb57e
6fb57e
6fb57e
%clean
6fb57e
rm -rf $RPM_BUILD_ROOT
6fb57e
6fb57e
6fb57e
%files
6fb57e
%defattr(-,root,root,-)
6fb57e
%doc ChangeLog README LICENSE.*
6fb57e
%{perl_vendorlib}/*
6fb57e
%{_mandir}/man3/*.3*
6fb57e
6fb57e
6fb57e
%changelog
166c67
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.48-5
166c67
- Mass rebuild 2013-12-27
166c67
6fb57e
* Tue Oct 23 2012 Petr Pisar <ppisar@redhat.com> - 0.48-4
6fb57e
- Specify all dependencies
6fb57e
- Correct README end-of-lines
6fb57e
6fb57e
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.48-3
6fb57e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6fb57e
6fb57e
* Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 0.48-2
6fb57e
- Perl 5.16 rebuild
6fb57e
6fb57e
* Mon Jan 16 2012 Petr Lautrbach <plautrba@redhat.com> 0.48-1
6fb57e
- Update to 0.48 version
6fb57e
- Fix build requires
6fb57e
6fb57e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-14
6fb57e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6fb57e
6fb57e
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.44-13
6fb57e
- Perl mass rebuild
6fb57e
6fb57e
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.44-12
6fb57e
- Perl 5.14 mass rebuild
6fb57e
6fb57e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-11
6fb57e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6fb57e
6fb57e
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.44-10
6fb57e
- 661697 rebuild for fixing problems with vendorach/lib
6fb57e
6fb57e
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.44-9
6fb57e
- Mass rebuild with perl-5.12.0
6fb57e
6fb57e
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.44-8
6fb57e
- rebuild against perl 5.10.1
6fb57e
6fb57e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-7
6fb57e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6fb57e
6fb57e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-6
6fb57e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6fb57e
6fb57e
* Mon Oct 13 2008 Petr Lautrbach <plautrba@redhat.com> 0.44-5
6fb57e
- "--with network_tests" - don't remove network tests 
6fb57e
* Mon Oct  6 2008 Petr Lautrbach <plautrba@redhat.com> 0.44-4
6fb57e
- Description and License fixed
6fb57e
- Patch without backup 
6fb57e
* Mon Oct  6 2008 Petr Lautrbach <lautrba@redhat.com> 0.44-3
6fb57e
- Requires: fixed 
6fb57e
* Fri Oct  3 2008 Petr Lautrbach <lautrba@redhat.com> 0.44-2
6fb57e
- only-ithreads patch added
6fb57e
- disabled tests which fail under mock
6fb57e
* Fri Sep 26 2008 Petr Lautrbach <lautrba@redhat.com>
6fb57e
- initial rpm release