|
|
96bd04 |
%bcond_with compat
|
|
|
96bd04 |
|
|
|
96bd04 |
# For cases where the soname requires a bump we need to define with_compat,
|
|
|
96bd04 |
# update the package into the side-tag, update RPM (rpm-sign) into side-tag,
|
|
|
96bd04 |
# _then_ undefine with_compat and rebuild the package into the side-tag. This
|
|
|
96bd04 |
# is required to workaround the chiken-egg situation with the rpm-sign update.
|
|
|
96bd04 |
# The compat pkg must not make the compose, it's only a buildrequirement for
|
|
|
96bd04 |
# rpm-sign in a soname bump.
|
|
|
96bd04 |
%if ! %{with compat}
|
|
|
96bd04 |
%undefine with_compat
|
|
|
96bd04 |
%endif
|
|
|
96bd04 |
|
|
|
96bd04 |
%if %{with compat}
|
|
|
96bd04 |
%global compat_soversion 2
|
|
|
96bd04 |
%endif
|
|
|
96bd04 |
|
|
|
96bd04 |
Name: ima-evm-utils
|
|
|
96bd04 |
Version: 1.4
|
|
|
96bd04 |
Release: 4%{?dist}
|
|
|
96bd04 |
Summary: IMA/EVM support utilities
|
|
|
96bd04 |
License: GPLv2
|
|
|
96bd04 |
Url: http://linux-ima.sourceforge.net/
|
|
|
96bd04 |
Source: http://sourceforge.net/projects/linux-ima/files/ima-evm-utils/%{name}-%{version}.tar.gz
|
|
|
96bd04 |
|
|
|
96bd04 |
# compat source and patches
|
|
|
96bd04 |
Source10: ima-evm-utils-1.3.2.tar.gz
|
|
|
96bd04 |
Patch10: 0001-evmctl-fix-memory-leak-in-get_password.patch
|
|
|
96bd04 |
Patch11: 0001-libimaevm-make-SHA-256-the-default-hash-algorithm.patch
|
|
|
96bd04 |
|
|
|
96bd04 |
BuildRequires: asciidoc
|
|
|
96bd04 |
BuildRequires: autoconf
|
|
|
96bd04 |
BuildRequires: automake
|
|
|
96bd04 |
BuildRequires: gcc
|
|
|
96bd04 |
BuildRequires: keyutils-libs-devel
|
|
|
96bd04 |
BuildRequires: libtool
|
|
|
96bd04 |
BuildRequires: libxslt
|
|
|
96bd04 |
BuildRequires: make
|
|
|
96bd04 |
BuildRequires: openssl-devel
|
|
|
96bd04 |
BuildRequires: tpm2-tss-devel
|
|
|
96bd04 |
|
|
|
96bd04 |
%description
|
|
|
96bd04 |
The Trusted Computing Group(TCG) run-time Integrity Measurement Architecture
|
|
|
96bd04 |
(IMA) maintains a list of hash values of executables and other sensitive
|
|
|
96bd04 |
system files, as they are read or executed. These are stored in the file
|
|
|
96bd04 |
systems extended attributes. The Extended Verification Module (EVM) prevents
|
|
|
96bd04 |
unauthorized changes to these extended attributes on the file system.
|
|
|
96bd04 |
ima-evm-utils is used to prepare the file system for these extended attributes.
|
|
|
96bd04 |
|
|
|
96bd04 |
%package devel
|
|
|
96bd04 |
Summary: Development files for %{name}
|
|
|
96bd04 |
Requires: %{name} = %{version}-%{release}
|
|
|
96bd04 |
|
|
|
96bd04 |
%description devel
|
|
|
96bd04 |
This package provides the header files for %{name}
|
|
|
96bd04 |
|
|
|
96bd04 |
%if %{with compat}
|
|
|
96bd04 |
%package -n %{name}%{compat_soversion}
|
|
|
96bd04 |
Summary: Compatibility package of %{name}
|
|
|
96bd04 |
|
|
|
96bd04 |
%description -n %{name}%{compat_soversion}
|
|
|
96bd04 |
This package provides the libimaevm.so.%{compat_soversion} relative to %{name}-1.3
|
|
|
96bd04 |
%endif
|
|
|
96bd04 |
|
|
|
96bd04 |
%prep
|
|
|
96bd04 |
%setup -q
|
|
|
96bd04 |
|
|
|
96bd04 |
%if %{with compat}
|
|
|
96bd04 |
mkdir compat/
|
|
|
96bd04 |
tar -zxf %{SOURCE10} --strip-components=1 -C compat/
|
|
|
96bd04 |
cd compat/
|
|
|
96bd04 |
%patch10 -p1
|
|
|
96bd04 |
%patch11 -p1
|
|
|
96bd04 |
%endif
|
|
|
96bd04 |
|
|
|
96bd04 |
%build
|
|
|
96bd04 |
autoreconf -vif
|
|
|
96bd04 |
%configure --disable-static
|
|
|
96bd04 |
%make_build
|
|
|
96bd04 |
|
|
|
96bd04 |
%if %{with compat}
|
|
|
96bd04 |
pushd compat/
|
|
|
96bd04 |
autoreconf -vif
|
|
|
96bd04 |
%configure --disable-static
|
|
|
96bd04 |
%make_build
|
|
|
96bd04 |
popd
|
|
|
96bd04 |
%endif
|
|
|
96bd04 |
|
|
|
96bd04 |
%install
|
|
|
96bd04 |
%make_install
|
|
|
96bd04 |
find %{buildroot} -type f -name "*.la" -print -delete
|
|
|
96bd04 |
|
|
|
96bd04 |
%if %{with compat}
|
|
|
96bd04 |
pushd compat/src/.libs/
|
|
|
96bd04 |
install -p libimaevm.so.%{compat_soversion}.0.0 %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}.0.0
|
|
|
96bd04 |
ln -s -f %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}.0.0 %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}
|
|
|
96bd04 |
popd
|
|
|
96bd04 |
%endif
|
|
|
96bd04 |
|
|
|
96bd04 |
%ldconfig_scriptlets
|
|
|
96bd04 |
|
|
|
96bd04 |
%files
|
|
|
96bd04 |
%license COPYING
|
|
|
96bd04 |
%doc NEWS README AUTHORS
|
|
|
96bd04 |
%{_bindir}/evmctl
|
|
|
96bd04 |
# if you need to bump the soname version, coordinate with dependent packages
|
|
|
96bd04 |
%{_libdir}/libimaevm.so.3*
|
|
|
96bd04 |
%{_mandir}/man1/evmctl*
|
|
|
96bd04 |
|
|
|
96bd04 |
%files devel
|
|
|
96bd04 |
%{_pkgdocdir}/*.sh
|
|
|
96bd04 |
%{_includedir}/imaevm.h
|
|
|
96bd04 |
%{_libdir}/libimaevm.so
|
|
|
96bd04 |
|
|
|
96bd04 |
%if %{with compat}
|
|
|
96bd04 |
%files -n %{name}%{compat_soversion}
|
|
|
96bd04 |
%{_libdir}/libimaevm.so.%{compat_soversion}
|
|
|
96bd04 |
%{_libdir}/libimaevm.so.%{compat_soversion}.0.0
|
|
|
96bd04 |
%endif
|
|
|
96bd04 |
|
|
|
96bd04 |
%changelog
|
|
|
96bd04 |
* Mon Dec 13 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.4-4
|
|
|
96bd04 |
- Fix compat bcond_with value check.
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Dec 10 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.4-3
|
|
|
96bd04 |
- Remove compat subpkg from compose (rhbz#2026028)
|
|
|
96bd04 |
|
|
|
96bd04 |
* Tue Dec 07 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.4-2
|
|
|
96bd04 |
- Add compat subpkg for helping building dependencies (rhbz#2026028)
|
|
|
96bd04 |
|
|
|
96bd04 |
* Thu Dec 02 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.4-1
|
|
|
96bd04 |
- Modify some pieces to get closer to Fedora's specfile
|
|
|
96bd04 |
- Remove patch handling memory leak: solved in the rebase
|
|
|
96bd04 |
- Remove patch handling SHA-256 default hash: solved in the rebase
|
|
|
96bd04 |
- Rebase to upstream release v1.4 (rhbz#2026028)
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Aug 20 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-9
|
|
|
96bd04 |
- Use upstream accepted patch for the memory leak
|
|
|
96bd04 |
- Make SHA-256 the default hash algorithm (rhbz#1934949)
|
|
|
96bd04 |
|
|
|
96bd04 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.2-6
|
|
|
96bd04 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
96bd04 |
Related: rhbz#1991688
|
|
|
96bd04 |
|
|
|
96bd04 |
* Thu Jul 08 2021 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-5
|
|
|
96bd04 |
- Add patch fixing memory leak (rhbz#1938742)
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.2-4
|
|
|
96bd04 |
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
96bd04 |
Related: rhbz#1971065
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.2-3
|
|
|
96bd04 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
96bd04 |
|
|
|
96bd04 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Oct 28 2020 Bruno Meneguele <bmeneg@redhat.com> - 1.3.2-1
|
|
|
96bd04 |
- Rebase to new upstream v1.3.2 minor release
|
|
|
96bd04 |
|
|
|
96bd04 |
* Tue Aug 11 2020 Bruno Meneguele <bmeneg@redhat.com> - 1.3.1-1
|
|
|
96bd04 |
- Rebase to new upstream v1.3.1 minor release
|
|
|
96bd04 |
|
|
|
96bd04 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Sun Jul 26 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3-2
|
|
|
96bd04 |
- Fix devel deps
|
|
|
96bd04 |
|
|
|
96bd04 |
* Sun Jul 26 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.3-1
|
|
|
96bd04 |
- Update to 1.3
|
|
|
96bd04 |
- Use tpm2-tss instead of tss2
|
|
|
96bd04 |
- Minor spec cleanups
|
|
|
96bd04 |
|
|
|
96bd04 |
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 1.2.1-4
|
|
|
96bd04 |
- Use make macros
|
|
|
96bd04 |
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Jul 31 2019 Bruno E. O. Meneguele <bmeneg@redhat.com> - 1.2.1-2
|
|
|
96bd04 |
- Add pull request to correct lib soname version, wich was bumped to 1.0.0
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Jul 31 2019 Bruno E. O. Meneguele <bmeneg@redhat.com> - 1.2.1-1
|
|
|
96bd04 |
- Rebase to upstream v1.2.1
|
|
|
96bd04 |
- Remove both patches that were already solved in upstream version
|
|
|
96bd04 |
- Add runtime dependency of tss2 to retrieve PCR bank data from TPM2.0
|
|
|
96bd04 |
|
|
|
96bd04 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-6
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Jul 20 2018 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.1-4
|
|
|
96bd04 |
- Add patch to remove dependency from libattr-devel package
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Mar 02 2018 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.1-2
|
|
|
96bd04 |
- Remove libtool files
|
|
|
96bd04 |
- Run ldconfig scriptlets after un/installing
|
|
|
96bd04 |
- Add -devel subpackage to handle include files and examples
|
|
|
96bd04 |
- Disable any static file in the package
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Feb 16 2018 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.1-1
|
|
|
96bd04 |
- New upstream release
|
|
|
96bd04 |
- Support for OpenSSL 1.1 was added directly to the source code in upstream,
|
|
|
96bd04 |
thus removing specific patch for it
|
|
|
96bd04 |
- Docbook xsl stylesheet updated to a local path
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0-4
|
|
|
96bd04 |
- Switch to %%ldconfig_scriptlets
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Dec 01 2017 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.0-3
|
|
|
96bd04 |
- Add OpenSSL 1.1 API support for the package, avoiding the need of
|
|
|
96bd04 |
compat-openssl10-devel package
|
|
|
96bd04 |
|
|
|
96bd04 |
* Mon Nov 20 2017 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.0-2
|
|
|
96bd04 |
- Adjusted docbook xsl path to match the correct stylesheet
|
|
|
96bd04 |
- Remove only *.la files, considering there aren't any *.a files
|
|
|
96bd04 |
|
|
|
96bd04 |
* Tue Sep 05 2017 Bruno E. O. Meneguele <brdeoliv@redhat.com> - 1.0-1
|
|
|
96bd04 |
- New upstream release
|
|
|
96bd04 |
- Add OpenSSL 1.0 compatibility package, due to issues with OpenSSL 1.1
|
|
|
96bd04 |
- Remove libtool files
|
|
|
96bd04 |
- Run ldconfig after un/installation to update *.so files
|
|
|
96bd04 |
- Add -devel subpackage to handle include files and examples
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-7
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-6
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Tue Jan 26 2016 Lubomir Rintel <lkundrak@v3.sk> - 0.9-3
|
|
|
96bd04 |
- Fix FTBFS
|
|
|
96bd04 |
|
|
|
96bd04 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Fri Oct 31 2014 Avesh Agarwal <avagarwa@redhat.com> - 0.9-1
|
|
|
96bd04 |
- New upstream release
|
|
|
96bd04 |
- Applied a patch to fix man page issues.
|
|
|
96bd04 |
- Updated spec file
|
|
|
96bd04 |
|
|
|
96bd04 |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
|
|
|
96bd04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
96bd04 |
|
|
|
96bd04 |
* Tue Aug 27 2013 Vivek Goyal <vgoyal@redhat.com> - 0.6-1
|
|
|
96bd04 |
- Initial package
|