update to 2.05 [release 2.05-1mamba;Fri Feb 03 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 09:33:14 +01:00
parent 7894b0031f
commit 9f66f5ebd5
2 changed files with 21 additions and 16 deletions

View File

@ -1,8 +1,6 @@
# perl-Readonly # perl-Readonly
This is a facility for creating non-modifiable variables. This is useful for configuration files, headers, etc. It can also be useful as a development and debugging tool, for catching updates to variables that should not be changed. This is a facility for creating non-modifiable variables. This is useful for configuration files, headers, etc. It can also be useful as a development and debugging tool, for catching updates to variables that should not be changed.
If any of the values you pass to Scalar, Array, or Hash are references, then those functions recurse over the data structures, marking everything as Readonly. Usually, this is what you want: the entire structure nonmodifiable. If you want only the top level to be Readonly, use the alternate Scalar1, Array1 and Hash1 functions. If any of the values you pass to Scalar, Array, or Hash are references, then those functions recurse over the data structures, marking everything as Readonly. Usually, this is what you want: the entire structure nonmodifiable. If you want only the top level to be Readonly, use the alternate Scalar1, Array1 and Hash1 functions.
Please note that most users of Readonly will also want to install a companion module Readonly::XS. See the "CONS" section below for more details. Please note that most users of Readonly will also want to install a companion module Readonly::XS. See the "CONS" section below for more details.

View File

@ -1,39 +1,43 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) %define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Readonly Name: perl-Readonly
Version: 1.03 Version: 2.05
Release: 3mamba Release: 1mamba
Summary: Readonly - Facility for creating read-only scalars, arrays, hashes. Summary: Readonly - Facility for creating read-only scalars, arrays, hashes.
Group: System/Libraries/Perl Group: System/Libraries/Perl
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Readonly-%{version}.tar.gz Source: https://cpan.metacpan.org/authors/id/S/SA/SANKO/Readonly-%{version}.tar.gz
License: GPL, Artistic License: GPL, Artistic
Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %perl_major_ver BuildRequires: perl-devel >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: perl >= %perl_major_ver
%description %description
This is a facility for creating non-modifiable variables. This is useful for configuration files, headers, etc. It can also be useful as a development and debugging tool, for catching updates to variables that should not be changed. This is a facility for creating non-modifiable variables. This is useful for configuration files, headers, etc. It can also be useful as a development and debugging tool, for catching updates to variables that should not be changed.
If any of the values you pass to Scalar, Array, or Hash are references, then those functions recurse over the data structures, marking everything as Readonly. Usually, this is what you want: the entire structure nonmodifiable. If you want only the top level to be Readonly, use the alternate Scalar1, Array1 and Hash1 functions. If any of the values you pass to Scalar, Array, or Hash are references, then those functions recurse over the data structures, marking everything as Readonly. Usually, this is what you want: the entire structure nonmodifiable. If you want only the top level to be Readonly, use the alternate Scalar1, Array1 and Hash1 functions.
Please note that most users of Readonly will also want to install a companion module Readonly::XS. See the "CONS" section below for more details. Please note that most users of Readonly will also want to install a companion module Readonly::XS. See the "CONS" section below for more details.
%prep %prep
%setup -q -n Readonly-%{version} %setup -q -n Readonly-%{version}
%build %build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %{__perl} Build.PL installdirs=vendor
%make ./Build
%make test ./Build test
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
export PERL_INSTALL_ROOT=%{buildroot}
./Build install \
--install_path bindoc="%{_mandir}/man1" \
--install_path libdoc="%{_mandir}/man3"
packlist=`find %{buildroot} -name .packlist` packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \ [ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
@ -52,6 +56,9 @@ rm -f .packlist
%defattr(-,root,root) %defattr(-,root,root)
%changelog %changelog
* Fri Feb 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.05-1mamba
- update to 2.05
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-3mamba * Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-3mamba
- perl 5.16 mass rebuild - perl 5.16 mass rebuild