%if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %global pkgname python-resultsdb_api %global tarball_name resultsdb_api %global commitname 03fe61c37202 %global bitbucket_username rajcze Name: python-resultsdb_api Version: 1.0.0 Release: 1%{?dist} Summary: Library for simplifying the communication with ResultsDB License: GPLv2+ URL: https://bitbucket.org/rajcze/resultsdb_api Source0: https://bitbucket.org/rajcze/%{tarball_name}/get/v1.0.tar.gz BuildArch: noarch Requires: python-requests BuildRequires: python2-devel python-setuptools %description The ResultsDB API module provides a Python API for using ResultsDB's JSON/REST interface in a more pythonic way. It has functions which match the JSON/REST methods, but allow the common goodies as named parameters, and parameters skipping. %prep %setup -qn %{bitbucket_username}-%{tarball_name}-%{commitname} %build %{__python2} setup.py build %install %{__python2} setup.py install --skip-build --root %{buildroot} %files %doc README.md %{python2_sitelib}/resultsdb_api.* %{python2_sitelib}/*.egg-info %changelog * Fri Feb 14 2014 Jan Sedlak - 1.0.0-1 - initial packaging