|
|
2d4952 |
Summary: A library for integrity verification of FIPS validated modules
|
|
|
2d4952 |
Name: fipscheck
|
|
|
2d4952 |
Version: 1.4.1
|
|
|
2d4952 |
Release: 1%{?dist}
|
|
|
2d4952 |
License: BSD
|
|
|
2d4952 |
Group: System Environment/Libraries
|
|
|
2d4952 |
# This is a Red Hat maintained package which is specific to
|
|
|
2d4952 |
# our distribution.
|
|
|
2d4952 |
URL: http://fedorahosted.org/fipscheck/
|
|
|
2d4952 |
Source0: http://fedorahosted.org/releases/f/i/%{name}/%{name}-%{version}.tar.bz2
|
|
|
2d4952 |
|
|
|
2d4952 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
2d4952 |
|
|
|
2d4952 |
BuildRequires: openssl-devel >= 0.9.8j
|
|
|
2d4952 |
|
|
|
2d4952 |
%description
|
|
|
2d4952 |
FIPSCheck is a library for integrity verification of FIPS validated
|
|
|
2d4952 |
modules. The package also provides helper binaries for creation and
|
|
|
2d4952 |
verification of the HMAC-SHA256 checksum files.
|
|
|
2d4952 |
|
|
|
2d4952 |
%package lib
|
|
|
2d4952 |
Summary: Library files for %{name}
|
|
|
2d4952 |
Group: System Environment/Libraries
|
|
|
2d4952 |
|
|
|
2d4952 |
Requires: %{_bindir}/fipscheck
|
|
|
2d4952 |
|
|
|
2d4952 |
%description lib
|
|
|
2d4952 |
This package contains the FIPSCheck library.
|
|
|
2d4952 |
|
|
|
2d4952 |
%package devel
|
|
|
2d4952 |
Summary: Development files for %{name}
|
|
|
2d4952 |
Group: System Environment/Libraries
|
|
|
2d4952 |
|
|
|
2d4952 |
Requires: %{name}-lib = %{version}-%{release}
|
|
|
2d4952 |
|
|
|
2d4952 |
%description devel
|
|
|
2d4952 |
This package contains development files for %{name}.
|
|
|
2d4952 |
|
|
|
2d4952 |
%prep
|
|
|
2d4952 |
%setup -q
|
|
|
2d4952 |
|
|
|
2d4952 |
%build
|
|
|
2d4952 |
%configure --disable-static
|
|
|
2d4952 |
|
|
|
2d4952 |
make %{?_smp_mflags}
|
|
|
2d4952 |
|
|
|
2d4952 |
# Add generation of HMAC checksums of the final stripped binaries
|
|
|
2d4952 |
%define __spec_install_post \
|
|
|
2d4952 |
%{?__debug_package:%{__debug_install_post}} \
|
|
|
2d4952 |
%{__arch_install_post} \
|
|
|
2d4952 |
%{__os_install_post} \
|
|
|
2d4952 |
$RPM_BUILD_ROOT%{_bindir}/fipshmac -d $RPM_BUILD_ROOT%{_libdir}/fipscheck $RPM_BUILD_ROOT%{_bindir}/fipscheck $RPM_BUILD_ROOT%{_libdir}/libfipscheck.so.1.2.1 \
|
|
|
2d4952 |
ln -s libfipscheck.so.1.2.1.hmac $RPM_BUILD_ROOT%{_libdir}/fipscheck/libfipscheck.so.1.hmac \
|
|
|
2d4952 |
%{nil}
|
|
|
2d4952 |
|
|
|
2d4952 |
%install
|
|
|
2d4952 |
rm -rf $RPM_BUILD_ROOT
|
|
|
2d4952 |
|
|
|
2d4952 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
2d4952 |
|
|
|
2d4952 |
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
|
|
2d4952 |
|
|
|
2d4952 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/fipscheck
|
|
|
2d4952 |
|
|
|
2d4952 |
%clean
|
|
|
2d4952 |
rm -rf $RPM_BUILD_ROOT
|
|
|
2d4952 |
|
|
|
2d4952 |
%post lib -p /sbin/ldconfig
|
|
|
2d4952 |
|
|
|
2d4952 |
%postun lib -p /sbin/ldconfig
|
|
|
2d4952 |
|
|
|
2d4952 |
%files
|
|
|
2d4952 |
%defattr(-,root,root,-)
|
|
|
2d4952 |
%doc ChangeLog COPYING README AUTHORS
|
|
|
2d4952 |
%{_bindir}/fipscheck
|
|
|
2d4952 |
%{_bindir}/fipshmac
|
|
|
2d4952 |
%{_libdir}/fipscheck/fipscheck.hmac
|
|
|
2d4952 |
%{_mandir}/man8/*
|
|
|
2d4952 |
|
|
|
2d4952 |
%files lib
|
|
|
2d4952 |
%defattr(-,root,root,-)
|
|
|
2d4952 |
%{_libdir}/libfipscheck.so.*
|
|
|
2d4952 |
%dir %{_libdir}/fipscheck
|
|
|
2d4952 |
%{_libdir}/fipscheck/libfipscheck.so.*.hmac
|
|
|
2d4952 |
|
|
|
2d4952 |
%files devel
|
|
|
2d4952 |
%defattr(-,root,root,-)
|
|
|
2d4952 |
%{_includedir}/fipscheck.h
|
|
|
2d4952 |
%{_libdir}/libfipscheck.so
|
|
|
2d4952 |
%{_mandir}/man3/*
|
|
|
2d4952 |
|
|
|
2d4952 |
%changelog
|
|
|
2d4952 |
* Tue Sep 10 2013 Tomáš Mráz - 1.4.1-1
|
|
|
2d4952 |
- fix inverted condition in FIPSCHECK_verify_ex()
|
|
|
2d4952 |
|
|
|
2d4952 |
* Fri Sep 6 2013 Tomáš Mráz - 1.4.0-1
|
|
|
2d4952 |
- added new API calls to support setting hmac suffix
|
|
|
2d4952 |
|
|
|
2d4952 |
* Mon Apr 16 2012 Tomas Mraz - 1.3.1-1
|
|
|
2d4952 |
- manual pages added by Paul Wouters
|
|
|
2d4952 |
|
|
|
2d4952 |
* Tue Sep 7 2010 Tomas Mraz - 1.3.0-1
|
|
|
2d4952 |
- look up the hmac files in the _libdir/fipscheck first
|
|
|
2d4952 |
|
|
|
2d4952 |
* Tue May 26 2009 Tomas Mraz - 1.2.0-1
|
|
|
2d4952 |
- add lib subpackage to avoid multilib on the base package
|
|
|
2d4952 |
- add ability to compute hmacs on multiple files at once
|
|
|
2d4952 |
- improved debugging with FIPSCHECK_DEBUG
|
|
|
2d4952 |
|
|
|
2d4952 |
* Thu Mar 19 2009 Tomas Mraz - 1.1.1-1
|
|
|
2d4952 |
- move binaries and libraries to /usr
|
|
|
2d4952 |
|
|
|
2d4952 |
* Wed Mar 18 2009 Tomas Mraz - 1.1.0-1
|
|
|
2d4952 |
- hmac check itself as required by FIPS
|
|
|
2d4952 |
|
|
|
2d4952 |
* Mon Feb 9 2009 Tomas Mraz - 1.0.4-1
|
|
|
2d4952 |
- add some docs to the README, require current openssl in Fedora
|
|
|
2d4952 |
|
|
|
2d4952 |
* Fri Oct 24 2008 Tomas Mraz - 1.0.3-1
|
|
|
2d4952 |
- use OpenSSL in FIPS mode to do the HMAC checksum instead of NSS
|
|
|
2d4952 |
|
|
|
2d4952 |
* Tue Sep 9 2008 Tomas Mraz - 1.0.2-1
|
|
|
2d4952 |
- fix test for prelink
|
|
|
2d4952 |
|
|
|
2d4952 |
* Mon Sep 8 2008 Tomas Mraz - 1.0.1-1
|
|
|
2d4952 |
- put binaries in /bin and libraries in /lib as fipscheck
|
|
|
2d4952 |
will be used by modules in /lib
|
|
|
2d4952 |
|
|
|
2d4952 |
* Mon Sep 8 2008 Tomas Mraz - 1.0.0-2
|
|
|
2d4952 |
- minor fixes for package review
|
|
|
2d4952 |
|
|
|
2d4952 |
* Wed Sep 3 2008 Tomas Mraz - 1.0.0-1
|
|
|
2d4952 |
- Initial spec file
|