Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-release-src > by-pkgid > 0b1b202bb98bcd671dd5446d81a4efdc > files > 2

perl-Readonly-2.40.0-1.mga6.src.rpm

%define	upstream_name	 Readonly
%define upstream_version 2.04

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 1

Summary:    Facility for creating read-only scalars, arrays, hashes
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    ftp://ftp.perl.org/pub/CPAN/modules/by-module/Readonly/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Module::Build::Tiny) >= 0.35.0
BuildRequires: perl(Test::More)
BuildArch:  noarch

%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.

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.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files 
%doc Changes LICENSE META.json META.yml MYMETA.yml eg
%{perl_vendorlib}/Readonly.pm
%{_mandir}/*/*

%changelog
* Sun May 08 2016 shlomif <shlomif> 2.40.0-1.mga6
+ Revision: 1010762
- update to 2.04

* Thu Feb 25 2016 shlomif <shlomif> 2.10.0-1.mga6
+ Revision: 978835
- update to 2.01

* Mon Feb 08 2016 umeabot <umeabot> 2.0.0-4.mga6
+ Revision: 947396
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 2.0.0-3.mga5
+ Revision: 741184
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 2.0.0-2.mga5
+ Revision: 686088
- Mageia 5 Mass Rebuild

* Thu Jul 03 2014 sander85 <sander85> 2.0.0-1.mga5
+ Revision: 642698
- update to 2.00

* Sat Jun 28 2014 sander85 <sander85> 1.610.0-1.mga5
+ Revision: 640853
- update to 1.61

* Fri Jun 27 2014 jquelin <jquelin> 1.500.0-1.mga5
+ Revision: 640242
- update to v1.500.0

* Sat Feb 08 2014 sander85 <sander85> 1.40.0-1.mga5
+ Revision: 586101
- update to 1.04

* Fri Oct 18 2013 umeabot <umeabot> 1.30.0-3.mga4
+ Revision: 514428
- Mageia 4 Mass Rebuild

* Sun Jan 13 2013 umeabot <umeabot> 1.30.0-2.mga3
+ Revision: 372232
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Jan 22 2011 jquelin <jquelin> 1.30.0-1.mga1
+ Revision: 31080
- mageia rebuild
- imported package perl-Readonly