Blame SPECS/fipscheck.spec

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