File ima-evm-utils.spec of Package ima-evm-utils
#
# spec file for package ima-evm-utils
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 0
%define libname libimaevm%{sover}
Name: ima-evm-utils
Version: 1.0
Release: 0
Summary: IMA/EVM control utility
License: LGPL-2.1+
Group: System/Base
Url: http://sourceforge.net/projects/linux-ima/
Source0: http://downloads.sourceforge.net/project/linux-ima/ima-evm-utils/%{name}-%{version}.tar.gz
Patch2: ima-evm-utils-fix-docbook-xsl-directory.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: asciidoc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook-xsl-stylesheets
BuildRequires: keyutils-devel
BuildRequires: libattr-devel
BuildRequires: libtool
BuildRequires: libxslt-tools
BuildRequires: openssl-devel
BuildRequires: pkg-config
%description
This package provides the control utility for IMA/EVM (Integrity
Measurement Architecture/ Linux Extended Verification Module).
%package devel
Summary: Development files for the IMA/EVM control utility library
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: openssl-devel
%description devel
This package contains the header files and the utilities for %{name}.
%package -n %{libname}
Summary: IMA/EVM control utility libary
Group: System/Libraries
%description -n %{libname}
This package provides the shared library for IMA/EVM (Integrity
Measurement Architecture/Extended Verification Module).
%package -n evmctl
Summary: IMA/EVM signing utility
Group: System/Kernel
Provides: ima-evm-utils = %{version}
Obsoletes: ima-evm-utils < %{version}
%description -n evmctl
The evmctl utility can be used for producing and verifying digital signatures,
which are used by Linux kernel integrity subsystem (IMA/EVM). It can be also
used to import keys into the kernel keyring.
%prep
%setup -q
%if %suse_version >= 1315
%patch2 -p1
%endif
%build
NOCONFIGURE=1 ./autogen.sh
%configure --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
# Let do it by ourselves later...
rm -rf %{buildroot}%{_datadir}/doc
find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files devel
%defattr(-,root,root,-)
%doc examples/*
%{_includedir}/*
%{_libdir}/libimaevm.so
%files -n %{libname}
%defattr(-,root,root,-)
%doc README COPYING NEWS AUTHORS
%{_libdir}/libimaevm.so.*
%files -n evmctl
%defattr(-,root,root,-)
%{_bindir}/evmctl
%{_mandir}/man1/evmctl.1.gz
%changelog