Files
perl-Const-Exporter/perl-Const-Exporter.spec
2025-08-12 18:12:41 +02:00

77 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-Const-Exporter
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Const-Exporter
Name: perl-Const-Exporter
Version: 1.3.0
Release: 0
# v1.3.0 -> normalize -> 1.3.0
%define cpan_version v1.3.0
License: Artistic-2.0
Summary: Declare constants for export
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RR/RRWO/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Const::Fast)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.22
BuildRequires: perl(Hash::Objectify)
BuildRequires: perl(List::Util) >= 1.56
BuildRequires: perl(Module::Metadata) >= 1.000015
BuildRequires: perl(Package::Stash)
BuildRequires: perl(Ref::Util)
BuildRequires: perl(Sub::Identify) >= 0.06
BuildRequires: perl(Test::Most)
Requires: perl(Const::Fast)
Requires: perl(List::Util) >= 1.56
Requires: perl(Package::Stash)
Requires: perl(Ref::Util)
Recommends: perl(List::SomeUtils::XS)
Recommends: perl(Package::Stash::XS)
Recommends: perl(Ref::Util::XS)
Recommends: perl(Storable) >= 3.05
%{perl_requires}
%description
This module allows you to declare constants that can be exported to other
modules.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README.md SECURITY.md
%license LICENSE
%changelog