3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Convert::Scalar - convert between different representations of perl scalars
9 Summary(pl.UTF-8): Convert::Scalar - konwersja między różnymi reprezentacjami perlowych skalarów
10 Name: perl-Convert-Scalar
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: eaecfe71bd3f44a11812c734e3cdaf21
18 URL: http://search.cpan.org/dist/Convert-Scalar/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This module exports various internal perl methods that change the
25 internal representation or state of a perl scalar. All of these work
26 in-place, that is, they modify their scalar argument.
28 %description -l pl.UTF-8
29 Ten moduł eksportuje różne wewnętrzne perlowe metody zmieniające
30 wewnętrzną reprezentację lub stan perlowego skalara. Wszystko to
31 działa "na miejscu", czyli modyfikowany jest argument skalarny.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorarch}/Convert/Scalar.pm
58 %dir %{perl_vendorarch}/auto/Convert/Scalar
59 %{perl_vendorarch}/auto/Convert/Scalar/Scalar.bs
60 %attr(755,root,root) %{perl_vendorarch}/auto/Convert/Scalar/Scalar.so