[python-dapp] Initial import #1160772
Bohuslav Kabrda
bkabrda at fedoraproject.org
Fri Nov 7 06:36:13 UTC 2014
commit ad006879bddb4158d9262add7175c8f854da43d4
Author: Slavek Kabrda <bkabrda at redhat.com>
Date: Fri Nov 7 07:35:54 2014 +0100
Initial import #1160772
.gitignore | 1 +
python-dapp.spec | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..73930b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dapp-0.3.0.tar.gz
diff --git a/python-dapp.spec b/python-dapp.spec
new file mode 100644
index 0000000..79275ff
--- /dev/null
+++ b/python-dapp.spec
@@ -0,0 +1,103 @@
+# Created by pyp2rpm-1.1.1
+%global pypi_name dapp
+%global with_python3 1
+
+Name: python-%{pypi_name}
+Version: 0.3.0
+Release: 1%{?dist}
+Summary: Library implementing DevAssistant PingPong protocol
+
+License: GPLv2+
+URL: https://github.com/devassistant/dapp
+Source0: https://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-six
+BuildRequires: pytest
+BuildRequires: PyYAML
+
+%if %{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-six
+BuildRequires: python3-pytest
+BuildRequires: python3-PyYAML
+%endif # if with_python3
+
+Requires: python-six
+Requires: PyYAML
+
+%description
+Library implementing protocol used for communication between DevAssistant
+and PingPong scripts (a.k.a. executable assistants).
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary: Library implementing DevAssistant PingPong protocol
+
+Requires: python3-six
+Requires: python3-PyYAML
+
+%description -n python3-%{pypi_name}
+Library implementing protocol used for communication between DevAssistant
+and PingPong scripts (a.k.a. executable assistants). This package contains
+python3 build of dapp.
+%endif # with_python3
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # with_python3
+
+%build
+%{__python2} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+# Must do the subpackages' install first because the scripts in /usr/bin are
+# overwritten with every setup.py install (and we want the python2 version
+# to be the default for now).
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+%check
+%{__python2} setup.py test -t py.test
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py test -t py.test-%{python3_version}
+popd
+%endif # with_python3
+
+%files
+%doc README.rst LICENSE
+%{python2_sitelib}/%{pypi_name}
+%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README.rst LICENSE
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%endif # with_python3
+
+%changelog
+* Wed Nov 05 2014 Slavek Kabrda <bkabrda at redhat.com> - 0.3.0-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..c0c37fe 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b0ef41b04cac206a888de7c29adf3c26 dapp-0.3.0.tar.gz
More information about the scm-commits
mailing list