]> git.pld-linux.org Git - packages/perl-Test-Inline.git/blob - perl-Test-Inline.spec
- updated to 2.214
[packages/perl-Test-Inline.git] / perl-Test-Inline.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Test
6 %define         pnam    Inline
7 Summary:        Test::inline Perl module - embedded tests
8 Summary(pl.UTF-8):      Moduł Perla Test::Inline - wbudowane testy
9 Name:           perl-Test-Inline
10 Version:        2.214
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  9c6471fa326d64f649bb0b9298730c9e
17 URL:            https://metacpan.org/release/Test-Inline
18 BuildRequires:  perl-ExtUtils-MakeMaker
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl(Getopt::Long) >= 2.34
23 BuildRequires:  perl(File::Spec) >= 0.80
24 BuildRequires:  perl-Algorithm-Dependency >= 1.02
25 BuildRequires:  perl-Config-Tiny >= 2.00
26 BuildRequires:  perl-File-Find-Rule >= 0.26
27 BuildRequires:  perl-File-Flat >= 1.00
28 BuildRequires:  perl-File-Remove >= 0.38
29 BuildRequires:  perl-File-chmod >= 0.31
30 BuildRequires:  perl-Params-Util >= 0.21
31 BuildRequires:  perl-Path-Tiny
32 BuildRequires:  perl-Scalar-List-Utils >= 1.19
33 BuildRequires:  perl-Test-ClassAPI >= 1.02
34 BuildRequires:  perl-Test-Script >= 1.02
35 BuildRequires:  perl-Test-Simple >= 0.42
36 %endif
37 BuildArch:      noarch
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Test::Inline Perl module provides utility functions to embedded tests.
42
43 %description -l pl.UTF-8
44 Moduł Perla Test::Data udostępnia funkcje pomocnicze do wbudowanych
45 testów.
46
47 %prep
48 %setup -q -n %{pdir}-%{pnam}-%{version}
49
50 %build
51 %{__perl} Makefile.PL \
52         INSTALLDIRS=vendor
53 %{__make}
54
55 %{?with_tests:%{__make} test}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc Changes
69 %attr(755,root,root) %{_bindir}/inline2test
70 %{perl_vendorlib}/Test/Inline.pm
71 %{perl_vendorlib}/Test/Inline
72 %{_mandir}/man1/inline2test.1p*
73 %{_mandir}/man3/Test::Inline*.3pm*
This page took 0.113317 seconds and 4 git commands to generate.