2012-02-21 12:30:04 +01:00
|
|
|
#
|
|
|
|
# spec file for package perl-Mozilla-CA
|
|
|
|
#
|
2023-08-08 17:11:53 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-02-21 12:30:04 +01: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.
|
|
|
|
|
2020-08-08 13:41:16 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-21 12:30:04 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-10-12 11:48:48 +02:00
|
|
|
%define cpan_name Mozilla-CA
|
2012-02-21 12:30:04 +01:00
|
|
|
Name: perl-Mozilla-CA
|
2023-09-12 17:03:30 +02:00
|
|
|
Version: 20230821.0.0
|
2012-02-21 12:30:04 +01:00
|
|
|
Release: 0
|
2023-09-12 17:03:30 +02:00
|
|
|
%define cpan_version 20230821
|
2023-08-08 17:11:53 +02:00
|
|
|
#Upstream: SUSE-Public-Domain
|
2022-11-24 10:14:23 +01:00
|
|
|
License: GPL-2.0-or-later OR MPL-1.1 OR LGPL-2.1-or-later
|
2012-02-21 12:30:04 +01:00
|
|
|
Summary: Mozilla's CA cert bundle in PEM format
|
2020-08-08 13:41:16 +02:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-08-08 17:11:53 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LW/LWP/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-19 10:04:37 +02:00
|
|
|
Source1: cpanspec.yml
|
2012-02-21 12:30:04 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2023-08-08 17:11:53 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.94
|
2023-09-12 17:03:30 +02:00
|
|
|
Provides: perl(Mozilla::CA) = 20230821.0.0
|
2023-08-08 17:11:53 +02:00
|
|
|
%define __perllib_provides /bin/true
|
2012-02-21 12:30:04 +01:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mozilla::CA provides a copy of Mozilla's bundle of Certificate Authority
|
|
|
|
certificates in a form that can be consumed by modules and libraries based
|
|
|
|
on OpenSSL.
|
|
|
|
|
|
|
|
The module provide a single function:
|
|
|
|
|
|
|
|
* SSL_ca_file()
|
|
|
|
|
2016-01-07 12:42:54 +01:00
|
|
|
Returns the absolute path to the Mozilla's CA cert bundle PEM file.
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%prep
|
2023-08-08 17:11:53 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%build
|
2020-08-08 13:41:16 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-10-12 11:48:48 +02:00
|
|
|
%make_build
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%check
|
2020-08-08 13:41:16 +02:00
|
|
|
make test
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2015-04-19 10:04:37 +02:00
|
|
|
%perl_process_packlist
|
2012-02-21 12:30:04 +01:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2022-11-24 10:14:23 +01:00
|
|
|
%doc Changes README
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%changelog
|