2014-01-20 10:39:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package fipscheck
|
|
|
|
#
|
2024-07-16 09:53:54 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2014-01-20 10:39:45 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-09 13:10:18 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-01-20 10:39:45 +01:00
|
|
|
#
|
|
|
|
|
2014-01-20 14:42:26 +01:00
|
|
|
|
2018-10-09 13:10:18 +02:00
|
|
|
%define lname libfipscheck1
|
|
|
|
%global soversion 1.2.1
|
|
|
|
%global somajor 1
|
2014-01-20 10:39:45 +01:00
|
|
|
Name: fipscheck
|
2022-11-02 16:00:31 +01:00
|
|
|
Version: 1.7.0
|
2014-08-12 18:09:01 +02:00
|
|
|
Release: 0
|
2015-04-13 11:59:54 +02:00
|
|
|
Summary: A library for integrity verification of FIPS validated modules
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2022-11-02 16:00:31 +01:00
|
|
|
URL: https://github.com/LairdCP/fipscheck
|
|
|
|
Source0: fipscheck-%version.tar.bz2
|
2014-06-02 12:01:19 +02:00
|
|
|
Source1: baselibs.conf
|
2024-07-16 09:53:54 +02:00
|
|
|
Patch0: fipscheck-fix_check_openssl_version.patch
|
|
|
|
Patch1: fipscheck-fix_incorrect_length_type.patch
|
2018-10-09 13:10:18 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2019-09-16 19:15:28 +02:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2014-01-21 07:57:50 +01:00
|
|
|
Requires: %{lname} = %{version}
|
2014-01-20 10:39:45 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
FIPSCheck is a library for integrity verification of FIPS validated
|
|
|
|
modules. The package also provides helper binaries for creation and
|
|
|
|
verification of the HMAC-SHA256 checksum files.
|
|
|
|
|
2018-10-09 13:10:18 +02:00
|
|
|
%package -n %{lname}
|
2014-01-20 10:39:45 +01:00
|
|
|
Summary: Library files for %{name}
|
2015-04-13 11:59:54 +02:00
|
|
|
Group: System/Libraries
|
2014-01-20 10:39:45 +01:00
|
|
|
Requires: %{_bindir}/fipscheck
|
|
|
|
|
2018-10-09 13:10:18 +02:00
|
|
|
%description -n %{lname}
|
2014-01-20 10:39:45 +01:00
|
|
|
This package contains the FIPSCheck library.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2015-04-13 11:59:54 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-01-20 10:39:45 +01:00
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains development files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-07-16 09:53:54 +02:00
|
|
|
%patch -P0 -p1
|
|
|
|
%patch -P1 -p1
|
2014-01-20 10:39:45 +01:00
|
|
|
|
|
|
|
%build
|
2020-11-20 11:15:14 +01:00
|
|
|
%configure --disable-static
|
2014-01-20 10:39:45 +01:00
|
|
|
|
|
|
|
make %{?_smp_mflags} LDFLAGS="-Wl,-z,relro"
|
|
|
|
|
|
|
|
# Add generation of HMAC checksums of the final stripped binaries
|
|
|
|
%define __spec_install_post \
|
|
|
|
%{?__debug_package:%{__debug_install_post}} \
|
|
|
|
%{__arch_install_post} \
|
2018-10-09 13:10:18 +02:00
|
|
|
%__os_install_post \
|
|
|
|
%{buildroot}%{_bindir}/fipshmac %{buildroot}%{_bindir}/fipscheck \
|
2020-11-20 11:15:14 +01:00
|
|
|
%{buildroot}%{_bindir}/fipshmac %{buildroot}/%{_libdir}/libfipscheck.so.%{soversion} \
|
|
|
|
ln -s .libfipscheck.so.%{soversion}.hmac %{buildroot}/%{_libdir}/.libfipscheck.so.%{somajor}.hmac \
|
2014-01-20 10:39:45 +01:00
|
|
|
%{nil}
|
|
|
|
|
|
|
|
%install
|
2015-04-13 11:59:54 +02:00
|
|
|
%make_install
|
2018-10-09 13:10:18 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2014-01-20 10:39:45 +01:00
|
|
|
|
2018-10-09 13:10:18 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2014-01-20 10:39:45 +01:00
|
|
|
|
|
|
|
%files
|
2018-10-09 13:10:18 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README AUTHORS
|
2014-01-20 10:39:45 +01:00
|
|
|
%{_bindir}/fipscheck
|
|
|
|
%{_bindir}/.fipscheck.hmac
|
|
|
|
%{_bindir}/fipshmac
|
|
|
|
|
2018-10-09 13:10:18 +02:00
|
|
|
%files -n %{lname}
|
2020-11-20 11:15:14 +01:00
|
|
|
%{_libdir}/libfipscheck.so.*
|
|
|
|
%{_libdir}/.libfipscheck.so.*
|
2018-10-09 13:10:18 +02:00
|
|
|
%{_mandir}/man8/*.8%{?ext_man}
|
2014-01-20 10:39:45 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/fipscheck.h
|
|
|
|
%{_libdir}/libfipscheck.so
|
2018-10-09 13:10:18 +02:00
|
|
|
%{_mandir}/man3/*.3%{?ext_man}
|
2014-01-20 10:39:45 +01:00
|
|
|
|
|
|
|
%changelog
|