commit d5e363b4e4ef368cc676d5998ae81b7199e448bb Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:10:16 2019 -0400 Package init diff --git a/nss-pem-1.0.4.tar.xz b/nss-pem-1.0.4.tar.xz new file mode 100644 index 0000000..644055a Binary files /dev/null and b/nss-pem-1.0.4.tar.xz differ diff --git a/nss-pem.spec b/nss-pem.spec new file mode 100644 index 0000000..a835675 --- /dev/null +++ b/nss-pem.spec @@ -0,0 +1,44 @@ +Name: nss-pem +Version: 1.0.4 +Release: 2 +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 +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 -Sgit + +%build +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 +%license COPYING + +%changelog +* Thu Aug 15 2019 openEuler Buildteam - 1.0.4-2 +- Package init