Blame SPECS/nss-pem.spec

8c90a8
Name:       nss-pem
8c90a8
Version:    1.0.3
8c90a8
Release:    4%{?dist}
8c90a8
Summary:    PEM file reader for Network Security Services (NSS)
8c90a8
8c90a8
License:    MPLv1.1
8c90a8
URL:        https://github.com/kdudka/nss-pem
8c90a8
Source0:    https://github.com/kdudka/nss-pem/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
8c90a8
Patch1:     0001-nss-pem-1.0.3-drop-wait-for-slot-event-cb.patch
8c90a8
8c90a8
BuildRequires: cmake
8c90a8
BuildRequires: nss-pkcs11-devel
8c90a8
8c90a8
# require at least the version of nss that nss-pem was built against (#1428965)
8c90a8
Requires: nss%{?_isa} >= %(nss-config --version 2>/dev/null || echo 0)
8c90a8
8c90a8
# make the nss-pem pkg conflict with all nss builds with bundled nss-pem
8c90a8
Conflicts: nss%{?_isa} < 3.28.2-2.el7
8c90a8
8c90a8
%description
8c90a8
PEM file reader for Network Security Services (NSS), implemented as a PKCS#11
8c90a8
module.
8c90a8
8c90a8
%prep
8c90a8
%setup -q
8c90a8
%patch1 -p1
8c90a8
8c90a8
%build
8c90a8
mkdir build
8c90a8
cd build
8c90a8
%cmake ../src
8c90a8
make %{?_smp_mflags} VERBOSE=yes
8c90a8
8c90a8
%install
8c90a8
cd build
8c90a8
make install DESTDIR=%{buildroot}
8c90a8
8c90a8
%check
8c90a8
cd build
8c90a8
ctest %{?_smp_mflags} --output-on-failure
8c90a8
8c90a8
%files
8c90a8
%{_libdir}/libnsspem.so
8c90a8
%license COPYING
8c90a8
8c90a8
%changelog
8c90a8
* Wed Apr 26 2017 Kamil Dudka <kdudka@redhat.com> 1.0.3-4
8c90a8
- fix missing prototypes detected by Covscan
8c90a8
8c90a8
* Tue Apr 25 2017 Kamil Dudka <kdudka@redhat.com> 1.0.3-3
8c90a8
- remove implementation of the WaitForSlotEvent callback (#1445384)
8c90a8
8c90a8
* Mon Mar 06 2017 Kamil Dudka <kdudka@redhat.com> 1.0.3-2
8c90a8
- require at least the version of nss that nss-pem was built against (#1428965)
8c90a8
8c90a8
* Wed Mar 01 2017 Kamil Dudka <kdudka@redhat.com> 1.0.3-1
8c90a8
- update to latest upstream bugfix release (#1427917)
8c90a8
8c90a8
* Tue Feb 14 2017 Kamil Dudka <kdudka@redhat.com> 1.0.2-2
8c90a8
- explicitly conflict with all nss builds with bundled nss-pem
8c90a8
8c90a8
* Tue Jan 24 2017 Kamil Dudka <kdudka@redhat.com> 1.0.2-1
8c90a8
- imported into RHEL-7