]> git.pld-linux.org Git - packages/perl-Params-Classify.git/blame - perl-Params-Classify.spec
- pl, cleanup, pass optflags
[packages/perl-Params-Classify.git] / perl-Params-Classify.spec
CommitLineData
6c45de84 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Params
6%define pnam Classify
7%include /usr/lib/rpm/macros.perl
8Summary: Params::Classify - argument type classification
fd230e0b 9Summary(pl.UTF-8): Params::Classify - klasyfikacja typu argumentu
6c45de84 10Name: perl-Params-Classify
11Version: 0.013
12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/Params/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: 63d24fbec775472ada49d16bce4a9b1f
fd230e0b
JB
18URL: http://search.cpan.org/dist/Params-Classify/
19BuildRequires: perl-ExtUtils-ParseXS >= 2.2006
6c45de84 20BuildRequires: perl-Module-Build
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
23%if %{with tests}
fd230e0b 24BuildRequires: perl-Scalar-List-Utils >= 1.01
6c45de84 25%endif
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
fd230e0b 29This module provides various type-testing functions. These are
6c45de84 30intended for functions that, unlike most Perl code, care what type of
fd230e0b 31data they are operating on. For example, some functions wish to
6c45de84 32behave differently depending on the type of their arguments (like
33overloaded functions in C++).
34
fd230e0b
JB
35%description -l pl.UTF-8
36Ten moduł udostępnia różne funkcje do sprawdzania typów. Mają być
37przydatne dla funkcji, które - w przeciwieństwie do większości kodu
38perlowego - zwracają uwagę na typ danych, na których operują; np.
39dla funkcji, które zachowują się różnie w zależności od typu
40argumentów (jak przeciążone funkcje w C++).
6c45de84 41
42%prep
43%setup -q -n %{pdir}-%{pnam}-%{version}
44
45%build
46%{__perl} Build.PL \
fd230e0b
JB
47 installdirs=vendor \
48 --config cc="%{__cc}" \
49 --config ld="%{__cc}" \
50 --config optimize="%{rpmcflags}"
51
6c45de84 52./Build
53
54%{?with_tests:./Build test}
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
fd230e0b
JB
59./Build install \
60 destdir=$RPM_BUILD_ROOT
6c45de84 61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
67%doc Changes README
fd230e0b 68%{perl_vendorarch}/Params/Classify.pm
6c45de84 69%dir %{perl_vendorarch}/auto/Params/Classify
fd230e0b
JB
70%{perl_vendorarch}/auto/Params/Classify/Classify.bs
71%attr(755,root,root) %{perl_vendorarch}/auto/Params/Classify/Classify.so
72%{_mandir}/man3/Params::Classify.3pm*
This page took 0.064305 seconds and 4 git commands to generate.