]>
Commit | Line | Data |
---|---|---|
08aab1fa MP |
1 | # |
2 | # Conditional build: | |
d8d244ed | 3 | %bcond_without tests # unit tests |
08aab1fa | 4 | # |
08aab1fa MP |
5 | %define pdir Test |
6 | %define pnam Spelling | |
7 | Summary: Test::Spelling - check for spelling errors in POD files | |
e23274f0 | 8 | Summary(pl.UTF-8): Test::Spelling - sprawdzanie plików POD pod kątem błędów pisowni |
08aab1fa | 9 | Name: perl-Test-Spelling |
d8d244ed | 10 | Version: 0.25 |
08aab1fa MP |
11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
e23274f0 | 15 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz |
d8d244ed JB |
16 | # Source0-md5: 5267be55736620cf8c45765e346a58cc |
17 | URL: https://metacpan.org/release/Test-Spelling | |
08aab1fa MP |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
d8d244ed | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
08aab1fa | 21 | %if %{with tests} |
d91f1e4f | 22 | BuildRequires: perl-IPC-Run3 >= 0.044 |
e23274f0 | 23 | BuildRequires: perl-Pod-Spell >= 1.01 |
d91f1e4f JB |
24 | BuildRequires: perl-Test-Simple >= 0.88 |
25 | BuildRequires: perl-Test-Tester | |
08aab1fa | 26 | %endif |
d91f1e4f JB |
27 | Requires: perl-IPC-Run3 >= 0.044 |
28 | Requires: perl-Pod-Spell >= 1.01 | |
08aab1fa MP |
29 | BuildArch: noarch |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
e23274f0 JB |
33 | Check POD files for spelling mistakes, using Pod::Spell and spell to |
34 | do the heavy lifting. | |
08aab1fa | 35 | |
e23274f0 JB |
36 | %description -l pl.UTF-8 |
37 | Ten moduł sprawdza pliki POD pod kątem błędów pisowni, wykorzystując | |
38 | moduł Pod::Spell i polecenie spell. | |
08aab1fa MP |
39 | |
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
44 | %{__perl} Makefile.PL \ | |
45 | INSTALLDIRS=vendor | |
46 | %{__make} | |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes README | |
2eda1e5d JB |
62 | %{perl_vendorlib}/Test/Spelling.pm |
63 | %{_mandir}/man3/Test::Spelling.3pm* |