3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Sub::Name - (re)name a sub
9 Summary(pl.UTF-8): Sub::Name - nazwanie/zmiana nazwy podprogramu
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 7e7a181e30b3249d0b81585f55e36621
18 URL: http://search.cpan.org/dist/Sub-Name/
19 BuildRequires: perl-ExtUtils-MakeMaker
21 BuildRequires: perl(Exporter) >= 5.57
22 BuildRequires: perl-Devel-CheckBin
23 BuildRequires: perl-Test-Simple >= 0.88
25 BuildRequires: perl-devel >= 1:5.8.0
26 BuildRequires: rpm-perlprov >= 4.1-13
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module has only one function, which is also exported by default:
32 Assigns a new name to referenced sub. If package specification is
33 omitted in the name, then the current package is used. The return
36 %description -l pl.UTF-8
37 Ten moduł ma tylko jedną funkcję, eksportowaną domyślnie. Przypisuje
38 ona nową nazwę do wskazanego podprogramu. Jeśli specyfikacja pakietu
39 została pominięta w nazwie, użyty jest pakiet bieżący. Wartością
40 zwracaną jset podprogram.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 OPTIMIZE="%{rpmcflags}"
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorarch}/Sub/Name.pm
67 %dir %{perl_vendorarch}/auto/Sub/Name
68 %attr(755,root,root) %{perl_vendorarch}/auto/Sub/Name/Name.so
69 %{_mandir}/man3/Sub::Name.3pm*