3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: Readonly - facility for creating read-only scalars, arrays, hashes
8 Summary(pl): Readonly - udogodnienie do tworzenia zmiennych tylko do odczytu
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 0acef3a995ac9ecf575f66a726d638f4
16 BuildRequires: rpm-perlprov >= 4.1-13
17 BuildRequires: perl-devel >= 5.6.1
18 %if %{?_without_tests:0}%{!?_without_tests:1}
19 BuildRequires: perl-Test-Simple
20 BuildRequires: perl-Test-Harness
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This is a facility for creating non-modifiable variables. This is
28 useful for configuration files, headers, etc. It can also be useful as
29 a development and debugging tool, for catching updates to variables that
30 should not be changed.
33 Readonly umo¿liwia tworzenie niemodyfikowalnych zmiennych. Jest to
34 u¿yteczne w plikach konfiguracyjnych, nag³ówkach, itp. Mo¿e byæ tak¿e
35 przydatne jako narzêdzie do rozwijania programów i wyszukiwania b³êdów,
36 wy³apuj±c próby zapisu do zmiennych, które nie powinny byæ zmieniane.
39 %setup -q -n %{pdir}-%{version}
42 %{__perl} Makefile.PL \
46 %{!?_without_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/*.pm