]> git.pld-linux.org Git - packages/perl-Carp-Assert.git/blobdiff - perl-Carp-Assert.spec
- BR fix, rel. 3
[packages/perl-Carp-Assert.git] / perl-Carp-Assert.spec
index fd2de15963273d2d10fc1324b4778ed8d19a63bc..1fc06dc3dd1054a692071a97c224ff8f1c966459 100644 (file)
@@ -1,20 +1,25 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests   # do not perform "make test"
 #
 %include       /usr/lib/rpm/macros.perl
-%define                pdir    Carp
-%define                pnam    Assert
+%define        pdir    Carp
+%define        pnam    Assert
 Summary:       Carp::Assert - executable comments
 Summary(pl):   Carp::Assert - wykonywalne komentarze
 Name:          perl-Carp-Assert
-Version:       0.17
-Release:       9
-License:       GPL
+Version:       0.18
+Release:       4
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6.1
-%{!?_without_tests:BuildRequires:      perl-Test-Simple >= 0.18}
+Source0:       http://www.cpan.org/modules/by-module/Carp/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 8137794654f5802730c05167327d496e
+BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires: perl-Test-Inline >= 0.16-3
+BuildRequires: perl-Test-Simple >= 0.40
+%endif
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,15 +39,16 @@ albo przynajmniej wiedzie
 
 %build
 %{__perl} Makefile.PL \
-       INSTALLDIRS=vendor 
+       INSTALLDIRS=vendor
 %{__make}
 
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -50,5 +56,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes README
-%{perl_vendorlib}/Carp
+%{perl_vendorlib}/Carp/Assert.pm
 %{_mandir}/man3/*
This page took 0.061249 seconds and 4 git commands to generate.