]> git.pld-linux.org Git - packages/perl-Test-Manifest.git/blob - perl-Test-Manifest.spec
b4c7c4c5c9540747687d2a2e7552c96d7fa4a713
[packages/perl-Test-Manifest.git] / perl-Test-Manifest.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Test
7 %define pnam    Manifest
8 Summary:        Test::Manifest - interact with a t/test_manifest file
9 Summary(pl):    Test::Manifest - wspó³praca z plikiem t/test_manifest
10 Name:           perl-Test-Manifest
11 Version:        0.91
12 Release:        2
13 License:        GPL/Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  d33af86aaca8b5cce23504dd386752fd
17 BuildRequires:  perl-devel >= 5.6
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{?_without_tests:0}%{!?_without_tests:1}
20 BuildRequires:  perl-Test-Simple
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 MakeMaker assumes that you want to run all of the .t files in the t/
27 directory in ascii-betical order during make test unless you say
28 otherwise.  This leads to some interesting naming schemes for test files
29 to get them in the desired order.
30
31 %description -l pl
32 MakeMaker zak³ada, ¿e chcemy podczas make test uruchamiaæ wszystkie
33 pliki .t z katalogu t/ w kolejno¶ci asciibetycznej, o ile nie podamy
34 innej kolejno¶ci. To prowadzi do interesuj±cych schematów nazywania
35 plików z testami, aby by³y wykonywane we w³a¶ciwej kolejno¶ci.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{!?_without_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %{perl_vendorlib}/Test/*.pm
58 %{_mandir}/man3/*
This page took 0.081998 seconds and 2 git commands to generate.