3 %bcond_without tests # do not perform "make test"
6 Summary: Readonly - facility for creating read-only scalars, arrays, hashes
7 Summary(pl.UTF-8): Readonly - udogodnienie do tworzenia zmiennych tylko do odczytu
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/S/SA/SANKO/%{pdir}-%{version}.tar.gz
15 # Source0-md5: acae851d7d55c509f5f00a8849597e54
16 URL: http://search.cpan.org/dist/Readonly/
17 BuildRequires: perl-Module-Build-Tiny >= 0.035
18 BuildRequires: perl-devel >= 1:5.8.1
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Simple
22 BuildRequires: perl-Test-Harness
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This is a facility for creating non-modifiable variables. This is
29 useful for configuration files, headers, etc. It can also be useful as
30 a development and debugging tool, for catching updates to variables
31 that should not be changed.
33 %description -l pl.UTF-8
34 Readonly umożliwia tworzenie niemodyfikowalnych zmiennych. Jest to
35 użyteczne w plikach konfiguracyjnych, nagłówkach, itp. Może być także
36 przydatne jako narzędzie do rozwijania programów i wyszukiwania
37 błędów, wyłapując próby zapisu do zmiennych, które nie powinny być
41 %setup -q -n %{pdir}-%{version}
48 %{?with_tests:./Build test}
51 rm -rf $RPM_BUILD_ROOT
54 --destdir=$RPM_BUILD_ROOT \
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc Changes README.md
63 %{perl_vendorlib}/Readonly.pm
64 %{_mandir}/man3/Readonly.3pm*