2009-11-28 21:21:02 +00:00
#
2011-06-20 08:45:17 +00:00
# spec file for package perl-B-Keywords
2009-11-28 21:21:02 +00:00
#
2025-10-20 20:06:19 +00:00
# Copyright (c) 2025 SUSE LLC and contributors
2009-11-28 21:21:02 +00:00
#
2010-11-02 21:43:59 +00:00
# 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.
2019-02-19 01:29:31 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2009-11-28 21:21:02 +00:00
#
2011-06-20 08:45:17 +00:00
2021-02-25 12:20:17 +00:00
%define cpan_name B-Keywords
2010-11-02 21:43:59 +00:00
Name : perl-B-Keywords
2025-10-20 20:06:19 +00:00
Version : 1.290.0
2012-02-10 23:04:18 +00:00
Release : 0
2025-10-20 20:06:19 +00:00
# 1.29 -> normalize -> 1.290.0
%define cpan_version 1.29
2021-11-03 07:11:42 +00:00
#Upstream: 2017-2021 Reini Urban, All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; version 2, or b) the "Artistic License" which comes with Perl.
2022-03-01 13:51:04 +00:00
License : Artistic-1.0 OR GPL-2.0-only
2010-11-02 21:43:59 +00:00
Summary : Lists of reserved barewords and symbol names
2021-02-25 12:20:17 +00:00
URL : https://metacpan.org/release/%{cpan_name}
2024-06-26 21:31:09 +00:00
Source0 : https://cpan.metacpan.org/authors/id/R/RU/RURBAN/%{cpan_name} -%{cpan_version} .tar.gz
2015-04-15 18:46:47 +00:00
Source1 : cpanspec.yml
2025-08-12 18:11:58 +02:00
Source100 : README.md
2010-11-02 21:43:59 +00:00
BuildArch : noarch
2010-10-19 08:45:21 +00:00
BuildRequires : perl
2010-12-03 13:55:45 +00:00
BuildRequires : perl-macros
2024-06-26 21:31:09 +00:00
Provides : perl(B::Keywords) = %{version}
%undefine __perllib_provides
2011-04-04 17:16:47 +00:00
%{perl_requires}
2009-11-28 21:21:02 +00:00
%description
2013-06-04 15:09:51 +00:00
'B::Keywords' supplies several arrays of exportable keywords: '@Scalars' ,
'@Arrays' , '@Hashes' , '@Filehandles' , '@Symbols' , '@Functions' ,
2021-11-03 07:11:42 +00:00
'@Barewords' , '@BarewordsExtra' , '@TieIOMethods' , '@UNIVERSALMethods' and
'@ExporterSymbols' .
2013-06-04 15:09:51 +00:00
The '@Symbols' array includes the contents of each of '@Scalars' ,
'@Arrays' , '@Hashes' , '@Functions' and '@Filehandles' .
Similarly, '@Barewords' adds a few non-function keywords and operators to
the '@Functions' array.
2009-11-28 21:21:02 +00:00
2021-11-03 07:11:42 +00:00
'@BarewordsExtra' adds a few barewords which are not in keywords.h.
2011-04-04 17:16:47 +00:00
All additions and modifications are welcome.
2009-11-28 21:21:02 +00:00
2013-06-04 15:09:51 +00:00
The perl parser uses a static list of keywords from _regen/keywords.pl_
which constitutes the strict list of keywords @Functions and @Barewords,
though some @Functions are not functions in the strict sense. Several
library functions use more special symbols, handles and methods.
2009-11-28 21:21:02 +00:00
%prep
2025-06-30 14:48:01 +00:00
%autosetup -n %{cpan_name} -%{cpan_version} -p1
2009-11-28 21:21:02 +00:00
%build
2019-02-19 01:29:31 +00:00
perl Makefile.PL INSTALLDIRS=vendor
2021-02-25 12:20:17 +00:00
%make_build
2009-11-28 21:21:02 +00:00
%check
2019-02-19 01:29:31 +00:00
make test
2009-11-28 21:21:02 +00:00
%install
%perl_make_install
%perl_process_packlist
2011-04-04 17:16:47 +00:00
%perl_gen_filelist
2009-11-28 21:21:02 +00:00
2011-04-04 17:16:47 +00:00
%files -f %{name}.files
2018-01-22 21:27:54 +00:00
%doc Changes README
%license LICENSE
2009-11-28 21:21:02 +00:00
%changelog