]> git.pld-linux.org Git - packages/perl-Test-Manifest.git/blobdiff - perl-Test-Manifest.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Test-Manifest.git] / perl-Test-Manifest.spec
index 81e62d4fffa18f075f99709da5c9f14cf524f337..aff18e4294df93c32a6826e7313e9b486c4bb47f 100644 (file)
@@ -1,21 +1,23 @@
 #
 # 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    Test
-%define        pnam    Manifest
+%define                pdir    Test
+%define                pnam    Manifest
 Summary:       Test::Manifest - interact with a t/test_manifest file
-Summary(pl):   Test::Manifest - wspó³praca z plikiem t/test_manifest
+Summary(pl.UTF-8):     Test::Manifest - współpraca z plikiem t/test_manifest
 Name:          perl-Test-Manifest
-Version:       0.91
+Version:       1.23
 Release:       1
-License:       GPL/Artistic
+# 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: perl >= 5.6
-BuildRequires: rpm-perlprov >= 3.0.3-26
-%if %{?_without_tests:0}%{!?_without_tests:1}
+Source0:       http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 81c8744987b67d35af05a74a3c7f1742
+URL:           http://search.cpan.org/dist/Test-Manifest/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
 BuildRequires: perl-Test-Simple
 %endif
 BuildArch:     noarch
@@ -24,33 +26,34 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 MakeMaker assumes that you want to run all of the .t files in the t/
 directory in ascii-betical order during make test unless you say
-otherwise.  This leads to some interesting naming schemes for test files
-to get them in the desired order.
+otherwise. This leads to some interesting naming schemes for test
+files to get them in the desired order.
 
-%description -l pl
-MakeMaker zak³ada, ¿e chcemy podczas make test uruchamiaæ wszystkie
-pliki .t z katalogu t/ w kolejnoci asciibetycznej, o ile nie podamy
-innej kolejno¶ci. To prowadzi do interesuj±cych schematów nazywania
-plików z testami, aby by³y wykonywane we w³a¶ciwej kolejno¶ci.
+%description -l pl.UTF-8
+MakeMaker zakłada, że chcemy podczas make test uruchamiać wszystkie
+pliki .t z katalogu t/ w kolejności asciibetycznej, o ile nie podamy
+innej kolejności. To prowadzi do interesujących schematów nazywania
+plików z testami, aby były wykonywane we właściwej kolejności.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       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
 
 %files
 %defattr(644,root,root,755)
-%{perl_sitelib}/Test/*.pm
-%{_mandir}/man3/*
+%{perl_vendorlib}/Test/Manifest.pm
This page took 0.521478 seconds and 4 git commands to generate.