pkcs11-helper/pkcs11-helper.spec

83 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.30.0-1mamba
- package created using the webbuild interface