]> git.pld-linux.org Git - packages/perl-Readonly.git/blame - perl-Readonly.spec
- new, STBR
[packages/perl-Readonly.git] / perl-Readonly.spec
CommitLineData
6641ad41 1#
2# Conditional build:
3# _without_tests - do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Readonly
7Summary: Readonly - Facility for creating read-only scalars, arrays, hashes.
8#Summary(pl): Readonly
9Name: perl-Readonly
10Version: 0.07
11Release: 1
12License: GPL/Artistic
13Group: Development/Languages/Perl
14Source0: ftp://ftp.cpan.org/pub/CPAN/authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz
15BuildRequires: rpm-perlprov >= 3.0.3-16
16BuildRequires: perl >= 5.6.1
17%if %{?_without_tests:0}%{!?_without_tests:1}
18BuildRequires: perl-Test-Simple
19BuildRequires: perl-Test-Harness
20%endif
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24
25%description
26This is a facility for creating non-modifiable variables. This is
27useful for configuration files, headers, etc. It can also be useful as
28a development and debugging tool, for catching updates to variables that
29should not be changed.
30
31# %description -l pl
32# TODO
33
34%prep
35%setup -q -n %{pdir}-%{version}
36
37%build
38perl Makefile.PL
39%{__make}
40
41%{!?_without_tests:%{__make} test}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45
46%{__make} install DESTDIR=$RPM_BUILD_ROOT
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
53%doc Changes README
54%{perl_sitelib}/*.pm
55%{_mandir}/man3/*
This page took 0.0623 seconds and 4 git commands to generate.