]> git.pld-linux.org Git - packages/perl-Proc-WaitStat.git/blobdiff - perl-Proc-WaitStat.spec
- tests added, license fixes, cosmetics
[packages/perl-Proc-WaitStat.git] / perl-Proc-WaitStat.spec
index 0d976000524b024dabde75fe1fd8334937100595..629fdf15cd0ea5de194edb673dc4068e35c94e4f 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with    tests   # perform "make test" - working database connection required
+#
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    Proc
 %define        pnam    WaitStat
@@ -5,12 +9,14 @@ Summary:      Proc::WaitStat perl module
 Summary(pl):   Modu³ perla Proc::WaitStat
 Name:          perl-Proc-WaitStat
 Version:       1.00
-Release:       6
-License:       GPL
+Release:       7
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: b911bd579b6b142391b21de1efa30c95
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-devel >= 5.6
 BuildRequires: perl-IPC-Signal
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,21 +33,23 @@ zwracanych przez wait() i podejmowania okre
 %setup -q -n %{pdir}-%{pnam}-%{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
-
-gzip -9nf Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Proc/WaitStat.pm
+%doc Changes README
+%{perl_vendorlib}/Proc/WaitStat.pm
 %{_mandir}/man3/*
This page took 0.157091 seconds and 4 git commands to generate.