]>
Commit | Line | Data |
---|---|---|
eda9c9fa | 1 | # |
2 | # Conditional build: | |
96f348d8 | 3 | %bcond_without tests # do not perform "make test" |
eda9c9fa | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
3b6aaad2 | 6 | %define pdir POE |
7 | %define pnam Component-Server-Syslog | |
eda9c9fa | 8 | Summary: POE::Component::Server::Syslog - syslog services for POE |
f62d9093 | 9 | Summary(pl.UTF-8): POE::Component::Server::Syslog - usługi sysloga dla POE |
eda9c9fa | 10 | Name: perl-POE-Component-Server-Syslog |
dc86400a | 11 | Version: 1.08 |
e10b53cd | 12 | Release: 1 |
eda9c9fa | 13 | License: BSD-like |
14 | Group: Development/Languages/Perl | |
511a367b | 15 | Source0: http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz |
dc86400a | 16 | # Source0-md5: 89fb0d5147b279b4220d634782be7b1b |
511a367b | 17 | URL: http://search.cpan.org/dist/POE-Component-Server-Syslog/ |
c17bafff | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
eda9c9fa | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
96f348d8 | 20 | %if %{with tests} |
e10b53cd | 21 | BuildRequires: perl-Params-Validate |
eda9c9fa | 22 | BuildRequires: perl-POE >= 0.24 |
23 | BuildRequires: perl-Test-Simple | |
35faf9e5 | 24 | BuildRequires: perl-Time-modules |
eda9c9fa | 25 | %endif |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This component provides very simple UDP Syslog services for POE (named | |
31 | pipe and other syslog interoperability features are expected in future | |
32 | versions). | |
33 | ||
3a7b709d JR |
34 | %description -l pl.UTF-8 |
35 | Ten komponent udostępnia bardzo proste usługi sysloga UDP dla POE | |
36 | (obsługi nazwanych potoków i innych możliwości współpracy z syslogiem | |
37 | można oczekiwać w kolejnych wersjach). | |
eda9c9fa | 38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
30df0727 | 41 | mv t/000-signature.t{,.blah} |
eda9c9fa | 42 | |
43 | %build | |
44 | %{__perl} Makefile.PL \ | |
45 | INSTALLDIRS=vendor | |
46 | %{__make} | |
47 | ||
96f348d8 | 48 | %{?with_tests:%{__make} test} |
eda9c9fa | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
dc86400a | 55 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
511a367b | 56 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
eda9c9fa | 57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc LICENSE | |
e10b53cd AG |
64 | %{perl_vendorlib}/POE/Component/Server/Syslog |
65 | %{perl_vendorlib}/POE/Component/Server/Syslog.pm | |
66 | %{perl_vendorlib}/POE/Filter/Syslog.pm | |
eda9c9fa | 67 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version} |
68 | %{_mandir}/man3/* |