1 | Name: perl-Net-Daemon |
---|
2 | Version: 0.48 |
---|
3 | Release: 3%{?_dist_release} |
---|
4 | Summary: Perl extension for portable daemons |
---|
5 | |
---|
6 | Group: Development/Libraries |
---|
7 | License: GPL+ or Artistic |
---|
8 | URL: http://search.cpan.org/dist/Net-Daemon/ |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/M/MN/MNOONING/Net-Daemon/Net-Daemon-0.43.tar.gz |
---|
10 | #upstream report http://rt.cpan.org/Ticket/Display.html?id=39759 |
---|
11 | Patch0: Net-Daemon-only-ithreads.patch |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
13 | |
---|
14 | BuildArch: noarch |
---|
15 | BuildRequires: perl |
---|
16 | # for perldoc |
---|
17 | BuildRequires: groff |
---|
18 | # Correct for lots of packages, other common choices include eg. Module::Build |
---|
19 | BuildRequires: perl(ExtUtils::MakeMaker) perl(Pod::Perldoc) perl(Test::Simple) |
---|
20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
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 5.006 and |
---|
28 | ithreads (and higher), but can work with fork() and Perl 5.004. |
---|
29 | |
---|
30 | The Net::Daemon class offers methods for the most common tasks a daemon |
---|
31 | needs: Starting up, logging, accepting clients, authorization, restricting |
---|
32 | its own environment for security and doing the true work. You only have to |
---|
33 | override those methods that aren't appropriate for you, but typically |
---|
34 | inheriting will safe you a lot of work anyways. |
---|
35 | |
---|
36 | |
---|
37 | %prep |
---|
38 | %setup -q -n Net-Daemon |
---|
39 | %patch0 -p1 |
---|
40 | |
---|
41 | # generate our other two licenses... |
---|
42 | perldoc perlgpl > LICENSE.GPL |
---|
43 | perldoc perlartistic > LICENSE.Artistic |
---|
44 | |
---|
45 | |
---|
46 | %build |
---|
47 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
---|
48 | make %{?_smp_mflags} |
---|
49 | |
---|
50 | |
---|
51 | %install |
---|
52 | rm -rf %{buildroot} |
---|
53 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
54 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
55 | # Remove the next line from noarch packages (unneeded) |
---|
56 | find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
57 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
58 | chmod -R u+w %{buildroot}/* |
---|
59 | |
---|
60 | |
---|
61 | %check |
---|
62 | %{?!_with_network_tests: |
---|
63 | # Disable tests which will fail under mock |
---|
64 | rm t/config* |
---|
65 | rm t/fork* |
---|
66 | rm t/ithread* |
---|
67 | rm t/loop* |
---|
68 | rm t/single.t |
---|
69 | rm t/unix.t |
---|
70 | } |
---|
71 | |
---|
72 | make test |
---|
73 | |
---|
74 | |
---|
75 | %clean |
---|
76 | rm -rf %{buildroot} |
---|
77 | |
---|
78 | |
---|
79 | %files |
---|
80 | %defattr(-,root,root,-) |
---|
81 | %doc ChangeLog README LICENSE.* |
---|
82 | %{perl_vendorlib}/* |
---|
83 | %{_mandir}/man3/*.3* |
---|
84 | |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Fri Jun 04 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.48-3 |
---|
88 | - build with Perl 5.16 |
---|
89 | |
---|
90 | * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.48-2 |
---|
91 | - rebuild; spec revamped |
---|
92 | |
---|
93 | * Fri Mar 25 2011 IWAI, Masaharu <iwai@alib.jp> 0.48-1 |
---|
94 | - build for Vine Linux |
---|
95 | - new upstream release |
---|
96 | |
---|
97 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-11 |
---|
98 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
99 | |
---|
100 | * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.44-10 |
---|
101 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
102 | |
---|
103 | * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.44-9 |
---|
104 | - Mass rebuild with perl-5.12.0 |
---|
105 | |
---|
106 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.44-8 |
---|
107 | - rebuild against perl 5.10.1 |
---|
108 | |
---|
109 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-7 |
---|
110 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
111 | |
---|
112 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-6 |
---|
113 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
114 | |
---|
115 | * Mon Oct 13 2008 Petr Lautrbach <plautrba@redhat.com> 0.44-5 |
---|
116 | - "--with network_tests" - don't remove network tests |
---|
117 | * Mon Oct 6 2008 Petr Lautrbach <plautrba@redhat.com> 0.44-4 |
---|
118 | - Description and License fixed |
---|
119 | - Patch without backup |
---|
120 | * Mon Oct 6 2008 Petr Lautrbach <lautrba@redhat.com> 0.44-3 |
---|
121 | - Requires: fixed |
---|
122 | * Fri Oct 3 2008 Petr Lautrbach <lautrba@redhat.com> 0.44-2 |
---|
123 | - only-ithreads patch added |
---|
124 | - disabled tests which fail under mock |
---|
125 | * Fri Sep 26 2008 Petr Lautrbach <lautrba@redhat.com> |
---|
126 | - initial rpm release |
---|