3 %bcond_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.UTF-8): Readonly - udogodnienie do tworzenia zmiennych tylko do odczytu
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz
16 # Source0-md5: 0acef3a995ac9ecf575f66a726d638f4
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-Test-Simple
21 BuildRequires: perl-Test-Harness
24 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.
32 %description -l pl.UTF-8
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 \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/*.pm