diff --git a/README.md b/README.md index 3bb4492..19ec133 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pkcs11-helper +Library that simplifies the interaction with PKCS#11 providers for end-user applications using a simple API and optional OpenSSL engine. + diff --git a/pkcs11-helper.spec b/pkcs11-helper.spec new file mode 100644 index 0000000..cc2958b --- /dev/null +++ b/pkcs11-helper.spec @@ -0,0 +1,82 @@ +Name: pkcs11-helper +Version: 1.30.0 +Release: 1mamba +Summary: Library that simplifies the interaction with PKCS#11 providers for end-user applications +Group: Applications/Security +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/OpenSC/pkcs11-helper +Source: https://github.com/OpenSC/pkcs11-helper.git/pkcs11-helper-%{version}/pkcs11-helper-%{version}.tar.bz2 +License: BSD, GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgnutls-devel +BuildRequires: libmbedtls-devel +BuildRequires: libnspr-devel +BuildRequires: libnss-devel +BuildRequires: libopenssl-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Library that simplifies the interaction with PKCS#11 providers for end-user applications using a simple API and optional OpenSSL engine. + +%package -n lib%{name} +Group: System/Libraries +Summary: Library that simplifies the interaction with PKCS#11 providers for end-user applications + +%description -n lib%{name} +Library that simplifies the interaction with PKCS#11 providers for end-user applications using a simple API and optional OpenSSL engine. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q +autoreconf -f -i + +%build +%configure + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libpkcs11-helper.so.* +%doc AUTHORS COPYING THANKS + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/pkcs11-helper-1.0 +%{_includedir}/pkcs11-helper-1.0/*.h +%{_libdir}/libpkcs11-helper.a +%{_libdir}/libpkcs11-helper.so +%{_libdir}/pkgconfig/libpkcs11-helper-1.pc +%{_datadir}/aclocal/pkcs11-helper-1.m4 +%dir %{_docdir}/pkcs11-helper +%{_docdir}/pkcs11-helper/* +%{_mandir}/man8/pkcs11-helper-1.8* +%doc ChangeLog README + +%changelog +* Sat May 18 2024 Silvan Calarco 1.30.0-1mamba +- package created using the webbuild interface