]>
Commit | Line | Data |
---|---|---|
38caa219 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
166aec32 | 4 | |
38caa219 | 5 | %define pdir Hash |
6 | %define pnam MultiValue | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: Hash::MultiValue - Store multiple values per key | |
38caa219 | 9 | Name: perl-Hash-MultiValue |
7f0b28a1 | 10 | Version: 0.10 |
38caa219 | 11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Hash/%{pdir}-%{pnam}-%{version}.tar.gz | |
7f0b28a1 | 16 | # Source0-md5: 386b9ed884f3af6c20dca6d5fbefbb91 |
166aec32 | 17 | URL: http://search.cpan.org/dist/Hash-MultiValue/ |
38caa219 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
38caa219 | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Hash::MultiValue is an object (and a plain hash reference) that may | |
25 | contain multiple values per key, inspired by MultiDict of WebOb. | |
26 | ||
38caa219 | 27 | %prep |
28 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
29 | ||
30 | %build | |
31 | %{__perl} Makefile.PL \ | |
32 | INSTALLDIRS=vendor | |
33 | %{__make} | |
34 | ||
35 | %{?with_tests:%{__make} test} | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %{__make} pure_install \ | |
41 | DESTDIR=$RPM_BUILD_ROOT | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc Changes README | |
49 | %{perl_vendorlib}/Hash/*.pm | |
50 | %{_mandir}/man3/* |