Blame SPECS/ima-evm-utils.spec

83eb54
%global compat_soversion 0
83eb54
83639f
Name:    ima-evm-utils
83639f
Version: 1.3.2
83eb54
Release: 12%{?dist}
83639f
Summary: IMA/EVM support utilities
83639f
License: GPLv2
83639f
Url:     http://linux-ima.sourceforge.net/
83639f
Source:  http://sourceforge.net/projects/linux-ima/files/ima-evm-utils/%{name}-%{version}.tar.gz
83eb54
Source10: ima-evm-utils-1.1.tar.gz
83639f
83639f
Patch0: 0001-Fix-sign_hash-not-observing-the-hashalgo-argument.patch
83eb54
# compat patches
83eb54
Patch1: docbook-xsl-path.patch
83eb54
Patch2: covscan-memory-leaks.patch
83eb54
Patch3: annocheck-opt-flag.patch
83eb54
Patch4: libimaevm-keydesc-import.patch
83639f
83639f
BuildRequires: asciidoc
83639f
BuildRequires: autoconf
83639f
BuildRequires: automake
83639f
BuildRequires: gcc
83639f
BuildRequires: keyutils-libs-devel
83639f
BuildRequires: libtool
83639f
BuildRequires: libxslt
83639f
BuildRequires: openssl-devel
83639f
BuildRequires: tpm2-tss-devel
83eb54
# compat requirement
83eb54
BuildRequires: libattr-devel
83639f
83eb54
#Requires: tpm2-tss
83639f
83639f
%description
83639f
The Trusted Computing Group(TCG) run-time Integrity Measurement Architecture
83639f
(IMA) maintains a list of hash values of executables and other sensitive
83639f
system files, as they are read or executed. These are stored in the file
83639f
systems extended attributes. The Extended Verification Module (EVM) prevents
83639f
unauthorized changes to these extended attributes on the file system.
83639f
ima-evm-utils is used to prepare the file system for these extended attributes.
83639f
83639f
%package devel
83639f
Summary: Development files for %{name}
83639f
Requires: %{name} = %{version}-%{release}
83639f
83639f
%description devel
83639f
This package provides the header files for %{name}
83639f
83eb54
%package -n %{name}%{compat_soversion}
83eb54
Summary: Compatibility package of %{name}
83eb54
83eb54
%description -n %{name}%{compat_soversion}
83eb54
This package provides the libimaevm.so.%{compat_soversion} relative to %{name}-1.1
83eb54
83639f
%prep
83eb54
%setup -q
83eb54
%patch0 -p1
83eb54
mkdir compat/
83eb54
tar -zxf %{SOURCE10} --strip-components=1 -C compat/
83eb54
cd compat/
83eb54
%patch1 -p1
83eb54
%patch2 -p1
83eb54
%patch3 -p1
83eb54
%patch4 -p1
83639f
83639f
%build
83eb54
# build compat version of the package
83eb54
pushd compat/
83eb54
autoreconf -vif
83eb54
%configure --disable-static
83eb54
%make_build
83eb54
popd
83eb54
83639f
autoreconf -vif
83639f
%configure --disable-static
83639f
%make_build
83639f
83639f
%install
83639f
%make_install
83639f
find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete
83eb54
# install compat libs
83eb54
pushd compat/src/.libs/
83eb54
install -p libimaevm.so.%{compat_soversion}.0.0 %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}.0.0
83eb54
ln -s -f %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}.0.0 %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}
83eb54
popd
83639f
83639f
%ldconfig_scriptlets
83639f
83639f
%files
83639f
%license COPYING
83639f
%doc NEWS README AUTHORS
83639f
%{_bindir}/*
83639f
# if you need to bump the soname version, coordinate with dependent packages
83639f
%{_libdir}/libimaevm.so.2
83639f
%{_libdir}/libimaevm.so.2.0.0
83639f
%{_mandir}/man1/*
83639f
83639f
%files devel
83639f
%{_pkgdocdir}/*.sh
83639f
%{_includedir}/*
83639f
%{_libdir}/libimaevm.so
83639f
83eb54
%files -n %{name}%{compat_soversion}
83eb54
%{_libdir}/libimaevm.so.%{compat_soversion}
83eb54
%{_libdir}/libimaevm.so.%{compat_soversion}.0.0
83eb54
83639f
%changelog
83eb54
* Thu Feb 18 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-12
83eb54
- Add compat subpackage for keeping the API stability in userspace
83eb54
83639f
* Mon Jan 25 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-11
83639f
- Bump release number for yet another rebuild
83639f
83639f
* Mon Jan 25 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-10
83639f
- Add patch for fixing hash algorithm used through libimaevm
83639f
83639f
* Fri Jan 15 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-9
83639f
- Add tpm2-tss as a runtime dependency
83639f
83639f
* Sun Jan 10 2021 Michal Domonkos <mdomonko@redhat.com> - 1.3.2-8
83639f
- Bump release number for yet another couple of rebuilds
83639f
83639f
* Wed Jan 06 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-4
83639f
- Bump release number for yet another build for solving wrong target usage
83639f
83639f
* Wed Jan 06 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-3
83639f
- Bump release number for another build, handling build issues
83639f
83639f
* Tue Dec 01 2020 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-2
83639f
- Bump release number for forcing a new build
83639f
83639f
* Mon Nov 09 2020 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-1
83639f
- Rebase to upstream v1.3.2 version
83639f
- Sync specfile with Fedora's version
83639f
83639f
* Thu Mar 28 2019 Bruno E. O. Meneguele <bmeneg@redhat.com> - 1.1-5
83639f
- Add patch to correctly handle key description on keyring during importation
83639f
83639f
* Mon Oct 29 2018 Bruno E. O. Meneguele <bmeneg@redhat.com> - 1.1-4
83639f
- Solve a single memory leak not handled by the last patch
83639f
83639f
* Thu Oct 25 2018 Bruno E. O. Meneguele <bmeneg@redhat.com> - 1.1-3
83639f
- Solve memory leaks pointed by covscan tool
83639f
- Add optimization flag O2 during compilation to satisfy annocheck tool
83639f
83639f
* Fri Mar 02 2018 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.1-2
83639f
- Remove libtool files
83639f
- Run ldconfig scriptlets after un/installing
83639f
- Add -devel subpackage to handle include files and examples
83639f
- Disable any static file in the package
83639f
83639f
* Fri Feb 16 2018 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.1-1
83639f
- New upstream release
83639f
- Support for OpenSSL 1.1 was added directly to the source code in upstream,
83639f
  thus removing specific patch for it
83639f
- Docbook xsl stylesheet updated to a local path
83639f
83639f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
83639f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
83639f
83639f
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0-4
83639f
- Switch to %%ldconfig_scriptlets
83639f
83639f
* Fri Dec 01 2017 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.0-3
83639f
- Add OpenSSL 1.1 API support for the package, avoiding the need of
83639f
  compat-openssl10-devel package
83639f
83639f
* Mon Nov 20 2017 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.0-2
83639f
- Adjusted docbook xsl path to match the correct stylesheet
83639f
- Remove only *.la files, considering there aren't any *.a files
83639f
83639f
* Tue Sep 05 2017 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.0-1
83639f
- New upstream release
83639f
- Add OpenSSL 1.0 compatibility package, due to issues with OpenSSL 1.1
83639f
- Remove libtool files
83639f
- Run ldconfig after un/installation to update *.so files
83639f
- Add -devel subpackage to handle include files and examples
83639f
83639f
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-7
83639f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
83639f
83639f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-6
83639f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
83639f
83639f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
83639f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
83639f
83639f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
83639f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
83639f
83639f
* Tue Jan 26 2016 Lubomir Rintel <lkundrak@v3.sk> - 0.9-3
83639f
- Fix FTBFS
83639f
83639f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
83639f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
83639f
83639f
* Fri Oct 31 2014 Avesh Agarwal <avagarwa@redhat.com> - 0.9-1
83639f
- New upstream release
83639f
- Applied a patch to fix man page issues.
83639f
- Updated spec file
83639f
83639f
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
83639f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
83639f
83639f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
83639f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
83639f
83639f
* Tue Aug 27 2013 Vivek Goyal <vgoyal@redhat.com> - 0.6-1
83639f
- Initial package