]>
Commit | Line | Data |
---|---|---|
01d474f0 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir strictures | |
01d474f0 | 6 | Summary: Turn on strict and make all warnings fatal |
1111f90e | 7 | Summary(pl.UTF-8): Włączenie trybu ścisłego i uczynienie wszystkich ostrzeżeń krytycznymi |
01d474f0 | 8 | Name: perl-strictures |
b54a4810 | 9 | Version: 2.000006 |
01d474f0 JR |
10 | Release: 1 |
11 | # same as perl | |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
b54a4810 JB |
14 | Source0: http://www.cpan.org/modules/by-authors/id/H/HA/HAARG/%{pdir}-%{version}.tar.gz |
15 | # Source0-md5: 35c14fd25320f32ff40e977feae95d0d | |
106257dc JB |
16 | URL: https://metacpan.org/release/strictures |
17 | %{?with_tests:BuildRequires: perl-Test-Simple} | |
b54a4810 | 18 | BuildRequires: perl-devel >= 1:5.8.4 |
01d474f0 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
b54a4810 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
01d474f0 JR |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Turn on strict and make all warnings fatal. | |
26 | ||
1111f90e JB |
27 | %description -l pl.UTF-8 |
28 | Włączenie trybu ścisłego i uczynienie wszystkich ostrzeżeń | |
29 | krytycznymi. | |
01d474f0 JR |
30 | |
31 | %prep | |
32 | %setup -q -n %{pdir}-%{version} | |
33 | ||
34 | %build | |
35 | %{__perl} Makefile.PL \ | |
36 | INSTALLDIRS=vendor | |
37 | %{__make} | |
38 | ||
39 | %{?with_tests:%{__make} test} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} pure_install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc Changes README | |
1111f90e JB |
53 | %{perl_vendorlib}/strictures.pm |
54 | %{perl_vendorlib}/strictures | |
55 | %{_mandir}/man3/strictures.3pm* | |
56 | %{_mandir}/man3/strictures::extra.3pm* |