svrcore/svrcore.spec

78 lines
2.7 KiB
RPMSpec

Name: svrcore
Version: 4.1.3
Release: 1mamba
Summary: Secure PIN handling using NSS crypto
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pagure.io/svrcore/
Source: https://pagure.io/svrcore/archive/svrcore-%{version}/svrcore-svrcore-%{version}.tar.gz
License: GPL,MPL 1.1,LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libnspr-devel
BuildRequires: libnss-devel
## AUTOBUILDREQ-END
%description
svrcore provides applications with several ways to handle secure PIN storage e.g. in an application that must be restarted, but needs the PIN to unlock the private key and other crypto material, without user intervention. svrcore uses the facilities provided by NSS.
%package -n lib%{name}
Summary: Secure PIN handling using NSS crypto
Group: System/Libraries
Provides: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}
svrcore provides applications with several ways to handle secure PIN storage e.g. in an application that must be restarted, but needs the PIN to unlock the private key and other crypto material, without user intervention. svrcore uses the facilities provided by NSS.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for secure PIN handling using NSS crypto
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
svrcore provides applications with several ways to handle secure PIN storage e.g. in an application that must be restarted, but needs the PIN to unlock the private key and other crypto material, without user intervention. svrcore uses the facilities provided by NSS.
This package contains header files and symlinks to develop programs which will use the libsvrcore library. You should install this package if you need to develop programs which will use the svrcore library.
%debug_package
%prep
%setup -q -n svrcore-svrcore-%{version}
./autogen.sh
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -f %{buildroot}%{_libdir}/libsvrcore.*a
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libsvrcore.so.*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/svrcore.h
%{_libdir}/libsvrcore.so
%{_libdir}/pkgconfig/svrcore.pc
%doc LICENSE NEWS README TODO
%changelog
* Sat Nov 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.3-1mamba
- update to 4.1.3
* Mon Dec 21 2009 gil <puntogil@libero.it> 4.0.4-1mamba
- package created by autospec