2014-01-20 10:39:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package fipscheck
|
|
|
|
#
|
2019-01-07 17:55:49 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
2018-10-09 13:10:18 +02:00
|
|
|
Version: 1.5.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++
|
2018-10-09 13:10:18 +02:00
|
|
|
URL: https://releases.pagure.org/%{name}/
|
|
|
|
# Source0 is a local file because current version is 1.5.0,
|
|
|
|
# but the latest in the official release folder is 1.4.1
|
|
|
|
Source0: https://releases.pagure.org/fipscheck/%{name}-%{version}.tar.bz2
|
2014-06-02 12:01:19 +02:00
|
|
|
Source1: baselibs.conf
|
2017-06-12 16:36:49 +02:00
|
|
|
Patch0: openssl-1_1-port.patch
|
2019-01-07 17:55:49 +01:00
|
|
|
Patch1: fipscheck-dont_generate_manpages.patch
|
2018-10-09 13:10:18 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2019-01-07 17:55:49 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-10-09 13:10:18 +02:00
|
|
|
BuildRequires: libopenssl-1_0_0-devel
|
2019-01-07 17:55:49 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
%endif
|
2018-10-09 13:10:18 +02:00
|
|
|
BuildRequires: libtool
|
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
|
2017-06-13 10:22:45 +02:00
|
|
|
if pkg-config --atleast-version=1.1 openssl; then
|
|
|
|
%patch0 -p1
|
|
|
|
fi
|
2019-01-07 17:55:49 +01:00
|
|
|
%patch1 -p1
|
2014-01-20 10:39:45 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static --libdir=/%{_lib}
|
|
|
|
|
|
|
|
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 \
|
|
|
|
%{buildroot}%{_bindir}/fipshmac %{buildroot}/%{_lib}/libfipscheck.so.%{soversion} \
|
|
|
|
ln -s .libfipscheck.so.%{soversion}.hmac %{buildroot}/%{_lib}/.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
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
ln -s /%{_lib}/libfipscheck.so.%{soversion} %{buildroot}%{_libdir}/libfipscheck.so
|
|
|
|
rm %{buildroot}/%{_lib}/libfipscheck.so
|
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}
|
2014-01-20 10:39:45 +01:00
|
|
|
/%{_lib}/libfipscheck.so.*
|
|
|
|
/%{_lib}/.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
|