[dock/f21] initial commit

Tomas Tomecek ttomecek at fedoraproject.org
Fri Feb 20 10:07:02 UTC 2015


commit fb49e4c2b9af9124eebb26c77177351e941dbf3d
Author: Tomas Tomecek <ttomecek at redhat.com>
Date:   Fri Feb 20 10:46:49 2015 +0100

    initial commit
    
    1.1.0 release

 .gitignore |   1 +
 dock.spec  | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources    |   1 +
 3 files changed, 188 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..60b3ef2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dock-4bd2f17017a62184d43da1bb689110c9562b0956.tar.gz
diff --git a/dock.spec b/dock.spec
new file mode 100644
index 0000000..608b82b
--- /dev/null
+++ b/dock.spec
@@ -0,0 +1,186 @@
+%global with_python3 0
+
+%global owner DBuildService
+%global project dock
+
+%global commit 4bd2f17017a62184d43da1bb689110c9562b0956
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           dock
+Version:        1.1.0
+Release:        1%{?dist}
+
+Summary:        Improved builder for Docker images
+Group:          Development/Tools
+License:        BSD
+URL:            https://github.com/DBuildService/dock
+Source0:        https://github.com/%{owner}/%{project}/archive/%{commit}/%{project}-%{commit}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+%endif
+
+Requires:       python-docker-py
+Requires:       GitPython
+Requires:       python-requests
+
+%description
+Simple python library with command line interface for building docker
+images. It contains a lot of helpful functions which you would
+probably implement if you started hooking docker into your
+infrastructure.
+
+
+%package koji
+Summary:        Koji plugin for Dock
+Group:          Development/Tools
+Requires:       %{name} = %{version}-%{release}
+Requires:       koji
+
+%description koji
+Koji plugin for Dock
+
+
+%if 0%{?with_python3}
+%package -n python3-dock
+Summary:        Improved builder for Docker images
+Group:          Development/Tools
+License:        BSD
+Requires:       python3-docker-py
+Requires:       python3-requests
+# python3 build is missing for GitPython
+Requires:       GitPython
+
+%description -n python3-dock
+Simple python library with command line interface for building docker
+images. It contains a lot of helpful functions which you would
+probably implement if you started hooking docker into your
+infrastructure.
+
+
+%package -n python3-dock-koji
+Summary:        Koji plugin for Dock
+Group:          Development/Tools
+Requires:       python3-dock = %{version}-%{release}
+Requires:       koji
+
+%description -n python3-dock-koji
+Koji plugin for Dock
+%endif # with_python3
+
+
+%prep
+%setup -qn %{name}-%{commit}
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
+
+
+%build
+# build python package
+%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+mkdir -vp %{buildroot}/%{_datadir}/%{name}
+# install python package
+%{__python} setup.py install --skip-build --root %{buildroot}
+# ship dock in form of tarball so it can be installed within build image
+cp -a %{sources} %{buildroot}/%{_datadir}/%{name}/dock.tar.gz
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%files
+%doc README.md
+%license LICENSE
+%{_bindir}/dock
+%dir %{python2_sitelib}/dock
+%{python2_sitelib}/dock/*.*
+%{python2_sitelib}/dock/cli
+%{python2_sitelib}/dock/plugins
+%exclude %{python2_sitelib}/dock/plugins/pre_koji.py*
+%{python2_sitelib}/dock-%{version}-py2.*.egg-info
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/dock.tar.gz
+%{_datadir}/%{name}/images
+
+
+%files koji
+%{python2_sitelib}/dock/plugins/pre_koji.py*
+
+
+%if 0%{?with_python3}
+%files -n python3-dock
+%doc README.md
+%license LICENSE
+%{_bindir}/dock
+%dir %{python3_sitelib}/dock
+%{python3_sitelib}/dock/*.*
+%{python3_sitelib}/dock/cli
+%{python3_sitelib}/dock/plugins
+%exclude %{python3_sitelib}/dock/plugins/pre_koji.py*
+%{python3_sitelib}/dock-%{version}-py2.*.egg-info
+%dir %{_datadir}/%{name}
+# ship dock in form of tarball so it can be installed within build image
+%{_datadir}/%{name}/dock.tar.gz
+# dockerfiles for build images
+# there is also a script which starts docker in privileged container
+# (is not executable, because it's meant to be used within provileged containers, not on a host system)
+%{_datadir}/%{name}/images
+
+
+%files -n python3-dock-koji
+%{python3_sitelib}/dock/plugins/pre_koji.py*
+%endif  # with_python3
+
+
+%changelog
+* Fri Feb 20 2015 Tomas Tomecek <ttomecek at redhat.com> - 1.1.0-1
+- new upstream release 1.1.0
+
+* Wed Feb 11 2015 Tomas Tomecek <ttomecek at redhat.com> - 1.0.0-2
+- spec: fix python 3 packaging
+- fix license in %%files
+- comment on weird stuff (dock.tar.gz, docker.sh)
+
+* Thu Feb 05 2015 Tomas Tomecek <ttomecek at redhat.com> - 1.0.0-1
+- initial 1.0.0 upstream release
+
+* Wed Feb 04 2015 Tomas Tomecek <ttomecek at redhat.com> 1.0.0.b-1
+- new upstream release: beta
+
+* Mon Dec 01 2014 Tomas Tomecek <ttomecek at redhat.com> 1.0.0.a-1
+- complete rewrite (ttomecek at redhat.com)
+- Use inspect_image() instead of get_image() when checking for existence (#4).
+  (twaugh at redhat.com)
+
+* Mon Nov 10 2014 Tomas Tomecek <ttomecek at redhat.com> 0.0.2-1
+- more friendly error msg when build img doesnt exist (ttomecek at redhat.com)
+- implement postbuild plugin system; do rpm -qa plugin (ttomecek at redhat.com)
+- core, logs: wait for container to finish and then gather output
+  (ttomecek at redhat.com)
+- core, df copying: df was not copied when path wasn't provided
+  (ttomecek at redhat.com)
+- store dockerfile in results dir (ttomecek at redhat.com)
+
+* Mon Nov 03 2014 Jakub Dorňák <jdornak at redhat.com> 0.0.1-1
+- new package built with tito
+
+* Sun Nov  2 2014 Jakub Dorňák <jdornak at redhat.com> - 0.0.1-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..6a871f6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b688011a9c4e74ffd37f61022e2cca99  dock-4bd2f17017a62184d43da1bb689110c9562b0956.tar.gz


More information about the scm-commits mailing list