summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLokesh Mandvekar <lsm5@fedoraproject.org>2017-05-02 13:02:54 +0000
committerLokesh Mandvekar <lsm5@fedoraproject.org>2017-05-02 13:02:54 +0000
commit17d40d45923539df6087b1da4265ad1d23cdbbd2 (patch)
tree323fb46e443efcd0139b929b8b8273cbc40e640f
parenteaad47bc4969318bac973751c839dcc12818b54a (diff)
downloadbuildah-17d40d45923539df6087b1da4265ad1d23cdbbd2.tar.gz
buildah-17d40d45923539df6087b1da4265ad1d23cdbbd2.tar.xz
buildah-17d40d45923539df6087b1da4265ad1d23cdbbd2.zip
buildah-0.0.1-1.gita0a5333
- Resolves: #1444618 - initial build Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
-rw-r--r--.gitignore1
-rw-r--r--buildah.spec94
-rw-r--r--sources1
3 files changed, 96 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..eb7a05d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/buildah-a0a5333.tar.gz
diff --git a/buildah.spec b/buildah.spec
new file mode 100644
index 0000000..20a1e4b
--- /dev/null
+++ b/buildah.spec
@@ -0,0 +1,94 @@
+%if 0%{?fedora} || 0%{?rhel} == 6
+%global with_bundled 1
+%global with_debug 1
+%global with_check 1
+%else
+%global with_bundled 0
+%global with_debug 0
+%global with_check 0
+%endif
+
+%if 0%{?with_debug}
+%global _dwz_low_mem_die_limit 0
+%else
+%global debug_package %{nil}
+%endif
+
+%global provider github
+%global provider_tld com
+%global project projectatomic
+%global repo buildah
+# https://github.com/projectatomic/buildah
+%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path %{provider_prefix}
+%global commit a0a5333b94264d1fb1e072d63bcb98f9e2981b49
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: buildah
+Version: 0.0.1
+Release: 1.git%{shortcommit}%{?dist}
+Summary: A command line tool used to creating OCI Images
+License: ASL 2.0
+URL: https://%{provider_prefix}
+Source: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+
+ExclusiveArch: x86_64 aarch64 ppc64le
+# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
+BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+BuildRequires: git
+BuildRequires: glib2-devel
+BuildRequires: glibc-static
+BuildRequires: go-md2man
+BuildRequires: gpgme-devel
+BuildRequires: device-mapper-devel
+BuildRequires: btrfs-progs-devel
+BuildRequires: libassuan-devel
+Requires: runc >= 1.0.0-6
+Requires: skopeo-containers
+Provides: %{repo} = %{version}-%{release}
+
+%description
+The buildah package provides a command line tool which can be used to
+* create a working container from scratch
+or
+* create a working container from an image as a starting point
+* mount/umount a working container's root file system for manipulation
+* save container's root file system layer to create a new image
+* delete a working container or an image
+
+%prep
+%autosetup -Sgit -n %{name}-%{commit}
+
+%build
+mkdir _build
+pushd _build
+mkdir -p src/%{provider}.%{provider_tld}/%{project}
+ln -s $(dirs +1 -l) src/%{import_path}
+popd
+
+mv vendor src
+
+export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
+make all
+
+
+%install
+export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
+
+make DESTDIR=%{buildroot} PREFIX=%{_prefix} install install.completions
+
+#define license tag if not already defined
+%{!?_licensedir:%global license %doc}
+
+%files
+%license LICENSE
+%doc README.md
+%{_bindir}/%{name}
+%{_mandir}/man1/buildah*
+%dir %{_datadir}/bash-completion
+%dir %{_datadir}/bash-completion/completions
+%{_datadir}/bash-completion/completions/buildah
+
+%changelog
+* Fri Apr 14 2017 Dan Walsh <dwalsh@redhat.com> 0.0.1-1.git7a0a5333
+- First package for Fedora
diff --git a/sources b/sources
index e69de29..e0baa19 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (buildah-a0a5333.tar.gz) = f8ca5b5b5287239d3ce85d042dc3b886fe590e17a870e4c119e0996fef2c938437d324c4da22536468a305e9245a127f27f4b23545beb59fafbefc57c141e113