delete -Sgit from %autosetup, and delete BuildRequires git

This commit is contained in:
chenyanpanHW 2021-08-02 10:55:32 +08:00
parent 8fe9432c35
commit 5769251bc7
No known key found for this signature in database
GPG Key ID: 6DAA738A86DB45D7

View File

@ -1,12 +1,12 @@
Name: nss-pem
Version: 1.0.6
Release: 2
Release: 3
Summary: PEM file reader for Network Security Services (NSS)
License: MPLv1.1
URL: https://github.com/kdudka/nss-pem
Source0: https://github.com/kdudka/nss-pem/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
BuildRequires: cmake gcc nss-pkcs11-devel git
BuildRequires: cmake gcc nss-pkcs11-devel
Requires: nss%{?_isa} >= %(nss-config --version 2>/dev/null || echo 0)
Conflicts: nss%{?_isa} < 3.24.0-3%{?dist}
Obsoletes: %{name} < %{version}-%{release}
@ -16,7 +16,7 @@ PEM file reader for Network Security Services (NSS), implemented as a PKCS#11
module.
%prep
%autosetup -n %{name}-%{version} -p1 -Sgit
%autosetup -n %{name}-%{version} -p1
%build
export CFLAGS="%{optflags} -DNSS_PKCS11_2_0_COMPAT"
@ -41,6 +41,9 @@ popd
%license COPYING
%changelog
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.0.6-3
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Fri Aug 7 2020 yang_zhuang_zhuang <yangzhuangzhuang1@huawei.com> - 1.0.6-2
- Add -DNSS_PKCS11_2_0_COMPAT to solve build failure