--- /dev/null
+#
+# 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/*