]>
Commit | Line | Data |
---|---|---|
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 | |
8 | Summary: Sort::Key - interface to sort arrays by one or manipulate calculated keys | |
8dccfac8 | 9 | Summary(pl.UTF-8): Sort::Key - interfejs do szybkiego sortowania tablic według zmiennych kluczy |
66e398a0 | 10 | Name: perl-Sort-Key |
d6e6becf | 11 | Version: 1.28 |
d26389ac | 12 | Release: 6 |
66e398a0 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
5ddb6a17 | 16 | Source0: http://www.cpan.org/modules/by-module/Sort/%{pdir}-%{pnam}-%{version}.tar.gz |
d6e6becf | 17 | # Source0-md5: ec9d003d68784a5643815c65124aad18 |
5ddb6a17 | 18 | URL: http://search.cpan.org/dist/Sort-Key/ |
66e398a0 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Sort arrays by one or multiple calculated keys. | |
25 | ||
a71d1a6a | 26 | %description -l pl.UTF-8 |
fdd59c89 | 27 | Sortowanie 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 | |
42 | rm -rf $RPM_BUILD_ROOT | |
66e398a0 | 43 | |
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -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/* |