]> git.pld-linux.org Git - packages/perl-POE-Component-Server-Syslog.git/blob - perl-POE-Component-Server-Syslog.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-POE-Component-Server-Syslog.git] / perl-POE-Component-Server-Syslog.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    POE
6 %define         pnam    Component-Server-Syslog
7 Summary:        POE::Component::Server::Syslog - syslog services for POE
8 Summary(pl.UTF-8):      POE::Component::Server::Syslog - usługi sysloga dla POE
9 Name:           perl-POE-Component-Server-Syslog
10 Version:        1.18
11 Release:        1
12 License:        BSD-like
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/POE/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  6f2738b00dc954cf0e1575f315398593
16 URL:            http://search.cpan.org/dist/POE-Component-Server-Syslog/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-POE >= 0.24
21 BuildRequires:  perl-Params-Validate
22 BuildRequires:  perl-Test-Simple
23 BuildRequires:  perl-Time-modules
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
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).
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc LICENSE
62 %{perl_vendorlib}/POE/Component/Server/Syslog
63 %{perl_vendorlib}/POE/Component/Server/Syslog.pm
64 %{perl_vendorlib}/POE/Filter/Syslog.pm
65 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}
66 %{_mandir}/man3/*
This page took 0.114871 seconds and 4 git commands to generate.