nss-pem/nss-pem.spec

64 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 11:10:16 -04:00
Name: nss-pem
2023-07-14 15:49:39 +08:00
Version: 1.1.0
2021-12-31 15:42:33 +08:00
Release: 1
2019-09-30 11:10:16 -04:00
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
2019-09-30 11:10:16 -04:00
Requires: nss%{?_isa} >= %(nss-config --version 2>/dev/null || echo 0)
Conflicts: nss%{?_isa} < 3.24.0-3%{?dist}
Obsoletes: %{name} < %{version}-%{release}
%description
PEM file reader for Network Security Services (NSS), implemented as a PKCS#11
module.
%prep
%autosetup -n %{name}-%{version} -p1
2019-09-30 11:10:16 -04:00
%build
export CFLAGS="%{optflags} -DNSS_PKCS11_2_0_COMPAT"
2019-09-30 11:10:16 -04:00
mkdir build
pushd build
%cmake ../src
make %{?_smp_mflags} VERBOSE=yes
popd
%install
pushd build
%make_install
popd
%check
pushd build
ctest %{?_smp_mflags} --output-on-failure
popd
%files
%{_libdir}/libnsspem.so
2021-12-31 15:42:33 +08:00
%license COPYING.{GPL,MPL}
2019-09-30 11:10:16 -04:00
%changelog
2023-07-14 15:49:39 +08:00
* Fri Jul 14 2023 niuyaru <niuyaru@kylinos.cn> - 1.1.0-1
- update version to 1.1.0
2021-12-31 15:42:33 +08:00
* Fri Dec 31 2021 panxiaohe <panxiaohe@huawei.com> - 1.0.8-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 1.0.8
* 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
2020-07-28 11:10:53 +08:00
* Tue Jul 28 2020 yang_zhuang_zhuang <yangzhuangzhuang1@huawei.com> - 1.0.6-1
- update version to 1.0.6
2019-09-30 11:10:16 -04:00
* Thu Aug 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.4-2
- Package init