%include /usr/lib/rpm/macros.perl
Summary: perl-Mon module
Summary(pl): Modu³ perla Mon
-Name: perl-Mon
-version: 0.11
-Release: 4
+Name: perl-Mon
+version: 0.11
+Release: 6
License: GPL
Group: Development/Languages/Perl
-Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Mon/Mon-%{version}.tar.gz
+Source0: http://www.cpan.org/modules/by-module/Mon/Mon-%{version}.tar.gz
+# Source0-md5: 762a8c6f845f8f1482a696e6f95f4492
URL: http://www.kernel.org/software/mon/
-BuildArch: noarch
BuildRequires: perl-devel >= 5.6.1
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
+
%description
This is the Perl5 module for interfacing with the Mon system
monitoring package. Currently only the client interface is
%setup -q -n Mon-%{version}
%build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf CHANGES README
+%clean
+rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Mon
+%doc CHANGES README
+%{perl_vendorlib}/Mon
%{_mandir}/man3/*
-
-%clean
-rm -rf $RPM_BUILD_ROOT