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