3 %bcond_without tests # do not perform "make test"
6 %define pnam Properties
7 Summary: Scalar::Properties - run-time properties on scalar variables
8 Summary(pl.UTF-8): Scalar::Properties - właściwości skalarów w trakcie wykonywania
9 Name: perl-Scalar-Properties
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Scalar/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 6f144203205f0a60026b82f32e51c595
17 URL: http://search.cpan.org/dist/Scalar-Properties/
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.11
19 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: perl-Test-Simple >= 0.88
23 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Scalar::Properties attempts to make Perl more object-oriented by
29 taking an idea from Ruby: Everything you manipulate is an object, and
30 the results of those manipulations are objects themselves.
32 %description -l pl.UTF-8
33 Scalar::Properties próbuje dodać do Perla nieco więcej obiektowości
34 poprzez zaimplementowanie pomysłu z Ruby: wszystko, na czym operujesz,
35 jest obiektem; tak samo, jak rezultat tych manipulacji.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests: %{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %dir %{perl_vendorlib}/Scalar
59 %{perl_vendorlib}/Scalar/Properties.pm
60 %{_mandir}/man3/Scalar::Properties.3pm*