1.5, updates for bootstrapping
This commit is contained in:
parent
eeac9f2aed
commit
631781e5b2
@ -1,26 +1,21 @@
|
|||||||
# For cases where the soname requires a bump we need to define with_compat,
|
# If the soname gets bumped we need to ship a compat library to be able
|
||||||
# update the package into the side-tag, update RPM (rpm-sign) into side-tag,
|
# to bootstrap and rebuild rpm else we end up with chicken and egg problem.
|
||||||
# _then_ undefine with_compat and rebuild the package into the side-tag. This
|
%global bootstrap 1
|
||||||
# is required to workaround the chiken-egg situation with the rpm-sign update.
|
|
||||||
# The compat pkg must not make the compose, it's only a buildrequirement for
|
|
||||||
# rpm-sign in a soname bump.
|
|
||||||
%bcond_with compat
|
|
||||||
|
|
||||||
|
%if 0%{bootstrap}
|
||||||
%if %{with compat}
|
|
||||||
%global compat_soversion 3
|
%global compat_soversion 3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: ima-evm-utils
|
Name: ima-evm-utils
|
||||||
Version: 1.4
|
Version: 1.5
|
||||||
Release: 7%{?dist}
|
Release: 0.1%{?dist}
|
||||||
Summary: IMA/EVM support utilities
|
Summary: IMA/EVM support utilities
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Url: http://linux-ima.sourceforge.net/
|
Url: http://linux-ima.sourceforge.net/
|
||||||
Source0: http://sourceforge.net/projects/linux-ima/files/ima-evm-utils/%{name}-%{version}.tar.gz
|
Source0: https://github.com/mimizohar/ima-evm-utils/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
%if 0%{bootstrap}
|
||||||
# compat source and patches
|
# compat source and patches
|
||||||
%if %{with compat}
|
|
||||||
Source10: ima-evm-utils-1.4.tar.gz
|
Source10: ima-evm-utils-1.4.tar.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -50,31 +45,25 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
This package provides the header files for %{name}
|
This package provides the header files for %{name}
|
||||||
|
|
||||||
%if %{with compat}
|
|
||||||
%package -n %{name}%{compat_soversion}
|
|
||||||
Summary: Compatibility package of %{name}
|
|
||||||
|
|
||||||
%description -n %{name}%{compat_soversion}
|
|
||||||
This package provides the libimaevm.so.%{compat_soversion} relative to %{name}-1.3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%if %{with compat}
|
%if 0%{bootstrap}
|
||||||
mkdir compat/
|
mkdir compat/
|
||||||
tar -zxf %{SOURCE10} --strip-components=1 -C compat/
|
pushd compat/
|
||||||
|
tar -zxf %{SOURCE10} --strip-components=1
|
||||||
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
%configure --disable-static
|
%configure --disable-static --disable-engine
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%if %{with compat}
|
%if 0%{bootstrap}
|
||||||
pushd compat/
|
pushd compat/
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
%configure --disable-static
|
%configure --disable-static --disable-engine
|
||||||
%make_build
|
%make_build
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
@ -83,7 +72,7 @@ popd
|
|||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f -name "*.la" -delete
|
find %{buildroot} -type f -name "*.la" -delete
|
||||||
|
|
||||||
%if %{with compat}
|
%if 0%{bootstrap}
|
||||||
pushd compat/src/.libs/
|
pushd compat/src/.libs/
|
||||||
install -p libimaevm.so.%{compat_soversion}.0.0 %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}.0.0
|
install -p libimaevm.so.%{compat_soversion}.0.0 %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}.0.0
|
||||||
ln -s -f %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}.0.0 %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}
|
ln -s -f %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}.0.0 %{buildroot}%{_libdir}/libimaevm.so.%{compat_soversion}
|
||||||
@ -97,21 +86,25 @@ popd
|
|||||||
%doc NEWS README AUTHORS
|
%doc NEWS README AUTHORS
|
||||||
%{_bindir}/evmctl
|
%{_bindir}/evmctl
|
||||||
# if you need to bump the soname version, coordinate with dependent packages
|
# if you need to bump the soname version, coordinate with dependent packages
|
||||||
%{_libdir}/libimaevm.so.3*
|
%{_libdir}/libimaevm.so.4*
|
||||||
%{_mandir}/man1/evmctl*
|
%{_mandir}/man1/evmctl*
|
||||||
|
%if 0%{bootstrap}
|
||||||
|
%{_libdir}/libimaevm.so.%{compat_soversion}
|
||||||
|
%{_libdir}/libimaevm.so.%{compat_soversion}.0.0
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_pkgdocdir}/*.sh
|
%{_pkgdocdir}/*.sh
|
||||||
%{_includedir}/imaevm.h
|
%{_includedir}/imaevm.h
|
||||||
%{_libdir}/libimaevm.so
|
%{_libdir}/libimaevm.so
|
||||||
|
|
||||||
%if %{with compat}
|
|
||||||
%files -n %{name}%{compat_soversion}
|
|
||||||
%{_libdir}/libimaevm.so.%{compat_soversion}
|
|
||||||
%{_libdir}/libimaevm.so.%{compat_soversion}.0.0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 07 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 1.5-0.1
|
||||||
|
- Update to 1.5
|
||||||
|
- Streamline bootstrap process a little
|
||||||
|
- Bootstrap mode
|
||||||
|
- Update download URL
|
||||||
|
|
||||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-7
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
1
sources
1
sources
@ -1 +1,2 @@
|
|||||||
SHA512 (ima-evm-utils-1.4.tar.gz) = 2fdf41470d88608162a084c4877ba17d531941b744bcb44dd4913e48ab2c2d131e0af3e3ead74c18748a5d46aced51213ebd7c13a5ee19050c28d54a26c011a3
|
SHA512 (ima-evm-utils-1.4.tar.gz) = 2fdf41470d88608162a084c4877ba17d531941b744bcb44dd4913e48ab2c2d131e0af3e3ead74c18748a5d46aced51213ebd7c13a5ee19050c28d54a26c011a3
|
||||||
|
SHA512 (ima-evm-utils-1.5.tar.gz) = a1f0f2441dd1c41044f1b9a2151c53a02ed539dc1317950c4f8d72ec6340b2ac464bd572e6b0971bc2fe5dcc1842013f5698fe1bf2de92524ae0891c24daa417
|
||||||
|
Loading…
Reference in New Issue
Block a user