Blame SPECS/ima-evm-utils.spec

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