%undefine __cmake_in_source_build %undefine __cmake3_in_source_build Name: nss-pem Version: 1.1.0.20250424.103627.g9e09c8e.pr_18 Release: 1%{?dist} Summary: PEM file reader for Network Security Services (NSS) # See README for details # list.h - GPL-2.0-only # * - MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later License: GPL-2.0-only AND (MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later) URL: https://github.com/kdudka/nss-pem Source0: nss-pem-1.1.0.20250424.103627.g9e09c8e.pr_18.tar.gz BuildRequires: cmake3 BuildRequires: gcc BuildRequires: make 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) %description PEM file reader for Network Security Services (NSS), implemented as a PKCS#11 module. %prep %setup -q -n nss-pem-1.1.0.20250424.103627.g9e09c8e.pr_18 %build %cmake3 -S src %if 0%{?rhel} == 7 # The %%cmake3_build macro is not defined in outdated epel7 buildroots cmake3 --build . --verbose %else %cmake3_build %endif %install %cmake3_install %check %ctest3 %files %{_libdir}/libnsspem.so %license COPYING.{GPL,MPL}