]> git.pld-linux.org Git - packages/perl-Specio.git/blob - perl-Specio.spec
- updated to 0.47; uses XString on perl 5.10+
[packages/perl-Specio.git] / perl-Specio.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Specio
6 Summary:        Test::Specio - Test helpers for Specio
7 Summary(pl.UTF-8):      Test::Specio - pomocnicze funkcje i zmienne testowe dla Specio
8 Name:           perl-Specio
9 Version:        0.47
10 Release:        1
11 License:        Artistic v2.0
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-authors/id/D/DR/DROLSKY/Specio-%{version}.tar.gz
14 # Source0-md5:  42a6734e5c02836f6d99646167694b96
15 URL:            https://metacpan.org/release/Specio
16 BuildRequires:  perl-devel >= 1:5.8.0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 BuildRequires:  rpmbuild(macros) >= 1.745
19 %if %{with tests}
20 BuildRequires:  perl-Devel-StackTrace
21 BuildRequires:  perl-Eval-Closure
22 BuildRequires:  perl-MRO-Compat
23 BuildRequires:  perl-Module-Runtime
24 BuildRequires:  perl-Role-Tiny >= 1.003003
25 BuildRequires:  perl-Scalar-List-Utils >= 1.33
26 BuildRequires:  perl-Storable
27 BuildRequires:  perl-Sub-Quote
28 BuildRequires:  perl-Test-Fatal
29 BuildRequires:  perl-Test-Needs
30 BuildRequires:  perl-Test-Simple >= 0.96
31 BuildRequires:  perl-Try-Tiny
32 BuildRequires:  perl-XString
33 BuildRequires:  perl-version >= 0.83
34 %endif
35 Requires:       perl-XString
36 BuildArch:      noarch
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 This package provides some helper functions and variables for testing
41 Specio types.
42
43 %description -l pl.UTF-8
44 Ten pakiet dostarcza kilka pomocniczych funkcji i zmiennych do
45 testowania typów Specio.
46
47 %prep
48 %setup -q -n %{pdir}-%{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} pure_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 README.md TODO.md
69 %{perl_vendorlib}/Specio
70 %{perl_vendorlib}/Specio.pm
71 %{perl_vendorlib}/Test/Specio.pm
72 %{_mandir}/man3/Specio*.3pm*
73 %{_mandir}/man3/Test::Specio.3pm*
This page took 0.093208 seconds and 4 git commands to generate.