Package init

This commit is contained in:
overweight 2019-09-30 11:10:16 -04:00
commit d5e363b4e4
2 changed files with 44 additions and 0 deletions

BIN
nss-pem-1.0.4.tar.xz Normal file

Binary file not shown.

44
nss-pem.spec Normal file
View File

@ -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 <buildteam@openeuler.org> - 1.0.4-2
- Package init