Paul Wouters 34c1e7
Summary: Software version of a PKCS#11 Hardware Security Module
Paul Wouters 34c1e7
Name: softhsm
6bc674
Version: 1.3.7
6bc674
Release: 1%{?dist}
Paul Wouters 34c1e7
License: BSD
Paul Wouters 34c1e7
Url: http://www.opendnssec.org/
Paul Wouters 34c1e7
Source: http://www.opendnssec.org/files/source/%{name}-%{version}.tar.gz
Paul Wouters 34c1e7
Group: Applications/System
Paul Wouters 34c1e7
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Paul Wouters 34c1e7
BuildRequires: botan-devel >= 1.8.5 sqlite-devel >= 3.4.2
Paul Wouters 34c1e7
Requires(pre): shadow-utils
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%description
Paul Wouters 34c1e7
OpenDNSSEC is providing a software implementation of a generic 
Paul Wouters 34c1e7
cryptographic device with a PKCS#11 interface, the SoftHSM. SoftHSM is 
Paul Wouters 34c1e7
designed to meet the requirements of OpenDNSSEC, but can also work together 
Paul Wouters 34c1e7
with other cryptographic products because of the PKCS#11 interface.
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%package devel
Paul Wouters 34c1e7
Summary: Development package of softhsm that includes the header files
Paul Wouters 34c1e7
Group: Development/Libraries
Paul Wouters 34c1e7
Requires: %{name} = %{version}-%{release}, botan-devel, sqlite-devel
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%description devel
Paul Wouters 34c1e7
The devel package contains the libsofthsm include files
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%prep
Paul Wouters 34c1e7
%setup -q 
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%build
c6fb12
%configure --libdir=%{_libdir}/ 
Paul Wouters 34c1e7
make %{?_smp_mflags}
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%check
Paul Wouters 34c1e7
make check
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%install
Paul Wouters 34c1e7
rm -rf %{buildroot}
Paul Wouters 34c1e7
make DESTDIR=%{buildroot} install
Paul Wouters 34c1e7
rm %{buildroot}/etc/softhsm.conf.sample
c6fb12
rm -f %{buildroot}/%{_libdir}/softhsm/*a
Paul Wouters 34c1e7
mkdir -p %{buildroot}%{_includedir}/softhsm
Paul Wouters 34c1e7
cp src/lib/*.h %{buildroot}%{_includedir}/softhsm
Paul Wouters 34c1e7
mkdir -p %{buildroot}/var/softhsm
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%files 
Paul Wouters 34c1e7
%config(noreplace) %{_sysconfdir}/softhsm.conf
Paul Wouters 34c1e7
%{_bindir}/*
Paul Wouters 34c1e7
%dir %{_libdir}/softhsm/
Paul Wouters 34c1e7
%{_libdir}/softhsm/libsofthsm.so
c6fb12
%attr(0770,ods,ods) %dir /var/softhsm
6bc674
%doc AUTHORS NEWS README.md
Paul Wouters 34c1e7
%{_mandir}/*/*
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%files devel
Paul Wouters 34c1e7
%defattr(-,root,root,-)
Paul Wouters 34c1e7
%attr(0755,root,root) %dir %{_includedir}/softhsm
Paul Wouters 34c1e7
%{_includedir}/softhsm/*.h
6bc674
%doc README.md
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%pre
015e48
getent group ods >/dev/null || groupadd -r ods ||:
c6fb12
getent passwd ods >/dev/null || \
c6fb12
    useradd -r -g ods -d /var/softhsm -s /sbin/nologin \
015e48
    -c "DNSSEC private keys owner" ods ||:
Paul Wouters 34c1e7
Paul Wouters 34c1e7
%changelog
6bc674
* Thu Sep 03 2015 Paul Wouters <pwouters@redhat.com> - 1.3.7-1
6bc674
- Updated to 1.3.7
6bc674
- Changed README to README.md
6bc674
015e48
* Mon Apr 13 2015 Paul Wouters <pwouters@redhat.com> - 1.3.5-2
015e48
- Minor fixes in post and minor cleanup, bump for forgotten build
015e48
ab6c58
* Sun Nov 03 2013 Paul Wouters <pwouters@redhat.com> - 1.3.5-1
ab6c58
- Updated to 1.3.5
ab6c58
840cc9
* Mon Jun 04 2012 Paul Wouters <pwouters@redhat.com> - 1.3.3-1
840cc9
- Updated to 1.3.3
840cc9
c6fb12
* Tue Apr 03 2012 Paul Wouters <pwouters@redhat.com> - 1.3.2-1
c6fb12
- Updated to 1.3.2.
c6fb12
- Changed user from opendnssec to ods, as used in the opendnssec package
c6fb12
Paul Wouters 34c1e7
* Thu Oct 27 2011 Paul Wouters <paul@xelerance.com> - 1.3.0-3
Paul Wouters 34c1e7
- Initial Fedora package
Paul Wouters 34c1e7
- Do not install the .a file
Paul Wouters 34c1e7
- Use a separate "opendnssec" user to own /var/sofhsm
Paul Wouters 34c1e7
Paul Wouters 34c1e7
* Tue Oct 25 2011 Paul Wouters <paul@xelerance.com> - 1.3.0-2
Paul Wouters 34c1e7
- Fix description texts w.r.t. include files
Paul Wouters 34c1e7
Paul Wouters 34c1e7
* Wed Oct 05 2011 Paul Wouters <paul@xelerance.com> - 1.3.0-1
Paul Wouters 34c1e7
- Upgraded to 1.3.0
Paul Wouters 34c1e7
Paul Wouters 34c1e7
* Thu Mar  3 2011 Paul Wouters <paul@xelerance.com> - 1.2.0-1
Paul Wouters 34c1e7
- Initial package for Fedora