2010-04-01 18:22:04 +02:00
|
|
|
#
|
2011-08-30 09:54:41 +02:00
|
|
|
# spec file for package ca-certificates-mozilla
|
2010-04-01 18:22:04 +02:00
|
|
|
#
|
2018-01-25 11:05:06 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-04-01 18:22:04 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-05-03 14:41:21 +02:00
|
|
|
|
2013-07-02 15:57:37 +02:00
|
|
|
%define certdir %{trustdir_static}
|
2013-06-21 14:48:17 +02:00
|
|
|
BuildRequires: p11-kit-devel
|
2010-04-01 18:22:04 +02:00
|
|
|
|
2013-06-24 13:21:23 +02:00
|
|
|
BuildRequires: ca-certificates
|
2010-04-01 18:22:04 +02:00
|
|
|
BuildRequires: openssl
|
2017-10-25 16:46:12 +02:00
|
|
|
BuildRequires: python3-base
|
2010-04-01 18:22:04 +02:00
|
|
|
|
|
|
|
Name: ca-certificates-mozilla
|
2013-07-24 16:32:44 +02:00
|
|
|
# Version number is NSS_BUILTINS_LIBRARY_VERSION in this file:
|
2015-01-12 17:50:43 +01:00
|
|
|
# http://hg.mozilla.org/projects/nss/file/default/lib/ckfw/builtins/nssckbi.h
|
2018-08-16 10:43:19 +02:00
|
|
|
Version: 2.26
|
2012-01-12 16:54:25 +01:00
|
|
|
Release: 0
|
2010-04-01 18:22:04 +02:00
|
|
|
Summary: CA certificates for OpenSSL
|
2012-05-03 14:41:21 +02:00
|
|
|
License: MPL-2.0
|
2012-01-12 16:54:25 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2010-04-01 18:22:04 +02:00
|
|
|
Url: http://www.mozilla.org
|
|
|
|
# IMPORTANT: procedure to update certificates:
|
2013-07-24 16:32:44 +02:00
|
|
|
# - Check the log of the cert file:
|
2015-01-12 17:50:43 +01:00
|
|
|
# http://hg.mozilla.org/projects/nss/log/default/lib/ckfw/builtins/certdata.txt
|
2010-04-01 18:22:04 +02:00
|
|
|
# - download the new certdata.txt
|
2015-01-12 17:50:43 +01:00
|
|
|
# wget -O certdata.txt "http://hg.mozilla.org/projects/nss/file/default/lib/ckfw/builtins/certdata.txt"
|
2010-04-01 18:22:04 +02:00
|
|
|
# - run compareoldnew to show fingerprints of new and changed certificates
|
2014-06-04 10:39:37 +02:00
|
|
|
# - check the bugs referenced in hg log and compare the checksum
|
2010-04-01 18:22:04 +02:00
|
|
|
# to output of compareoldnew
|
|
|
|
# - Watch out that blacklisted or untrusted certificates are not
|
|
|
|
# accidentally included!
|
2015-01-12 17:50:43 +01:00
|
|
|
Source: http://hg.mozilla.org/projects/nss/raw-file/default/lib/ckfw/builtins/certdata.txt
|
|
|
|
Source1: http://hg.mozilla.org/projects/nss/raw-file/default/lib/ckfw/builtins/nssckbi.h
|
2013-07-24 17:07:12 +02:00
|
|
|
# from Fedora. Note: currently contains extra fix to remove quotes. Pending upstream approval.
|
2013-07-24 16:45:48 +02:00
|
|
|
Source10: certdata2pem.py
|
|
|
|
Source11: %{name}.COPYING
|
|
|
|
Source12: compareoldnew
|
2014-09-25 17:32:54 +02:00
|
|
|
|
2010-04-01 18:22:04 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
# for update-ca-certificates
|
2010-04-14 15:44:46 +02:00
|
|
|
Requires(post): ca-certificates
|
|
|
|
Requires(postun): ca-certificates
|
2010-04-01 18:22:04 +02:00
|
|
|
#
|
2014-06-20 14:36:04 +02:00
|
|
|
# replaces this package from SLE11 times
|
|
|
|
Obsoletes: openssl-certs
|
2010-04-01 18:22:04 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains some CA root certificates for OpenSSL extracted
|
|
|
|
from MozillaFirefox
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qcT
|
2014-09-25 17:32:54 +02:00
|
|
|
|
2010-09-27 16:44:00 +02:00
|
|
|
/bin/cp %{SOURCE0} .
|
2015-01-14 10:43:56 +01:00
|
|
|
|
2013-07-24 16:45:48 +02:00
|
|
|
install -m 644 %{SOURCE11} COPYING
|
|
|
|
ver=`sed -ne '/NSS_BUILTINS_LIBRARY_VERSION /s/.*"\(.*\)"/\1/p' < "%{SOURCE1}"`
|
|
|
|
if [ "%{version}" != "$ver" ]; then
|
|
|
|
echo "*** Version number mismatch: spec file should be version $ver"
|
|
|
|
false
|
|
|
|
fi
|
2010-04-01 18:22:04 +02:00
|
|
|
|
|
|
|
%build
|
2017-10-25 16:46:12 +02:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
python3 %{SOURCE10}
|
2010-04-01 18:22:04 +02:00
|
|
|
|
|
|
|
%install
|
2013-07-02 15:57:37 +02:00
|
|
|
mkdir -p %{buildroot}/%{trustdir_static}/anchors
|
2010-04-01 18:22:04 +02:00
|
|
|
set +x
|
2013-07-02 15:57:37 +02:00
|
|
|
for i in *.crt; do
|
2010-04-01 18:22:04 +02:00
|
|
|
args=()
|
|
|
|
trust=`sed -n '/^# openssl-trust=/{s/^.*=//;p;q;}' "$i"`
|
2013-07-02 15:57:37 +02:00
|
|
|
distrust=`sed -n '/^# openssl-distrust=/{s/^.*=//;p;q;}' "$i"`
|
2010-04-01 18:22:04 +02:00
|
|
|
alias=`sed -n '/^# alias=/{s/^.*=//;p;q;}' "$i"`
|
|
|
|
args+=('-trustout')
|
|
|
|
for t in $trust; do
|
|
|
|
args+=("-addtrust" "$t")
|
|
|
|
done
|
2013-07-02 15:57:37 +02:00
|
|
|
for t in $distrust; do
|
|
|
|
args+=("-addreject" "$t")
|
|
|
|
done
|
2010-04-01 18:22:04 +02:00
|
|
|
[ -z "$alias" ] || args+=('-setalias' "$alias")
|
2013-07-02 15:57:37 +02:00
|
|
|
|
|
|
|
echo "$i ${args[*]}"
|
2013-12-09 11:01:15 +01:00
|
|
|
fname="%{buildroot}/%{trustdir_static}$d/${i%%:*}.pem"
|
|
|
|
if [ -e "$fname" ]; then
|
|
|
|
fname="${fname%.pem}"
|
|
|
|
j=1
|
|
|
|
while [ -e "$fname.$j.pem" ]; do
|
|
|
|
j=$((j+1))
|
|
|
|
done
|
|
|
|
fname="$fname.$j.pem"
|
|
|
|
fi
|
2010-04-01 18:22:04 +02:00
|
|
|
{
|
|
|
|
grep '^#' "$i"
|
|
|
|
openssl x509 -in "$i" "${args[@]}"
|
2013-12-09 11:01:15 +01:00
|
|
|
} > "$fname"
|
2013-07-02 15:57:37 +02:00
|
|
|
done
|
- Updated to 1.94
* new: CA_Disig_Root_R1:2.9.0.195.3.154.238.80.144.110.40.crt
server auth, code signing, email signing
* new: CA_Disig_Root_R2:2.9.0.146.184.136.219.176.138.193.99.crt
server auth, code signing, email signing
* new: China_Internet_Network_Information_Center_EV_Certificates_Root:2.4.72.159.0.1.crt
server auth
* changed: Digital_Signature_Trust_Co._Global_CA_1:2.4.54.112.21.150.crt
removed code signing and server auth abilities
* changed: Digital_Signature_Trust_Co._Global_CA_3:2.4.54.110.211.206.crt
removed code signing and server auth abilities
* new: D-TRUST_Root_Class_3_CA_2_2009:2.3.9.131.243.crt
server auth
* new: D-TRUST_Root_Class_3_CA_2_EV_2009:2.3.9.131.244.crt
server auth
* removed: Entrust.net_Premium_2048_Secure_Server_CA:2.4.56.99.185.102.crt
* new: Entrust.net_Premium_2048_Secure_Server_CA:2.4.56.99.222.248.crt
I think the missing flags were adjusted.
* removed: Equifax_Secure_eBusiness_CA_2:2.4.55.112.207.181.crt
* new: PSCProcert:2.1.11.crt
server auth, code signing, email signing
* new: Swisscom_Root_CA_2:2.16.30.158.40.232.72.242.229.239.195.124.74.30.90.24.103.182.crt
server auth, code signing, email signing
* new: Swisscom_Root_EV_CA_2:2.17.0.242.250.100.226.116.99.211.141.253.16.29.4.31.118.202.88.crt
server auth, code signing
* changed: TC_TrustCenter_Universal_CA_III:2.14.99.37.0.1.0.2.20.141.51.21.2.228.108.244.crt
removed all abilities
* new: TURKTRUST_Certificate_Services_Provider_Root_2007:2.1.1.crt
server auth, code signing
* changed: TWCA_Root_Certification_Authority:2.1.1.crt
OBS-URL: https://build.opensuse.org/package/show/Base:System/ca-certificates-mozilla?expand=0&rev=45
2013-10-29 14:59:48 +01:00
|
|
|
for i in *.p11-kit ; do
|
2013-07-02 15:57:37 +02:00
|
|
|
install -m 644 "$i" "%{buildroot}/%{trustdir_static}"
|
2010-04-01 18:22:04 +02:00
|
|
|
done
|
|
|
|
set -x
|
|
|
|
|
|
|
|
%post
|
|
|
|
update-ca-certificates || true
|
|
|
|
|
|
|
|
%postun
|
|
|
|
update-ca-certificates || true
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2018-03-20 13:40:02 +01:00
|
|
|
%license COPYING
|
2013-07-02 15:57:37 +02:00
|
|
|
%{trustdir_static}
|
2010-04-01 18:22:04 +02:00
|
|
|
|
|
|
|
%changelog
|