3 %bcond_without tests # unit tests
7 Summary: Sub::Install - install subroutines into packages easily
8 Summary(pl.UTF-8): Sub::Install - łatwe instalowanie podprocedur do pakietów
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: https://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 81baf186c62c71f0935c3ccf1c5964c8
17 URL: https://metacpan.org/dist/Sub-Install
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.78
20 BuildRequires: perl-Test-Simple >= 0.96
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: rpmbuild(macros) >= 1.745
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module makes it easy to install subroutines into packages without
30 the unslightly mess of no strict or typeglobs lying about where just
33 %description -l pl.UTF-8
34 Ten moduł ułatwia instalowanie podprocedur do pakietów bez niemałego
35 bałaganu no strict lub typeglobów umieszczonych wszędzie, gdzie każdy
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Sub/Install.pm
61 %{_mandir}/man3/Sub::Install.3pm*