Blame SPECS/fipscheck.spec

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