]> git.pld-linux.org Git - packages/perl-Readonly.git/blame - perl-Readonly.spec
- release 3
[packages/perl-Readonly.git] / perl-Readonly.spec
CommitLineData
6641ad41 1#
2# Conditional build:
55d66264 3%bcond_without tests # do not perform "make test"
6641ad41 4#
5%include /usr/lib/rpm/macros.perl
9b794511 6%define pdir Readonly
ad1d3b7c 7Summary: Readonly - facility for creating read-only scalars, arrays, hashes
4583be7d 8Summary(pl.UTF-8): Readonly - udogodnienie do tworzenia zmiennych tylko do odczytu
6641ad41 9Name: perl-Readonly
0eab1d70 10Version: 1.03
ef5c2463 11Release: 3
4b48f85b 12# same as perl
13License: GPL v1+ or Artistic
6641ad41 14Group: Development/Languages/Perl
18968746 15Source0: http://www.cpan.org/modules/by-authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz
0eab1d70 16# Source0-md5: 0acef3a995ac9ecf575f66a726d638f4
8ece6d6a 17BuildRequires: rpm-perlprov >= 4.1-13
338406f3 18BuildRequires: perl-devel >= 1:5.8.0
55d66264 19%if %{with tests}
6641ad41 20BuildRequires: perl-Test-Simple
21BuildRequires: perl-Test-Harness
22%endif
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
6641ad41 26%description
27This is a facility for creating non-modifiable variables. This is
28useful for configuration files, headers, etc. It can also be useful as
29a development and debugging tool, for catching updates to variables that
30should not be changed.
31
a919e4b0
JR
32%description -l pl.UTF-8
33Readonly umożliwia tworzenie niemodyfikowalnych zmiennych. Jest to
34użyteczne w plikach konfiguracyjnych, nagłówkach, itp. Może być także
35przydatne jako narzędzie do rozwijania programów i wyszukiwania błędów,
36wyłapując próby zapisu do zmiennych, które nie powinny być zmieniane.
6641ad41 37
38%prep
39%setup -q -n %{pdir}-%{version}
40
41%build
8ece6d6a 42%{__perl} Makefile.PL \
b61385de 43 INSTALLDIRS=vendor
55d66264 44
6641ad41 45%{__make}
46
55d66264 47%{?with_tests:%{__make} test}
6641ad41 48
49%install
50rm -rf $RPM_BUILD_ROOT
51
55d66264
AG
52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
6641ad41 54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc Changes README
8ece6d6a 61%{perl_vendorlib}/*.pm
6641ad41 62%{_mandir}/man3/*
This page took 0.06728 seconds and 4 git commands to generate.