Blob Blame History Raw
Name:       nss-pem
Version:    1.0.3
Release:    7%{?dist}.1
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

# update object ID while reusing a certificate (#1610998)
Patch2:     0002-nss-pem-1.0.3-key-reload.patch

# fix performance regression in libcurl (#1659108)
Patch3:     0003-nss-pem-1.0.3-make-pem_objs-a-list-instead-of-array.patch

# support a scenario where 2 distinct encrypted private keys are used (#2121064)
Patch4:     0004-nss-pem-1.0.3-multi-encrypted-keys.patch

BuildRequires: cmake
BuildRequires: nss-pkcs11-devel

# require at least the version of nss that nss-pem was built against (#1428965)
Requires: nss%{?_isa} >= %(nss-config --version 2>/dev/null || echo 0)

# make the nss-pem pkg conflict with all nss builds with bundled nss-pem
Conflicts: nss%{?_isa} < 3.28.2-2.el7

%description
PEM file reader for Network Security Services (NSS), implemented as a PKCS#11
module.

%prep
%setup -q
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
mkdir build
cd build
%cmake ../src
make %{?_smp_mflags} VERBOSE=yes

%install
cd build
make install DESTDIR=%{buildroot}

%check
cd build
ctest %{?_smp_mflags} --output-on-failure

%files
%{_libdir}/libnsspem.so
%license COPYING

%changelog
* Wed Apr 12 2023 Kamil Dudka <kdudka@redhat.com> 1.0.3-7.el7_9.1
- support a scenario where 2 distinct encrypted private keys are used (#2121064)

* Wed Feb 27 2019 Kamil Dudka <kdudka@redhat.com> 1.0.3-7
- reintroduce implementation of the WaitForSlotEvent callback (#1615980)

* Mon Jan 14 2019 Kamil Dudka <kdudka@redhat.com> 1.0.3-6
- fix performance regression in libcurl (#1659108)

* Wed Aug 08 2018 Kamil Dudka <kdudka@redhat.com> 1.0.3-5
- update object ID while reusing a certificate (#1610998)

* Wed Apr 26 2017 Kamil Dudka <kdudka@redhat.com> 1.0.3-4
- fix missing prototypes detected by Covscan

* Tue Apr 25 2017 Kamil Dudka <kdudka@redhat.com> 1.0.3-3
- remove implementation of the WaitForSlotEvent callback (#1445384)

* Mon Mar 06 2017 Kamil Dudka <kdudka@redhat.com> 1.0.3-2
- require at least the version of nss that nss-pem was built against (#1428965)

* Wed Mar 01 2017 Kamil Dudka <kdudka@redhat.com> 1.0.3-1
- update to latest upstream bugfix release (#1427917)

* Tue Feb 14 2017 Kamil Dudka <kdudka@redhat.com> 1.0.2-2
- explicitly conflict with all nss builds with bundled nss-pem

* Tue Jan 24 2017 Kamil Dudka <kdudka@redhat.com> 1.0.2-1
- imported into RHEL-7