76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-Module-CoreList
|
|
#
|
|
# 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 Module-CoreList
|
|
Name: perl-Module-CoreList
|
|
Version: 5.20250803
|
|
Release: 0
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: What modules shipped with versions of perl
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(version) >= 0.88
|
|
Requires: perl(version) >= 0.88
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Module::CoreList provides information on which core and dual-life modules
|
|
shipped with each version of perl.
|
|
|
|
It provides a number of mechanisms for querying this information.
|
|
|
|
There is a utility called corelist provided with this module which is a
|
|
convenient way of querying from the command-line.
|
|
|
|
There is a functional programming API available for programmers to query
|
|
information.
|
|
|
|
Programmers may also query the contained hash structures to find relevant
|
|
information.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
# MANUAL BEGIN
|
|
mv %{buildroot}%{_bindir}/corelist %{buildroot}%{_bindir}/corelist-%{name}
|
|
# the perl docu will do
|
|
mv %{buildroot}%{_mandir}/man1/{corelist,corelist-%{name}}.1
|
|
rm %{buildroot}%{_mandir}/man3/Module::CoreList.3pm
|
|
# MANUAL END
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes corelist identify-dependencies README
|
|
|
|
%changelog
|