From f4954b2fd29ee3625c584d13a574c474d45f1f28 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 27 Apr 2006 12:06:51 +0000 Subject: [PATCH] - new Changed files: perl-Nagios-Object.spec -> 1.1 --- perl-Nagios-Object.spec | 58 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 perl-Nagios-Object.spec diff --git a/perl-Nagios-Object.spec b/perl-Nagios-Object.spec new file mode 100644 index 0000000..54b6a39 --- /dev/null +++ b/perl-Nagios-Object.spec @@ -0,0 +1,58 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Nagios +%define pnam Object +Summary: Nagios::Object - Perl objects to represent Nagios objects +Summary(pl): Nagios::Object - obiekty Perla reprezentuj±ce obiekty Nagiosa +Name: perl-Nagios-Object +Version: 0.08 +Release: 1 +License: GPL +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/T/TO/TOBEYA/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 59cf6e6286abcd26674b4da092e4759b +URL: http://search.cpan.org/dist/Nagios-Object/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This module contains the code for creating Perl objects to represent +any of the Nagios objects. All of the Perl classes are auto-generated +at compile-time, so it's pretty trivial to add new attributes or even +entire objects. + +%description -l pl +Ten modu³ zawiera kod do tworzenia obiektów Perla reprezentuj±cych +dowolne obiekty Nagiosa. Wszystkie klasy Perla s± generowane +automatycznie w czasie kompilacji, wiêc ³atwo dodawaæ nowe atrybuty +czy nawet ca³e obiekty. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Build.PL \ + installdirs=vendor \ + destdir=$RPM_BUILD_ROOT +./Build + +%{?with_tests:./Build test} + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc ChangeLog README +%{perl_vendorlib}/Nagios +%{_mandir}/man3/* -- 2.44.0