]>
Commit | Line | Data |
---|---|---|
989a9504 | 1 | # |
2 | # Conditional build: | |
834fd853 | 3 | %bcond_without tests # do not perform "make test" |
a4d37408 | 4 | # |
2888f725 | 5 | %define pdir Test |
6 | %define pnam Manifest | |
989a9504 | 7 | Summary: Test::Manifest - interact with a t/test_manifest file |
2dd6d234 | 8 | Summary(pl.UTF-8): Test::Manifest - współpraca z plikiem t/test_manifest |
989a9504 | 9 | Name: perl-Test-Manifest |
71332df9 | 10 | Version: 1.23 |
26861678 | 11 | Release: 1 |
3395b424 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
989a9504 | 14 | Group: Development/Languages/Perl |
1d77408b | 15 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz |
71332df9 | 16 | # Source0-md5: 81c8744987b67d35af05a74a3c7f1742 |
1d77408b | 17 | URL: http://search.cpan.org/dist/Test-Manifest/ |
ef98651b | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
42bcfbcb | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
834fd853 | 20 | %if %{with tests} |
a4d37408 | 21 | BuildRequires: perl-Test-Simple |
fcd55a06 | 22 | %endif |
989a9504 | 23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | MakeMaker assumes that you want to run all of the .t files in the t/ | |
38cbe51b | 28 | directory in ascii-betical order during make test unless you say |
1d77408b JB |
29 | otherwise. This leads to some interesting naming schemes for test |
30 | files to get them in the desired order. | |
989a9504 | 31 | |
e02f2c3f JR |
32 | %description -l pl.UTF-8 |
33 | MakeMaker zakłada, że chcemy podczas make test uruchamiać wszystkie | |
34 | pliki .t z katalogu t/ w kolejności asciibetycznej, o ile nie podamy | |
35 | innej kolejności. To prowadzi do interesujących schematów nazywania | |
36 | plików z testami, aby były wykonywane we właściwej kolejności. | |
989a9504 | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42bcfbcb | 42 | %{__perl} Makefile.PL \ |
e2c186a2 | 43 | INSTALLDIRS=vendor |
989a9504 | 44 | %{__make} |
38cbe51b | 45 | |
834fd853 | 46 | %{?with_tests:%{__make} test} |
989a9504 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
834fd853 | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
989a9504 | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
631d8740 | 59 | %{perl_vendorlib}/Test/Manifest.pm |