3 %bcond_without tests # do not perform "make test"
5 %define pdir strictures
6 Summary: Turn on strict and make all warnings fatal
7 Summary(pl.UTF-8): Włączenie trybu ścisłego i uczynienie wszystkich ostrzeżeń krytycznymi
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/H/HA/HAARG/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 35c14fd25320f32ff40e977feae95d0d
16 URL: https://metacpan.org/release/strictures
17 %{?with_tests:BuildRequires: perl-Test-Simple}
18 BuildRequires: perl-devel >= 1:5.8.4
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Turn on strict and make all warnings fatal.
27 %description -l pl.UTF-8
28 Włączenie trybu ścisłego i uczynienie wszystkich ostrzeżeń
32 %setup -q -n %{pdir}-%{version}
35 %{__perl} Makefile.PL \
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %{perl_vendorlib}/strictures.pm
54 %{perl_vendorlib}/strictures
55 %{_mandir}/man3/strictures.3pm*
56 %{_mandir}/man3/strictures::extra.3pm*