Blob Blame History Raw
%global modname jira
%global distname jira-python
%global eggname jira_python

Name:               python-jira
Version:            0.13
Release:            3%{?dist}
Summary:            A library to ease use of the JIRA 5 REST APIs.

Group:              Development/Libraries
License:            BSD
Source0:  {distname}/%{distname}-%{version}.tar.gz
Patch0:             python-jira-no-mime-detection.patch

BuildArch:          noarch

BuildRequires:      python2-devel
BuildRequires:      python-setuptools

BuildRequires:      python-requests
BuildRequires:      python-requests-oauthlib
BuildRequires:      python-tlslite
BuildRequires:      python-magic
BuildRequires:      ipython

Requires:           python-requests
Requires:           python-requests-oauthlib
Requires:           python-tlslite
Requires:           python-magic
Requires:           ipython

A library to ease use of the JIRA 5 REST APIs.

%setup -q -n %{distname}-%{version}
%patch0 -p1

# Remove bundled egg-info in case it exists
rm -rf %{distname}.egg-info

%{__python2} build

%{__python2} install -O1 --skip-build --root=%{buildroot}

# Why does it even install these?  A mistake.
rm -rf %{buildroot}%{python2_sitelib}/tests/
rm -rf %{buildroot}%{python2_sitelib}/tools/

# The tests could be run with nosetests, but they require hardcoded
# certificates found on the author's computer.

# Filed an issue asking for license full text

* Fri Nov 22 2013 Ralph Bean <> - 0.13-3
- Patch out mime type detection as per review feedback.

* Fri Nov 01 2013 Ralph Bean <> - 0.13-2
- Modernize python2 rpm macros.

* Thu Oct 31 2013 Ralph Bean <> - 0.13-1
- Initial package for Fedora