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