]>
Commit | Line | Data |
---|---|---|
a91bb39c | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
25d795f9 | 4 | |
7a0fa96a | 5 | %define pdir Object |
6 | %define pnam MultiType | |
c7fc7080 | 7 | Summary: Object::MultiType - Perl objects as hash, array, scalar, code and glob at the same time |
7db6aef6 | 8 | Summary(pl.UTF-8): Object::MultiType - obiekty perlowe jako hasze, tablice, skalary, kod i globy jednocześnie |
a91bb39c | 9 | Name: perl-Object-MultiType |
90acc551 | 10 | Version: 0.05 |
4f19dbdc | 11 | Release: 2 |
5d4bbaf5 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
a91bb39c | 14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
90acc551 | 16 | # Source0-md5: 171ed010dab19fb8b94f22a5fca97814 |
25d795f9 | 17 | URL: http://search.cpan.org/dist/Object-MultiType/ |
a91bb39c | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
c7fc7080 | 24 | This module returns an object that works like a Hash, Array, Scalar, |
a91bb39c | 25 | Code and Glob object at the same time. |
26 | ||
dbc89e9f JB |
27 | The usual way is to call it from your module at new(). |
28 | ||
75d84583 JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł zwraca obiekt działający jako hasz, tablica, skalar, kod i | |
31 | glob jednocześnie. Zwykle wywołuje się go przy new(). | |
a91bb39c | 32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
39 | ||
40 | %{__make} | |
41 | %{?with_tests:%{__make} test} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc Changes README | |
55 | %{perl_vendorlib}/Object/MultiType.pm | |
56 | %{_mandir}/man3/* |