]> git.pld-linux.org Git - packages/perl-Sort-Key.git/blame - perl-Sort-Key.spec
- rebuild for perl 5.20
[packages/perl-Sort-Key.git] / perl-Sort-Key.spec
CommitLineData
66e398a0 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Sort
7%define pnam Key
8Summary: Sort::Key - interface to sort arrays by one or manipulate calculated keys
8dccfac8 9Summary(pl.UTF-8): Sort::Key - interfejs do szybkiego sortowania tablic według zmiennych kluczy
66e398a0 10Name: perl-Sort-Key
d6e6becf 11Version: 1.28
d26389ac 12Release: 6
66e398a0 13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
5ddb6a17 16Source0: http://www.cpan.org/modules/by-module/Sort/%{pdir}-%{pnam}-%{version}.tar.gz
d6e6becf 17# Source0-md5: ec9d003d68784a5643815c65124aad18
5ddb6a17 18URL: http://search.cpan.org/dist/Sort-Key/
66e398a0 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Sort arrays by one or multiple calculated keys.
25
a71d1a6a 26%description -l pl.UTF-8
fdd59c89 27Sortowanie tablic po jednym lub wielu wyliczanych kluczach.
66e398a0 28
29%prep
30%setup -q -n %{pdir}-%{pnam}-%{version}
31
32%build
33%{__perl} Makefile.PL \
34 INSTALLDIRS=vendor
35%{__make} \
1cb664ce 36 CC="%{__cc}" \
66e398a0 37 OPTIMIZE="%{rpmcflags}"
38
39%{?with_tests:%{__make} test}
40
41%install
42rm -rf $RPM_BUILD_ROOT
66e398a0 43
44%{__make} install \
45 DESTDIR=$RPM_BUILD_ROOT
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(644,root,root,755)
52%doc README Changes
fdd59c89 53%{perl_vendorarch}/Sort/*.pm
892715fc 54%dir %{perl_vendorarch}/Sort
fdd59c89 55%dir %{perl_vendorarch}/Sort/Key
66e398a0 56%{perl_vendorarch}/Sort/Key/*
892715fc 57%dir %{perl_vendorarch}/auto/Sort
fdd59c89
JB
58%dir %{perl_vendorarch}/auto/Sort/Key
59%{perl_vendorarch}/auto/Sort/Key/*.bs
60%attr(755,root,root) %{perl_vendorarch}/auto/Sort/Key/*.so
66e398a0 61%{_mandir}/man3/*
This page took 0.127673 seconds and 4 git commands to generate.