f0368f
%global __brp_check_rpaths %{nil}
f0368f
f0368f
# RHEL's RPM toolchain doesn't like the compressed DWARF data generated by the
f0368f
# Go toolchain.
f0368f
%global _dwz_low_mem_die_limit 0
f0368f
%global _find_debuginfo_dwz_opts %{nil}
f0368f
f0368f
Name:          toolbox
f0368f
Version:       0.0.99.3
f0368f
f0368f
%global goipath github.com/containers/%{name}
f0368f
%gometa
f0368f
d51d05
Release:       5%{?dist}
f0368f
Summary:       Tool for containerized command line environments on Linux
f0368f
f0368f
License:       ASL 2.0
f0368f
URL:           https://containertoolbx.org/
f0368f
f0368f
# https://github.com/containers/%%{name}/releases/download/%%{version}/%%{name}-%%{version}.tar.xz
f0368f
# A vendored tarball was created from the upstream tarball:
f0368f
# $ cd src
f0368f
# $ go mod vendor
f0368f
Source0:       %{name}-%{version}-vendored.tar.xz
f0368f
Source1:       %{name}.conf
f0368f
f0368f
# RHEL specific
f0368f
Patch100:      toolbox-Make-the-build-flags-match-RHEL-s-gobuild.patch
f0368f
Patch101:      toolbox-Make-the-build-flags-match-RHEL-s-gobuild-for-PPC64.patch
f0368f
Patch102:      toolbox-Add-migration-paths-for-coreos-toolbox-users.patch
f0368f
f0368f
# https://bugzilla.redhat.com/show_bug.cgi?id=1905383
f0368f
ExcludeArch:   %{ix86}
f0368f
d51d05
BuildRequires: golang >= 1.18.4
d51d05
BuildRequires: /usr/bin/go-md2man
f0368f
BuildRequires: meson >= 0.58.0
f0368f
BuildRequires: pkgconfig(bash-completion)
f0368f
BuildRequires: systemd-rpm-macros
f0368f
f0368f
Requires:      containers-common
f0368f
Requires:      podman >= 1.4.0
f0368f
f0368f
f0368f
%description
f0368f
Toolbox is a tool for Linux operating systems, which allows the use of
f0368f
containerized command line environments. It is built on top of Podman and
f0368f
other standard container technologies from OCI.
f0368f
f0368f
f0368f
%package       tests
f0368f
Summary:       Tests for %{name}
f0368f
f0368f
Requires:      %{name}%{?_isa} = %{version}-%{release}
f0368f
Requires:      coreutils
f0368f
Requires:      gawk
f0368f
Requires:      grep
f0368f
Requires:      skopeo
f0368f
f0368f
%description   tests
f0368f
The %{name}-tests package contains system tests for %{name}.
f0368f
f0368f
f0368f
%prep
f0368f
%setup -q
f0368f
f0368f
%ifnarch ppc64
f0368f
%patch100 -p1
f0368f
%else
f0368f
%patch101 -p1
f0368f
%endif
f0368f
f0368f
%patch102 -p1
f0368f
f0368f
# %%gomkdir is absent from RHEL 8.
f0368f
GOBUILDDIR="$(pwd)/_build"
f0368f
GOSOURCEDIR="$(pwd)"
f0368f
if [[ ! -e "$GOBUILDDIR/bin" ]] ; then
f0368f
  install -m 0755 -vd "$GOBUILDDIR/bin"
f0368f
fi
f0368f
if [[ ! -e "$GOBUILDDIR/src/%{goipath}" ]] ; then
f0368f
  install -m 0755 -vd "$(dirname $GOBUILDDIR/src/%{goipath})"
f0368f
  ln -fs "$GOSOURCEDIR" "$GOBUILDDIR/src/%{goipath}"
f0368f
fi
f0368f
cd "$GOBUILDDIR/src/%{goipath}"
f0368f
f0368f
f0368f
%build
f0368f
export GO111MODULE=off
f0368f
GOBUILDDIR="$(pwd)/_build"
f0368f
export GOPATH="$GOBUILDDIR:%{gopath}"
f0368f
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
f0368f
ln -s src/cmd cmd
f0368f
ln -s src/pkg pkg
f0368f
ln -s src/vendor vendor
f0368f
f0368f
%meson \
f0368f
    --buildtype=plain \
f0368f
    -Dmigration_path_for_coreos_toolbox=true \
f0368f
    -Dprofile_dir=%{_sysconfdir}/profile.d \
f0368f
    -Dtmpfiles_dir=%{_tmpfilesdir}
f0368f
f0368f
%meson_build
f0368f
f0368f
f0368f
%install
f0368f
%meson_install
f0368f
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/containers/%{name}.conf
f0368f
f0368f
f0368f
%files
f0368f
%doc CODE-OF-CONDUCT.md NEWS README.md SECURITY.md
f0368f
%license COPYING
f0368f
%{_bindir}/%{name}
f0368f
%{_datadir}/bash-completion
f0368f
%{_mandir}/man1/%{name}.1*
f0368f
%{_mandir}/man1/%{name}-*.1*
f0368f
%config(noreplace) %{_sysconfdir}/containers/%{name}.conf
f0368f
%{_sysconfdir}/profile.d/%{name}.sh
f0368f
%{_tmpfilesdir}/%{name}.conf
f0368f
f0368f
%files tests
f0368f
%{_datadir}/%{name}
f0368f
f0368f
f0368f
%changelog
d51d05
* Tue Aug 16 2022 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.3-5
d51d05
- Rebuild for CVE-2022-1705, CVE-2022-30630, CVE-2022-30631 and CVE-2022-30632
d51d05
Resolves: #2111830
f0368f
d51d05
* Tue May 17 2022 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.3-4
d51d05
- Bump the minimum required golang version for added reassurance
d51d05
Resolves: #2060769, #2089194
d51d05
d51d05
* Mon May 16 2022 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.3-3
f0368f
- Rebuild for FIPS-mode memory leak in the Go toolchain
d51d05
Resolves: #2060769
d51d05
d51d05
* Wed May 11 2022 Jindrich Novy <jnovy@redhat.com> - 0.0.99.3-2
d51d05
- BuildRequires: /usr/bin/go-md2man
d51d05
- Related: #2061316
f0368f
f0368f
* Fri Dec 10 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.3-1
f0368f
- Update to 0.0.99.3
f0368f
- BuildRequire only systemd-rpm-macros as recommended by the Fedora packaging
f0368f
  guidelines
f0368f
- Update the Summary to match upstream
f0368f
- Update the URL to point to the website
f0368f
Resolves: #2000807
f0368f
f0368f
* Wed Sep 22 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.3-0.14.git660b6970e998
f0368f
- Suggest a way forward if coreos/toolbox was used
f0368f
Resolves: #2006802
f0368f
f0368f
* Wed Sep 22 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.3-0.13.git660b6970e998
f0368f
- Switch to using the Toolbox-specific UBI image by default
f0368f
Resolves: #2004563
f0368f
f0368f
* Thu Sep 16 2021 Oliver Gutiérrez <ogutierrez@redhat.com> - 0.0.99.3-0.12.git660b6970e998
f0368f
- Changed image for tests and tests parameters to fix gating
f0368f
  Related: #2000051
f0368f
f0368f
* Thu Sep 16 2021 Oliver Gutiérrez <ogutierrez@redhat.com> - 0.0.99.3-0.11.git660b6970e998
f0368f
- Changed image for tests and added /etc/containers dir check
f0368f
  Related: #2000051
f0368f
f0368f
* Tue Sep 14 2021 Oliver Gutiérrez <ogutierrez@redhat.com> - 0.0.99.3-0.10.git660b6970e998
f0368f
- Added ability to force test system id and version id
f0368f
  Related: #2000051
f0368f
f0368f
* Tue Sep 14 2021 Oliver Gutiérrez <ogutierrez@redhat.com> - 0.0.99.3-0.9.git660b6970e998
f0368f
- Fixed test roles and changed default image path
f0368f
  Related: #2000051
f0368f
f0368f
* Tue Sep 14 2021 Oliver Gutiérrez <ogutierrez@redhat.com> - 0.0.99.3-0.8.git660b6970e998
f0368f
- Added default container image configuration for tests
f0368f
  Related: #2000051
f0368f
f0368f
* Fri Sep 03 2021 Oliver Gutiérrez <ogutierrez@redhat.com> - 0.0.99.3-0.7.git660b6970e998
f0368f
- Added missing gating tests files and patch for tests
f0368f
  Related: #2000051
f0368f
f0368f
* Fri Sep 03 2021 Jindrich Novy <jnovy@redhat.com> - 0.0.99.3-0.6.git660b6970e998
f0368f
- re-add gating tests
f0368f
- Related: #2000051
f0368f
f0368f
* Fri Sep 03 2021 Jindrich Novy <jnovy@redhat.com> - 0.0.99.3-0.5.git660b6970e998
f0368f
- Make sosreport work by setting the HOST environment variable
f0368f
- Related: #2000051
f0368f
f0368f
* Mon Aug 30 2021 Oliver Gutiérrez <ogutierrez@redhat.com> - 0.0.99.3-0.4.git660b6970e998
f0368f
- Fixed gating tests bats version
f0368f
  Related: rhbz#1977343
f0368f
f0368f
* Tue Aug 24 2021 Oliver Gutiérrez <ogutierrez@redhat.com> - 0.0.99.3-0.3.git660b6970e998
f0368f
- Rebuilt for gating checks
f0368f
  Related: rhbz#1977343
f0368f
f0368f
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.99.3-0.2.git660b6970e998
f0368f
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f0368f
  Related: rhbz#1991688
f0368f
f0368f
* Mon Aug 02 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.3-0.1.git660b6970e998
f0368f
- Fix the build on CentOS Stream
f0368f
Related: #1970747
f0368f
f0368f
* Wed Jul 28 2021 Jindrich Novy <jnovy@redhat.com> - 0.0.99.2^1.git660b6970e998-1
f0368f
- Add support for configuration files
f0368f
- Related: #1970747
f0368f
f0368f
* Sat Jul 10 2021 Jindrich Novy <jnovy@redhat.com> - 0.0.99.2-3
f0368f
- Expose the host's entire / in the container at /run/host
f0368f
- Resolves: #1977343
f0368f
f0368f
* Mon Jul 05 2021 Jindrich Novy <jnovy@redhat.com> - 0.0.99.2-2
f0368f
- Actually apply the patch to make 'toolbox' create or fall back to a
f0368f
  container if possible
f0368f
- Support logging into a registry if necessary
f0368f
- Resolves: #1977343
f0368f
f0368f
* Fri Jul 02 2021 Jindrich Novy <jnovy@redhat.com> - 0.0.99.2-1
f0368f
- update to 0.99.2
f0368f
- Resolves: #1977343
f0368f
f0368f
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.99.1-4
f0368f
- Rebuilt for RHEL 9 BETA for openssl 3.0
f0368f
  Related: rhbz#1971065
f0368f
f0368f
* Thu Apr 29 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.1-3
f0368f
- Fix FTBFS
f0368f
Resolves: #1912983
f0368f
f0368f
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.99.1-2
f0368f
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f0368f
f0368f
* Tue Feb 23 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99.1-1
f0368f
- Update to 0.0.99.1
f0368f
f0368f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.99-2
f0368f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f0368f
f0368f
* Tue Jan 12 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.99-1
f0368f
- Update to 0.0.99
f0368f
f0368f
* Mon Jan 11 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.98.1-2
f0368f
- Harden the binary by using the same CGO_CFLAGS as on RHEL 8
f0368f
f0368f
* Thu Jan 07 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.98.1-1
f0368f
- Update to 0.0.98.1
f0368f
f0368f
* Tue Jan 05 2021 Debarshi Ray <rishi@fedoraproject.org> - 0.0.98-1
f0368f
- Update to 0.0.98
f0368f
f0368f
* Wed Nov 25 2020 Ondřej Míchal <harrymichal@seznam.cz> - 0.0.97-2
f0368f
- Move krb5-libs from -support to -experience, and update the list of packages
f0368f
  in -experience
f0368f
f0368f
* Tue Nov 03 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.97-1
f0368f
- Update to 0.0.97
f0368f
f0368f
* Thu Oct 01 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.96-1
f0368f
- Update to 0.0.96
f0368f
f0368f
* Sun Aug 30 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.95-1
f0368f
- Update to 0.0.95
f0368f
f0368f
* Mon Aug 24 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.94-1
f0368f
- Update to 0.0.94
f0368f
f0368f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.93-2
f0368f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f0368f
f0368f
* Sat Jul 25 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.93-1
f0368f
- Update to 0.0.93
f0368f
f0368f
* Fri Jul 03 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.92-1
f0368f
- Update to 0.0.92
f0368f
f0368f
* Fri Jul 03 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.91-2
f0368f
- Fix the 'toolbox --version' output
f0368f
f0368f
* Tue Jun 30 2020 Harry Míchal <harrymichal@seznam.cz> - 0.0.91-1
f0368f
- Update to 0.0.91
f0368f
f0368f
* Sat Jun 27 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.18-5
f0368f
- Remove ExclusiveArch to match Podman
f0368f
f0368f
* Wed Jun 10 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.18-4
f0368f
- Sync the "experience" packages with the current Dockerfile
f0368f
- Make "experience" Require "support"
f0368f
f0368f
* Fri Apr 03 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.18-3
f0368f
- Drop compatibility Obsoletes and Provides for fedora-toolbox
f0368f
f0368f
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.18-2
f0368f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f0368f
f0368f
* Tue Jan 14 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.0.18-1
f0368f
- Update to 0.0.18
f0368f
f0368f
* Wed Nov 20 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.17-1
f0368f
- Update to 0.0.17
f0368f
f0368f
* Tue Oct 29 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.16-1
f0368f
- Update to 0.0.16
f0368f
f0368f
* Mon Sep 30 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.15-1
f0368f
- Update to 0.0.15
f0368f
f0368f
* Wed Sep 18 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.14-1
f0368f
- Update to 0.0.14
f0368f
f0368f
* Thu Sep 05 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.13-1
f0368f
- Update to 0.0.13
f0368f
f0368f
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.12-2
f0368f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f0368f
f0368f
* Mon Jul 22 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.12-1
f0368f
- Update to 0.0.12
f0368f
f0368f
* Tue Jun 25 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.11-2
f0368f
- Require flatpak-session-helper
f0368f
f0368f
* Fri Jun 21 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.11-1
f0368f
- Update to 0.0.11
f0368f
f0368f
* Tue May 21 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.10-1
f0368f
- Update to 0.0.10
f0368f
f0368f
* Tue Apr 30 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.9-1
f0368f
- Update to 0.0.9
f0368f
f0368f
* Tue Apr 16 2019 Adam Williamson <awilliam@redhat.com> - 0.0.8-2
f0368f
- Rebuild with Meson fix for #1699099
f0368f
f0368f
* Fri Apr 12 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.8-1
f0368f
- Update to 0.0.8
f0368f
f0368f
* Thu Mar 14 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.7-1
f0368f
- Update to 0.0.7
f0368f
f0368f
* Fri Feb 22 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.0.6-1
f0368f
- Initial build after rename from fedora-toolbox