dm0 / rpms / buildah

Forked from rpms/buildah 5 years ago
Clone

Blame buildah.spec

17d40d4
%if 0%{?fedora} || 0%{?rhel} == 6
17d40d4
%global with_bundled 1
17d40d4
%global with_debug 1
17d40d4
%global with_check 1
17d40d4
%else
17d40d4
%global with_bundled 0
17d40d4
%global with_debug 0
17d40d4
%global with_check 0
17d40d4
%endif
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}
552ff2e
%global commit         979c9456744396fe27914d28063fb66dec896744
17d40d4
%global shortcommit    %(c=%{commit}; echo ${c:0:7})
17d40d4
17d40d4
Name:           buildah
552ff2e
Version:        0.10
bf71f00
Release:        1.git%{shortcommit}%{?dist}
bc08a19
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
Josh Boyer dc3f8b6
ExclusiveArch:  x86_64 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}
17d40d4
BuildRequires:  glib2-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
789e2dc
Requires:       runc >= 1.0.0-7
304d219
Requires:       skopeo-containers >= 0.1.20-2
4a5ce46
Requires:       container-selinux
17d40d4
Provides:       %{repo} = %{version}-%{release}
17d40d4
17d40d4
%description
17d40d4
The buildah 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
5d0975f
%setup -q -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}
616a033
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}
17d40d4
%{_mandir}/man1/buildah*
17d40d4
%dir %{_datadir}/bash-completion
17d40d4
%dir %{_datadir}/bash-completion/completions
17d40d4
%{_datadir}/bash-completion/completions/buildah
17d40d4
17d40d4
%changelog
552ff2e
* Sat Dec 23 2017 Dan Walsh <dwalsh@redhat.com> 0.10-1
552ff2e
- Display Config and Manifest as strings
552ff2e
- Bump containers/image
552ff2e
- Use configured registries to resolve image names
552ff2e
- Update to work with newer image library
552ff2e
- Add --chown option to add/copy commands
552ff2e
2e0affb
* Sat Dec 2 2017 Dan Walsh <dwalsh@redhat.com> 0.9-1
2e0affb
- Allow push to use the image id
2e0affb
- Make sure builtin volumes have the correct label
2e0affb
d876eee
* Thu Nov 16 2017 Dan Walsh <dwalsh@redhat.com> 0.8-1
d876eee
- Buildah bud was failing on SELinux machines, this fixes this
d876eee
- Block access to certain kernel file systems inside of the container
d876eee
b27a11c
* Thu Nov 16 2017 Dan Walsh <dwalsh@redhat.com> 0.7-1
b27a11c
- Ignore errors when trying to read containers buildah.json for loading SELinux reservations
b27a11c
-     Use credentials from kpod login for buildah
b27a11c
bf71f00
* Wed Nov 15 2017 Dan Walsh <dwalsh@redhat.com> 0.6-1
bf71f00
- Adds support for converting manifest types when using the dir transport
bf71f00
- Rework how we do UID resolution in images
bf71f00
- Bump github.com/vbatts/tar-split
bf71f00
- Set option.terminal appropriately in run
bf71f00
616a033
* Wed Nov 08 2017 Dan Walsh <dwalsh@redhat.com> 0.5-2
616a033
-  Bump github.com/vbatts/tar-split
616a033
-  Fixes CVE That could allow a container image to cause a DOS
616a033
b37bc51
* Tue Nov 07 2017 Dan Walsh <dwalsh@redhat.com> 0.5-1
b37bc51
-  Add secrets patch to buildah
b37bc51
-  Add proper SELinux labeling to buildah run
b37bc51
-  Add tls-verify to bud command
b37bc51
-  Make filtering by date use the image's date
b37bc51
-  images: don't list unnamed images twice
b37bc51
-  Fix timeout issue
b37bc51
-  Add further tty verbiage to buildah run
b37bc51
-  Make inspect try an image on failure if type not specified
b37bc51
-  Add support for `buildah run --hostname`
b37bc51
-  Tons of bug fixes and code cleanup
b37bc51
3858472
* Fri Sep 22 2017 Dan Walsh <dwalsh@redhat.com> 0.4-1.git9cbccf88c
3858472
-   Add default transport to push if not provided
3858472
-   Avoid trying to print a nil ImageReference
3858472
-   Add authentication to commit and push
3858472
-   Add information on buildah from man page on transports
3858472
-   Remove --transport flag
3858472
-   Run: do not complain about missing volume locations
3858472
-   Add credentials to buildah from
3858472
-   Remove export command
3858472
-   Run(): create the right working directory
3858472
-   Improve "from" behavior with unnamed references
3858472
-   Avoid parsing image metadata for dates and layers
3858472
-   Read the image's creation date from public API
3858472
-   Bump containers/storage and containers/image
3858472
-   Don't panic if an image's ID can't be parsed
3858472
-   Turn on --enable-gc when running gometalinter
3858472
-   rmi: handle truncated image IDs
3858472
Josh Boyer dc3f8b6
* Tue Aug 15 2017 Josh Boyer <jwboyer@redhat.com> - 0.3-5.gitb9b2a8a
Josh Boyer dc3f8b6
- Build for s390x as well
Josh Boyer dc3f8b6
48a3db3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-4.gitb9b2a8a
48a3db3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
48a3db3
29b2c26
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-3.gitb9b2a8a
29b2c26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
29b2c26
8df8427
* Thu Jul 20 2017 Dan Walsh <dwalsh@redhat.com> 0.3-2.gitb9b2a8a7e
ffb71d3
- Bump for inclusion of OCI 1.0 Runtime and Image Spec
ffb71d3
4decefb
* Tue Jul 18 2017 Dan Walsh <dwalsh@redhat.com> 0.2.0-1.gitac2aad6
4decefb
-   buildah run: Add support for -- ending options parsing 
4decefb
-   buildah Add/Copy support for glob syntax
4decefb
-   buildah commit: Add flag to remove containers on commit
4decefb
-   buildah push: Improve man page and help information
4decefb
-   buildah run: add a way to disable PTY allocation
4decefb
-   Buildah docs: clarify --runtime-flag of run command
4decefb
-   Update to match newer storage and image-spec APIs
4decefb
-   Update containers/storage and containers/image versions
4decefb
-   buildah export: add support
4decefb
-   buildah images: update commands
4decefb
-   buildah images: Add JSON output option
4decefb
-   buildah rmi: update commands
4decefb
-   buildah containers: Add JSON output option
4decefb
-   buildah version: add command
4decefb
-   buildah run: Handle run without an explicit command correctly
4decefb
-   Ensure volume points get created, and with perms
4decefb
-   buildah containers: Add a -a/--all option
4decefb
304d219
* Wed Jun 14 2017 Dan Walsh <dwalsh@redhat.com> 0.1.0-2.git597d2ab9
789e2dc
- Release Candidate 1
789e2dc
- All features have now been implemented.
789e2dc
17d40d4
* Fri Apr 14 2017 Dan Walsh <dwalsh@redhat.com> 0.0.1-1.git7a0a5333
17d40d4
- First package for Fedora