mmilata pushed to osbs (el6). "initial commit"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Apr 15 09:24:42 UTC 2015


>From 1a58b9e1f9dac395190220a2b321876551fcf24c Mon Sep 17 00:00:00 2001
From: Jiri Popelka <jpopelka at redhat.com>
Date: Mon, 23 Mar 2015 16:26:49 +0100
Subject: initial commit


diff --git a/.gitignore b/.gitignore
index e69de29..331c53a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/osbs-e073d7cc6cf7a07eafa00e2d44a654a040640390.tar.gz
diff --git a/osbs.spec b/osbs.spec
new file mode 100644
index 0000000..dc1c704
--- /dev/null
+++ b/osbs.spec
@@ -0,0 +1,112 @@
+%global with_python3 0
+
+%global commit e073d7cc6cf7a07eafa00e2d44a654a040640390
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           osbs
+Version:        0.1
+Release:        3%{?dist}
+
+Summary:        Python module and command line client for OpenShift Build Service
+Group:          Development/Tools
+License:        BSD
+URL:            https://github.com/DBuildService/osbs
+Source0:        https://github.com/DBuildService/osbs/archive/%{commit}/osbs-%{commit}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+%endif
+
+Requires:       python-pycurl
+#Requires:       python-requests
+
+%description
+It is able to query OpenShift v3 for various stuff related to building images.
+It can initiate builds, list builds, get info about builds, get build logs...
+All of this can be done from command line and from python.
+
+%if 0%{?with_python3}
+%package -n python3-osbs
+Summary:        Python module and command line client for OpenShift Build Service
+Group:          Development/Tools
+License:        BSD
+Requires:       python3-pycurl
+#Requires:       python3-requests
+
+%description -n python3-osbs
+It is able to query OpenShift v3 for various stuff related to building images.
+It can initiate builds, list builds, get info about builds, get build logs...
+All of this can be done from command line and from python.
+%endif # with_python3
+
+
+%prep
+%setup -qn osbs-%{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
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+pushd %{buildroot}%{_bindir}
+mv osbs osbs3
+popd
+%endif # with_python3
+
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%doc README.md
+%license LICENSE
+%{_bindir}/osbs
+%{python2_sitelib}/osbs/
+%{python2_sitelib}/osbs-%{version}-py2.*.egg-info/
+%dir %{_datadir}/osbs
+%{_datadir}/osbs/*.json
+
+
+%if 0%{?with_python3}
+%files -n python3-osbs
+%doc README.md
+%license LICENSE
+%{_bindir}/osbs3
+%{python3_sitelib}/osbs/
+%{python3_sitelib}/osbs-%{version}-py3.*.egg-info/
+%dir %{_datadir}/osbs
+%{_datadir}/osbs/*.json
+%endif # with_python3
+
+%changelog
+* Thu Mar 19 2015 Jiri Popelka <jpopelka at redhat.com> - 0.1-3
+- no need to require also python-requests
+
+* Thu Mar 19 2015 Jiri Popelka <jpopelka at redhat.com> - 0.1-2
+- separate executable for python 3
+
+* Wed Mar 18 2015 Jiri Popelka <jpopelka at redhat.com> - 0.1-1
+- initial spec
diff --git a/sources b/sources
index e69de29..88231c6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+965adeba31ac5d2b8c3cd8afc231796b  osbs-e073d7cc6cf7a07eafa00e2d44a654a040640390.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/osbs.git/commit/?h=el6&id=1a58b9e1f9dac395190220a2b321876551fcf24c


More information about the scm-commits mailing list