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.
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.
35 %setup -q -n %{pdir}-%{version}
41 %{!?_without_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
46 %{__make} install DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)