File ca-certificates-opensuse.spec of Package ca-certificates-opensuse
#
# spec file for package ca-certificates-opensuse
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 openSUSE contributors
#
# 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 certdir %{trustdir_static}/anchors
BuildRequires: p11-kit-devel
BuildRequires: ca-certificates
PreReq: ca-certificates
Name: ca-certificates-opensuse
Version: 1.3
Release: 0
Summary: openSUSE Infrastructure internal root certificate
License: MIT
Group: Productivity/Networking/Security
URL: https://opensuse.org
Source0: stepca-opensuse-ca.crt
Source1: ca-certificates-opensuse.COPYING
Source2: ca-certificates-opensuse-rpmlintrc
BuildRequires: openssl
BuildArch: noarch
Obsoletes: ca-certificates-freeipa-opensuse < %{version}
Provides: ca-certificates-freeipa-opensuse = %{version}
%description
This package contains the internal openSUSE Infrastructure root certificate.
%prep
install -m 644 %{SOURCE1} COPYING
%build
%install
install -d -m 755 %{buildroot}%{certdir}
install -m 644 %{SOURCE0} %{buildroot}%{certdir}/$(basename %{SOURCE0}).pem
%post
update-ca-certificates || true
%postun
update-ca-certificates || true
%files
%license COPYING
%{certdir}/stepca-opensuse-ca.crt.pem
%changelog