]> git.pld-linux.org Git - packages/perl-Sub-Name.git/blame - perl-Sub-Name.spec
- up to 0.26
[packages/perl-Sub-Name.git] / perl-Sub-Name.spec
CommitLineData
a130efa9 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Sub
7%define pnam Name
8Summary: Sub::Name - (re)name a sub
71fa8374 9Summary(pl.UTF-8): Sub::Name - nazwanie/zmiana nazwy podprogramu
a130efa9 10Name: perl-Sub-Name
138e4de4
AM
11Version: 0.26
12Release: 1
a130efa9 13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
8e504847 16Source0: http://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz
138e4de4 17# Source0-md5: 0eb109dfa223e056c07d84c9fbda1762
71fa8374 18URL: http://search.cpan.org/dist/Sub-Name/
8e504847
JB
19BuildRequires: perl-ExtUtils-MakeMaker
20%if %{with tests}
21BuildRequires: perl(Exporter) >= 5.57
22BuildRequires: perl-Devel-CheckBin
23BuildRequires: perl-Test-Simple >= 0.88
24%endif
a130efa9 25BuildRequires: perl-devel >= 1:5.8.0
26BuildRequires: rpm-perlprov >= 4.1-13
a130efa9 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30This module has only one function, which is also exported by default:
31
71fa8374
JB
32Assigns a new name to referenced sub. If package specification is
33omitted in the name, then the current package is used. The return
a130efa9 34value is the sub.
35
71fa8374
JB
36%description -l pl.UTF-8
37Ten moduł ma tylko jedną funkcję, eksportowaną domyślnie. Przypisuje
38ona nową nazwę do wskazanego podprogramu. Jeśli specyfikacja pakietu
39została pominięta w nazwie, użyty jest pakiet bieżący. Wartością
40zwracaną jset podprogram.
a130efa9 41
42%prep
43%setup -q -n %{pdir}-%{pnam}-%{version}
44
45%build
46%{__perl} Makefile.PL \
47 INSTALLDIRS=vendor
48%{__make} \
56d2f670 49 CC="%{__cc}" \
a130efa9 50 OPTIMIZE="%{rpmcflags}"
51
52%{?with_tests:%{__make} test}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes README
0127be97 66%{perl_vendorarch}/Sub/Name.pm
a130efa9 67%dir %{perl_vendorarch}/auto/Sub/Name
0127be97
JB
68%attr(755,root,root) %{perl_vendorarch}/auto/Sub/Name/Name.so
69%{_mandir}/man3/Sub::Name.3pm*
This page took 0.099754 seconds and 4 git commands to generate.