40 lines
863 B
RPMSpec
40 lines
863 B
RPMSpec
|
|
%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}
|
||
|
|
|
||
|
|
%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
|