perl-Mozilla-CA/perl-Mozilla-CA.spec
Stephan Kulow efc7b0806d Accepting request 1037711 from devel:languages:perl:autoupdate
- Remove modifying of mk-ca-bundle.pl and update-cacert-file (not present
  in distribution anymore)
- updated to 20221114
   see /usr/share/doc/packages/perl-Mozilla-CA/Changes
  Revision history for Mozilla-CA
  20221114
    - Update from Mozilla repository to 2022-11-07
    - stop installing mk-ca-bundle.pl script
    - moved repository and issues to https://github.com/libwww-perl/Mozilla-CA
    - switched tests from Test to Test::More
    - fix license specification in metadata

OBS-URL: https://build.opensuse.org/request/show/1037711
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Mozilla-CA?expand=0&rev=10
2022-11-24 09:14:23 +00:00

65 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-Mozilla-CA
#
# Copyright (c) 2022 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 Mozilla-CA
Name: perl-Mozilla-CA
Version: 20221114
Release: 0
#Upstream: For the bundled Mozilla CA PEM file the following applies: This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. The Mozilla::CA distribution itself is available under the same license.
License: GPL-2.0-or-later OR MPL-1.1 OR LGPL-2.1-or-later
Summary: Mozilla's CA cert bundle in PEM format
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
%{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()
Returns the absolute path to the Mozilla's CA cert bundle PEM file.
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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
%changelog