perl-Readonly/perl-Readonly.spec
openeuler-basic 774db318bd package init
2020-02-29 12:53:53 +08:00

46 lines
1.2 KiB
RPMSpec

Name: perl-Readonly
Version: 2.05
Release: 8
Summary: Facility for creating read-only scalars, arrays, hashes
License: GPL+ or Artistic
URL: https://metacpan.org/release/Readonly
Source0: https://cpan.metacpan.org/authors/id/S/SA/SANKO/Readonly-%{version}.tar.gz
Patch0: replace-shebang.patch
BuildArch: noarch
BuildRequires: coreutils perl-interpreter perl-generators
BuildRequires: perl(Module::Build::Tiny) >= 0.035
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
Requires: perl(Carp) perl(Storable)
%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.
%package_help
%prep
%autosetup -n Readonly-%{version} -p1
%build
perl Build.PL --installdirs=vendor
./Build
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%check
./Build test
%files
%license LICENSE
%{perl_vendorlib}/Readonly.pm
%files help
%doc Changes README.md t/
%{_mandir}/man3/Readonly.3*
%changelog
* Fri Feb 28 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.05-8
- Package init