]>
Commit | Line | Data |
---|---|---|
b8cdb693 SS |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Test | |
6 | %define pnam YAML | |
b8cdb693 | 7 | Summary: Test::YAML - Testing Module for YAML Implementations |
8a4e432a | 8 | Summary(pl.UTF-8): Test::YAML - moduł testujący dla implementacji YAML-a |
b8cdb693 | 9 | Name: perl-Test-YAML |
88a91baf | 10 | Version: 1.07 |
b8cdb693 SS |
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 | |
88a91baf JB |
16 | # Source0-md5: 6fe89b0144ffb5913fc4b021a80578b4 |
17 | URL: https://metacpan.org/release/Test-YAML | |
b8cdb693 SS |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
88a91baf | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
b8cdb693 | 21 | %if %{with tests} |
88a91baf | 22 | BuildRequires: perl-Test-Base >= 0.89 |
b8cdb693 SS |
23 | %endif |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Test::YAML is a subclass of Test::Base with YAML specific support. | |
29 | ||
8a4e432a JB |
30 | %description -l pl.UTF-8 |
31 | Test::YAML to podklasa Test::Base ze wsparciem specyficznym dla | |
32 | YAML-a. | |
b8cdb693 SS |
33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | %{__make} | |
41 | ||
42 | %{?with_tests:%{__make} test} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} pure_install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Test/YAML.pod | |
51 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/test-yaml | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
8a4e432a JB |
59 | %{perl_vendorlib}/Test/YAML.pm |
60 | %{_mandir}/man3/Test::YAML.3pm* |