]> git.pld-linux.org Git - packages/perl-Mon.git/blobdiff - perl-Mon.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Mon.git] / perl-Mon.spec
index c9defc9c843997ffa9e4e54d8fa6d215de67ca8b..89f5c36c2e346406a5a85a4ec16b7ea1fbdf4f5b 100644 (file)
@@ -1,46 +1,52 @@
-%include        /usr/lib/rpm/macros.perl
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 Summary:       perl-Mon module
-Summary(pl):   Modu³ perla Mon
-Name:          perl-Mon        
-version:       0.11    
-Release:       4
-License:       GPL
+Summary(pl.UTF-8):     Moduł Perla Mon
+Name:          perl-Mon
+Version:       0.11
+Release:       7
+License:       GPL v2+
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.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/
+BuildRequires: perl-devel >= 1:5.8.0
 BuildArch:     noarch
-BuildRequires: perl-devel >= 5.6.1
 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
 implemented, but more things like special logging routines and
 persistent monitors are being considered.
 
-%description -l pl
-To jest modu³ perla do komunikacji z systemem monitoruj±cym Mon.
+%description -l pl.UTF-8
+To jest moduł Perla do komunikacji z systemem monitorującym Mon.
 Aktualnie zaimplementowany jest tylko interfejs klienta.
 
 %prep
 %setup -q -n Mon-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %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
This page took 0.052621 seconds and 4 git commands to generate.