3 %bcond_without tests # do not perform "make test"
7 Summary: Params::Classify - argument type classification
8 Summary(pl.UTF-8): Params::Classify - klasyfikacja typu argumentu
9 Name: perl-Params-Classify
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Params/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 3c3367d759ed5bd6fe86c1f35e9b51ed
17 URL: https://metacpan.org/dist/Params-Classify
18 BuildRequires: perl-ExtUtils-ParseXS >= 2.2006
19 BuildRequires: perl-Module-Build >= 0.33
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: rpmbuild(macros) >= 1.745
24 BuildRequires: perl-Scalar-List-Utils >= 1.01
25 BuildRequires: perl-Test-Simple
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module provides various type-testing functions. These are
31 intended for functions that, unlike most Perl code, care what type of
32 data they are operating on. For example, some functions wish to
33 behave differently depending on the type of their arguments (like
34 overloaded functions in C++).
36 %description -l pl.UTF-8
37 Ten moduł udostępnia różne funkcje do sprawdzania typów. Mają być
38 przydatne dla funkcji, które - w przeciwieństwie do większości kodu
39 perlowego - zwracają uwagę na typ danych, na których operują; np.
40 dla funkcji, które zachowują się różnie w zależności od typu
41 argumentów (jak przeciążone funkcje w C++).
44 %setup -q -n %{pdir}-%{pnam}-%{version}
49 --config cc="%{__cc}" \
50 --config ld="%{__cc}" \
51 --config optimize="%{rpmcflags}"
55 %{?with_tests:./Build test}
58 rm -rf $RPM_BUILD_ROOT
61 destdir=$RPM_BUILD_ROOT
63 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Params/Classify/Classify.bs
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorarch}/Params/Classify.pm
72 %dir %{perl_vendorarch}/auto/Params/Classify
73 %attr(755,root,root) %{perl_vendorarch}/auto/Params/Classify/Classify.so
74 %{_mandir}/man3/Params::Classify.3pm*