]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: Readonly - facility for creating read-only scalars, arrays, hashes |
4583be7d | 8 | Summary(pl.UTF-8): Readonly - udogodnienie do tworzenia zmiennych tylko do odczytu |
6641ad41 | 9 | Name: perl-Readonly |
0eab1d70 | 10 | Version: 1.03 |
ef5c2463 | 11 | Release: 3 |
4b48f85b | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
6641ad41 | 14 | Group: Development/Languages/Perl |
18968746 | 15 | Source0: http://www.cpan.org/modules/by-authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz |
0eab1d70 | 16 | # Source0-md5: 0acef3a995ac9ecf575f66a726d638f4 |
8ece6d6a | 17 | BuildRequires: rpm-perlprov >= 4.1-13 |
338406f3 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
55d66264 | 19 | %if %{with tests} |
6641ad41 | 20 | BuildRequires: perl-Test-Simple |
21 | BuildRequires: perl-Test-Harness | |
22 | %endif | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
6641ad41 | 26 | %description |
27 | This is a facility for creating non-modifiable variables. This is | |
28 | useful for configuration files, headers, etc. It can also be useful as | |
29 | a development and debugging tool, for catching updates to variables that | |
30 | should not be changed. | |
31 | ||
a919e4b0 JR |
32 | %description -l pl.UTF-8 |
33 | Readonly umożliwia tworzenie niemodyfikowalnych zmiennych. Jest to | |
34 | użyteczne w plikach konfiguracyjnych, nagłówkach, itp. Może być także | |
35 | przydatne jako narzędzie do rozwijania programów i wyszukiwania błędów, | |
36 | wył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 | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
55d66264 AG |
52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
6641ad41 | 54 | |
55 | %clean | |
56 | rm -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/* |