17d40d4
%global with_debug 1
91dd8b7
%global with_bundled 1
17d40d4
17d40d4
%if 0%{?with_debug}
17d40d4
%global _dwz_low_mem_die_limit 0
17d40d4
%else
17d40d4
%global debug_package   %{nil}
17d40d4
%endif
17d40d4
17d40d4
%global provider        github
17d40d4
%global provider_tld    com
17d40d4
%global project         projectatomic
17d40d4
%global repo            buildah
17d40d4
# https://github.com/projectatomic/buildah
17d40d4
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
17d40d4
%global import_path     %{provider_prefix}
4e9e753
%global commit         d1330a5c4680dd18e1d58015f94cb3530c248eb9
17d40d4
%global shortcommit    %(c=%{commit}; echo ${c:0:7})
17d40d4
91dd8b7
Name:           %{repo}
4e9e753
Version:        0.15
832249d
Release:        1.git%{shortcommit}%{?dist}
12f6192
Summary:        A command line tool used for creating OCI Images
17d40d4
License:        ASL 2.0
17d40d4
URL:            https://%{provider_prefix}
17d40d4
Source:         https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
17d40d4
4e9e753
ExclusiveArch:  x86_64 %{arm} aarch64 ppc64le s390x
17d40d4
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
17d40d4
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
06332ac
BuildRequires:  git
17d40d4
BuildRequires:  glib2-devel
4e9e753
BuildRequires:  libseccomp-devel
06332ac
BuildRequires:  ostree-devel
17d40d4
BuildRequires:  glibc-static
17d40d4
BuildRequires:  go-md2man
17d40d4
BuildRequires:  gpgme-devel
17d40d4
BuildRequires:  device-mapper-devel
17d40d4
BuildRequires:  btrfs-progs-devel
17d40d4
BuildRequires:  libassuan-devel
91dd8b7
Requires:       runc >= 1.0.0-17
0d91c04
Requires:       skopeo-containers >= 0.1.20-2
a67c527
Requires:       container-selinux
91dd8b7
Requires:       ostree
17d40d4
Provides:       %{repo} = %{version}-%{release}
17d40d4
17d40d4
%description
91dd8b7
The %{name} package provides a command line tool which can be used to
17d40d4
* create a working container from scratch
17d40d4
or
17d40d4
* create a working container from an image as a starting point
17d40d4
* mount/umount a working container's root file system for manipulation
17d40d4
* save container's root file system layer to create a new image
17d40d4
* delete a working container or an image
17d40d4
17d40d4
%prep
06332ac
%autosetup -Sgit -n %{name}-%{commit}
17d40d4
17d40d4
%build
17d40d4
mkdir _build
17d40d4
pushd _build
17d40d4
mkdir -p src/%{provider}.%{provider_tld}/%{project}
17d40d4
ln -s $(dirs +1 -l) src/%{import_path}
17d40d4
popd
17d40d4
17d40d4
mv vendor src
17d40d4
17d40d4
export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
d6d9ee5
make all GIT_COMMIT=%{shortcommit}
17d40d4
17d40d4
%install
17d40d4
export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
17d40d4
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install install.completions
17d40d4
17d40d4
#define license tag if not already defined
17d40d4
%{!?_licensedir:%global license %doc}
17d40d4
17d40d4
%files
17d40d4
%license LICENSE
17d40d4
%doc README.md
17d40d4
%{_bindir}/%{name}
91dd8b7
%{_mandir}/man1/%{name}*
17d40d4
%dir %{_datadir}/bash-completion
17d40d4
%dir %{_datadir}/bash-completion/completions
91dd8b7
%{_datadir}/bash-completion/completions/%{name}
17d40d4
17d40d4
%changelog
4e9e753
* Tue Feb 27 2018 Dan Walsh <dwalsh@redhat.com> 0.15-1
4e9e753
- Fix handling of buildah run command options
4e9e753
4e9e753
* Mon Feb 26 2018 Dan Walsh <dwalsh@redhat.com> 0.14-1
4e9e753
- If commonOpts do not exist, we should return rather then segfault
4e9e753
- Display full error string instead of just status
4e9e753
- Implement --volume and --shm-size for bud and from
4e9e753
- Fix secrets patch for buildah bud
4e9e753
- Fixes the naming issue of blobs and config for the dir transport by removing the .tar extension
4e9e753
4e9e753
* Sun Feb 25 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.13-2
4e9e753
- Build on ARMv7 too (Fedora supports containers on that arch too)
4e9e753
4e9e753
* Thu Feb 22 2018 Dan Walsh <dwalsh@redhat.com> 0.13-1
4e9e753
- Vendor in latest containers/storage
4e9e753
-    This fixes a large SELinux bug.  
4e9e753
- run: do not open /etc/hosts if not needed
4e9e753
- Add the following flags to buildah bud and from
4e9e753
            --add-host
4e9e753
            --cgroup-parent
4e9e753
            --cpu-period
4e9e753
            --cpu-quota
4e9e753
            --cpu-shares
4e9e753
            --cpuset-cpus
4e9e753
            --cpuset-mems
4e9e753
            --memory
4e9e753
            --memory-swap
4e9e753
            --security-opt
4e9e753
            --ulimit
4e9e753
832249d
* Mon Feb 12 2018 Dan Walsh <dwalsh@redhat.com> 0.12-1
832249d
- Added handing for simpler error message for Unknown Dockerfile instructions.
832249d
- Change default certs directory to /etc/containers/certs.dir
832249d
- Vendor in latest containers/image
832249d
- Vendor in latest containers/storage
832249d
- build-using-dockerfile: set the 'author' field for MAINTAINER
832249d
- Return exit code 1 when buildah-rmi fails
832249d
- Trim the image reference to just its name before calling getImageName
832249d
- Touch up rmi -f usage statement
832249d
- Add --format and --filter to buildah containers
832249d
- Add --prune,-p option to rmi command
832249d
- Add authfile param to commit
832249d
- Fix --runtime-flag for buildah run and bud
832249d
- format should override quiet for images
832249d
- Allow all auth params to work with bud
832249d
- Do not overwrite directory permissions on --chown
832249d
- Unescape HTML characters output into the terminal
832249d
- Fix: setting the container name to the image
832249d
- Prompt for un/pwd if not supplied with --creds
832249d
- Make bud be really quiet
832249d
- Return a better error message when failed to resolve an image
832249d
- Update auth tests and fix bud man page
832249d
832249d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-3.git6bad262
832249d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
832249d
91dd8b7
* Mon Feb 05 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.11-2
91dd8b7
- Resolves: upstream gh#432
91dd8b7
- enable debuginfo for non-fedora packages
91dd8b7
a86b4b2
* Tue Jan 16 2018 Dan Walsh <dwalsh@redhat.com> 0.11-1
a86b4b2
- Add --all to remove containers
a86b4b2
- Add --all functionality to rmi
a86b4b2
- Show ctrid when doing rm -all
a86b4b2
- Ignore sequential duplicate layers when reading v2s1
a86b4b2
- Lots of minor bug fixes
a86b4b2
- Vendor in latest containers/image and containers/storage
a86b4b2
06332ac
* Tue Dec 26 2017 Dan Walsh <dwalsh@redhat.com> 0.10-2
06332ac
- Fix checkin
06332ac
ece15b3
* Sat Dec 23 2017 Dan Walsh <dwalsh@redhat.com> 0.10-1
ece15b3
- Display Config and Manifest as strings
ece15b3
- Bump containers/image
ece15b3
- Use configured registries to resolve image names
ece15b3
- Update to work with newer image library
ece15b3
- Add --chown option to add/copy commands
ece15b3
dd1d8eb
* Sat Dec 2 2017 Dan Walsh <dwalsh@redhat.com> 0.9-1
dd1d8eb
- Allow push to use the image id
dd1d8eb
- Make sure builtin volumes have the correct label
dd1d8eb
941bb93
* Thu Nov 16 2017 Dan Walsh <dwalsh@redhat.com> 0.8-1
941bb93
- Buildah bud was failing on SELinux machines, this fixes this
941bb93
- Block access to certain kernel file systems inside of the container
941bb93
3cd8281
* Thu Nov 16 2017 Dan Walsh <dwalsh@redhat.com> 0.7-1
3cd8281
- Ignore errors when trying to read containers buildah.json for loading SELinux reservations
3cd8281
-     Use credentials from kpod login for buildah
3cd8281
3e0ae87
* Wed Nov 15 2017 Dan Walsh <dwalsh@redhat.com> 0.6-1
3e0ae87
- Adds support for converting manifest types when using the dir transport
3e0ae87
- Rework how we do UID resolution in images
3e0ae87
- Bump github.com/vbatts/tar-split
3e0ae87
- Set option.terminal appropriately in run
3e0ae87
d6d9ee5
* Wed Nov 08 2017 Dan Walsh <dwalsh@redhat.com> 0.5-2
d6d9ee5
-  Bump github.com/vbatts/tar-split
d6d9ee5
-  Fixes CVE That could allow a container image to cause a DOS
d6d9ee5
0924860
* Tue Nov 07 2017 Dan Walsh <dwalsh@redhat.com> 0.5-1
0924860
-  Add secrets patch to buildah
0924860
-  Add proper SELinux labeling to buildah run
0924860
-  Add tls-verify to bud command
0924860
-  Make filtering by date use the image's date
0924860
-  images: don't list unnamed images twice
0924860
-  Fix timeout issue
0924860
-  Add further tty verbiage to buildah run
0924860
-  Make inspect try an image on failure if type not specified
0924860
-  Add support for `buildah run --hostname`
0924860
-  Tons of bug fixes and code cleanup
0924860
aee8505
* Fri Sep 22 2017 Dan Walsh <dwalsh@redhat.com> 0.4-1.git9cbccf88c
aee8505
-   Add default transport to push if not provided
aee8505
-   Avoid trying to print a nil ImageReference
aee8505
-   Add authentication to commit and push
aee8505
-   Add information on buildah from man page on transports
aee8505
-   Remove --transport flag
aee8505
-   Run: do not complain about missing volume locations
aee8505
-   Add credentials to buildah from
aee8505
-   Remove export command
aee8505
-   Run(): create the right working directory
aee8505
-   Improve "from" behavior with unnamed references
aee8505
-   Avoid parsing image metadata for dates and layers
aee8505
-   Read the image's creation date from public API
aee8505
-   Bump containers/storage and containers/image
aee8505
-   Don't panic if an image's ID can't be parsed
aee8505
-   Turn on --enable-gc when running gometalinter
aee8505
-   rmi: handle truncated image IDs
aee8505
aee8505
* Tue Aug 15 2017 Josh Boyer <jwboyer@redhat.com> - 0.3-5.gitb9b2a8a
Josh Boyer 45f99c3
- Build for s390x as well
Josh Boyer 45f99c3
aee8505
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-4.gitb9b2a8a
aee8505
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
aee8505
aee8505
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-3.gitb9b2a8a
aee8505
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
aee8505
1842787
* Thu Jul 20 2017 Dan Walsh <dwalsh@redhat.com> 0.3-2.gitb9b2a8a7e
8f07439
- Bump for inclusion of OCI 1.0 Runtime and Image Spec
8f07439
12f6192
* Tue Jul 18 2017 Dan Walsh <dwalsh@redhat.com> 0.2.0-1.gitac2aad6
12f6192
-   buildah run: Add support for -- ending options parsing 
12f6192
-   buildah Add/Copy support for glob syntax
12f6192
-   buildah commit: Add flag to remove containers on commit
12f6192
-   buildah push: Improve man page and help information
12f6192
-   buildah run: add a way to disable PTY allocation
12f6192
-   Buildah docs: clarify --runtime-flag of run command
12f6192
-   Update to match newer storage and image-spec APIs
12f6192
-   Update containers/storage and containers/image versions
12f6192
-   buildah export: add support
12f6192
-   buildah images: update commands
12f6192
-   buildah images: Add JSON output option
12f6192
-   buildah rmi: update commands
12f6192
-   buildah containers: Add JSON output option
12f6192
-   buildah version: add command
12f6192
-   buildah run: Handle run without an explicit command correctly
12f6192
-   Ensure volume points get created, and with perms
12f6192
-   buildah containers: Add a -a/--all option
12f6192
0d91c04
* Wed Jun 14 2017 Dan Walsh <dwalsh@redhat.com> 0.1.0-2.git597d2ab9
0d91c04
- Release Candidate 1
0d91c04
- All features have now been implemented.
0d91c04
17d40d4
* Fri Apr 14 2017 Dan Walsh <dwalsh@redhat.com> 0.0.1-1.git7a0a5333
17d40d4
- First package for Fedora