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