3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
8 Summary: Params::Coerce - allows your classes to do coercion of parameters
9 Summary(pl.UTF-8): Params::Coerce - umożliwienie klasom jawnej kowersji typów parametrów
10 Name: perl-Params-Coerce
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: a8439ea6777c9156424ef6dd74c83945
17 URL: http://search.cpan.org/dist/Params-Coerce/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 %if %{with autodeps} || %{with tests}
21 BuildRequires: perl-Params-Util >= 0.05
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A big part of good API design is that we should be able to be flexible
28 in the ways that we take parameters.
30 Params::Coerce attempts to encourage this, by making it easier to take
31 a variety of different arguments, while adding negligible additional
32 complexity to your code.
34 "Coercion" in computing terms generally refers to "implicit type
35 conversion". This is where data and object are converted from one type
36 to another behind the scenes, and you just just magically get what you
39 %description -l pl.UTF-8
40 Dużą częścią dobrego projektu API jest możliwość elastycznego
41 przekazywania parametrów.
43 Params::Coerce próbuje zachęcić do tego poprzez ułatwianie
44 przyjmowania różnych argumentów przy zaniedbywalnie małej komplikacji
47 "Coercion" oznacza "domyślną konwersję typów". Dotyczy to sytuacji,
48 kiedy dane i obiekty są w tle konwertowane z jednego typu do innego i
49 magicznie otrzymuje się to, co potrzeba.
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %{perl_vendorlib}/Params/Coerce.pm
74 %{_mandir}/man3/Params::Coerce.3pm*