perl-Net-Daemon/perl-Net-Daemon.spec
2021-11-20 16:43:42 +08:00

63 lines
1.6 KiB
RPMSpec

Name: perl-Net-Daemon
Epoch: 1
Version: 0.49
Release: 1
Summary: Perl extension for portable daemons
License: GPL+ or Artistic
URL: https://metacpan.org/release/Net-Daemon
Source0: https://cpan.metacpan.org/authors/id/M/MN/MNOONING/Net-Daemon-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl perl-generators
Requires: perl
%description
Net::Daemon is an abstract base class for implementing portable server
applications in a very simple way. The module is designed for Perl 5.005
and threads, but can work with fork() and Perl 5.004.
The Net::Daemon class offers methods for the most common tasks a daemon
needs: Starting up, logging, accepting clients, authorization,
restricting its own environment for security and doing the true work.
You only have to override those methods that aren't appropriate for you,
but typically inheriting will safe you a lot of work anyways.
%package help
Summary: Man page for Net::Daemon
BuildArch: noarch
%description help
This package provide %{summary}.
%prep
%setup -q -n Net-Daemon-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
%make_build
%install
%make_install
%check
make test
%files
%defattr(-,root,root)
%doc ChangeLog README
%{perl_vendorlib}/Net*
%files help
%{_mandir}/man3/Net*.3*
%changelog
* Sat Nov 20 2021 shangyibin <shangyibin1@openeuler.org> - 1:0.49-1
- update version to 0.49
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.48-2
- Adjust requires
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.48-1
- Package init