]> git.pld-linux.org Git - SPECS.git/blob - perl-Net-Daemon.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-Net-Daemon.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4 #
5 %define         pdir    Net
6 %define         pnam    Daemon
7 Summary:        Net::Daemon - Perl extension for portable daemons
8 Summary(pl.UTF-8):      Net::Daemon - perlowe rozszerzenie dla przenośnych demonów
9 Name:           perl-Net-Daemon
10 Version:        0.48
11 Release:        1
12 License:        GPL or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  771f9ba01c3b033ed8cc3d6bad36e5fb
16 URL:            https://metacpan.org/release/Net-Daemon
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRequires:  rpmbuild(macros) >= 1.745
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _noautoreq      'perl(Thread)'
24
25 %description
26 Net::Daemon is an abstract base class for implementing portable server
27 applications in a very simple way. The module is designed for Perl
28 5.005 and threads, but can work with fork() and Perl 5.004.
29
30 %description -l pl.UTF-8
31 Net::Daemon to abstrakcyjna klasa bazowa do implementowania
32 przenośnych aplikacji serwerowych w bardzo prosty sposób. Ten moduł
33 był projektowany dla Perla 5.005 z wątkami, ale może działać także z
34 funkcją fork() i Perlem 5.004.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc ChangeLog README
58 %{perl_vendorlib}/Net/Daemon.pm
59 %{perl_vendorlib}/Net/Daemon
60 %{_mandir}/man3/Net::Daemon*.3pm*
This page took 0.658105 seconds and 3 git commands to generate.