[python-pkgwat-api] Initial import (#837432)
Ralph Bean
ralph at fedoraproject.org
Thu Jul 5 19:58:38 UTC 2012
commit 157838e8f9fe106eb087257f7c82cc1fe111a5ec
Author: Ralph Bean <rbean at redhat.com>
Date: Thu Jul 5 15:58:31 2012 -0400
Initial import (#837432)
.gitignore | 1 +
python-pkgwat-api.spec | 106 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0de7ce0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pkgwat.api-0.3.tar.gz
diff --git a/python-pkgwat-api.spec b/python-pkgwat-api.spec
new file mode 100644
index 0000000..28c2b7b
--- /dev/null
+++ b/python-pkgwat-api.spec
@@ -0,0 +1,106 @@
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%endif
+
+%global modname pkgwat.api
+
+Name: python-pkgwat-api
+Version: 0.3
+Release: 3%{?dist}
+Summary: Python API for querying the fedora packages webapp
+
+Group: Development/Libraries
+License: LGPLv2+
+URL: http://pypi.python.org/pypi/pkgwat.api
+Source0: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%endif
+
+Requires: python-six
+Requires: python-requests
+
+
+%description
+Python API for pkgwat
+http://pypi.python.org/pypi/pkgwat.cli
+
+%if 0%{?with_python3}
+%package -n python3-%{name}
+Summary: Python API for querying the fedora packages webapp
+Group: Development/Libraries
+
+Requires: python3-six
+Requires: python3-requests
+
+%description -n python3-%{name}
+Python API for pkgwat
+http://pypi.python.org/pypi/pkgwat.cli.
+
+%endif
+
+%prep
+%setup -q -n %{modname}-%{version}
+rm -rf pkgwat.api.egg-info
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+
+%build
+%{__python} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
+popd
+%endif
+
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+
+%files
+%doc README.rst LICENSE lgpl-2.1.txt
+%{python_sitelib}/pkgwat
+%{python_sitelib}/%{modname}-%{version}*
+
+%if 0%{?with_python3}
+%files -n python3-%{name}
+%doc README.rst LICENSE lgpl-2.1.txt
+%{python3_sitelib}/pkgwat
+%{python3_sitelib}/%{modname}-%{version}-*
+
+%endif
+
+
+%changelog
+* Thu Jul 05 2012 Ralph Bean <rbean at redhat.com> - 0.3-3
+- Remove the bundled egg-info.
+
+* Mon Jul 02 2012 Ralph Bean <rbean at redhat.com> - 0.3-2
+- Remove tests for koji.
+
+* Mon Jul 02 2012 Ralph Bean <rbean at redhat.com> - 0.3-1
+- Latest upstream, includes unit tests.
+
+* Mon Jul 02 2012 Ralph Bean <rbean at redhat.com> - 0.1-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..5bf96a3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d37b7ca3614729d51934c4f152d54d60 pkgwat.api-0.3.tar.gz
More information about the scm-commits
mailing list