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