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: ftp://ftp.cpan.org/pub/CPAN/authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz
15 BuildRequires: rpm-perlprov >= 3.0.3-16
16 BuildRequires: perl >= 5.6.1
17 %if %{?_without_tests:0}%{!?_without_tests:1}
18 BuildRequires: perl-Test-Simple
19 BuildRequires: perl-Test-Harness
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This is a facility for creating non-modifiable variables. This is
27 useful for configuration files, headers, etc. It can also be useful as
28 a development and debugging tool, for catching updates to variables that
29 should not be changed.
32 Readonly umo¿liwia tworzenie niemodyfikowalnych zmiennych. Jest to
33 u¿yteczne w plikach konfiguracyjnych, nag³ówkach, itp. Mo¿e byæ tak¿e
34 przydatne jako narzêdzie do rozwijania programów i wyszukiwania b³êdów,
35 wy³apuj±c próby zapisu do zmiennych, które nie powinny byæ zmieniane.
38 %setup -q -n %{pdir}-%{version}
44 %{!?_without_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} install DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)