]> git.pld-linux.org Git - packages/perl-Nagios-Object.git/blame - perl-Nagios-Object.spec
- updated to 0.21.10
[packages/perl-Nagios-Object.git] / perl-Nagios-Object.spec
CommitLineData
f4954b2f
JB
1#
2# Conditional build:
9e48fe55 3%bcond_without tests # do not perform "make test"
f4954b2f
JB
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Nagios
7%define pnam Object
9e48fe55 8Summary: Nagios::Object - Creates perl objects to represent Nagios objects
d7910b39 9Summary(pl.UTF-8): Nagios::Object - obiekty Perla reprezentujące obiekty Nagiosa
f4954b2f 10Name: perl-Nagios-Object
5b584c73 11Version: 0.21.10
d0090eb9 12Release: 1
f4954b2f
JB
13License: GPL
14Group: Development/Languages/Perl
d0090eb9 15Source0: http://search.cpan.org/CPAN/authors/id/D/DU/DUNCS/Nagios-Object-%{version}.tar.gz
5b584c73 16# Source0-md5: c33d05353fb45b28d85a8520575c395b
f4954b2f 17URL: http://search.cpan.org/dist/Nagios-Object/
96cf81ee 18BuildRequires: perl-Module-Build
f4954b2f
JB
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
9e48fe55 21%if %{with tests}
22BuildRequires: perl(Test::NoWarnings) >= 0.08
23BuildRequires: perl-Test-Exception >= 0.01
d0090eb9 24%endif
f4954b2f
JB
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This module contains the code for creating Perl objects to represent
30any of the Nagios objects. All of the Perl classes are auto-generated
31at compile-time, so it's pretty trivial to add new attributes or even
32entire objects.
33
d6b8bfc0
JR
34%description -l pl.UTF-8
35Ten moduł zawiera kod do tworzenia obiektów Perla reprezentujących
36dowolne obiekty Nagiosa. Wszystkie klasy Perla są generowane
37automatycznie w czasie kompilacji, więc łatwo dodawać nowe atrybuty
38czy nawet całe obiekty.
f4954b2f
JB
39
40%prep
41%setup -q -n %{pdir}-%{pnam}-%{version}
42
43%build
44%{__perl} Build.PL \
45 installdirs=vendor \
46 destdir=$RPM_BUILD_ROOT
47./Build
48
49%{?with_tests:./Build test}
50
51%install
52rm -rf $RPM_BUILD_ROOT
53
54./Build install
942a330d 55install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
d0090eb9 56mv $RPM_BUILD_ROOT{%{_bindir}/*,%{_examplesdir}/%{name}-%{version}}
942a330d 57
d0090eb9 58rm -rf $RPM_BUILD_ROOT%{_mandir}/man1
942a330d 59rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/.packlist
f4954b2f
JB
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%files
65%defattr(644,root,root,755)
66%doc ChangeLog README
67%{perl_vendorlib}/Nagios
68%{_mandir}/man3/*
d0090eb9 69%{_examplesdir}/%{name}-%{version}
This page took 0.043163 seconds and 4 git commands to generate.