00241aa
%global modname jira
00241aa
%global distname jira-python
00241aa
%global eggname jira_python
00241aa
00241aa
Name:               python-jira
00241aa
Version:            0.13
247b717
Release:            3%{?dist}
00241aa
Summary:            A library to ease use of the JIRA 5 REST APIs.
00241aa
00241aa
Group:              Development/Libraries
00241aa
License:            BSD
00241aa
URL:                http://pypi.python.org/pypi/jira-python
00241aa
Source0:            http://pypi.python.org/packages/source/j/%{distname}/%{distname}-%{version}.tar.gz
247b717
Patch0:             python-jira-no-mime-detection.patch
00241aa
00241aa
BuildArch:          noarch
00241aa
00241aa
BuildRequires:      python2-devel
00241aa
BuildRequires:      python-setuptools
00241aa
00241aa
BuildRequires:      python-requests
00241aa
BuildRequires:      python-requests-oauthlib
00241aa
BuildRequires:      python-tlslite
00241aa
BuildRequires:      python-magic
00241aa
BuildRequires:      ipython
00241aa
00241aa
Requires:           python-requests
00241aa
Requires:           python-requests-oauthlib
00241aa
Requires:           python-tlslite
00241aa
Requires:           python-magic
00241aa
Requires:           ipython
00241aa
00241aa
%description
00241aa
A library to ease use of the JIRA 5 REST APIs.
00241aa
00241aa
%prep
00241aa
%setup -q -n %{distname}-%{version}
247b717
%patch0 -p1
00241aa
00241aa
# Remove bundled egg-info in case it exists
00241aa
rm -rf %{distname}.egg-info
00241aa
00241aa
%build
00241aa
%{__python2} setup.py build
00241aa
00241aa
%install
00241aa
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
00241aa
00241aa
# Why does it even install these?  A mistake.
00241aa
rm -rf %{buildroot}%{python2_sitelib}/tests/
00241aa
rm -rf %{buildroot}%{python2_sitelib}/tools/
00241aa
00241aa
00241aa
# The tests could be run with nosetests, but they require hardcoded
00241aa
# certificates found on the author's computer.
00241aa
#%%check
00241aa
#nosetests
00241aa
00241aa
%files
00241aa
# Filed an issue asking for license full text
00241aa
# https://bitbucket.org/bspeakmon/jira-python/issue/70
00241aa
%doc PKG-INFO
00241aa
%{python2_sitelib}/%{modname}/
00241aa
%{python2_sitelib}/%{eggname}-%{version}*
00241aa
%{_bindir}/jirashell
00241aa
00241aa
00241aa
%changelog
247b717
* Fri Nov 22 2013 Ralph Bean <rbean@redhat.com> - 0.13-3
247b717
- Patch out mime type detection as per review feedback.
247b717
00241aa
* Fri Nov 01 2013 Ralph Bean <rbean@redhat.com> - 0.13-2
00241aa
- Modernize python2 rpm macros.
00241aa
00241aa
* Thu Oct 31 2013 Ralph Bean <rbean@redhat.com> - 0.13-1
00241aa
- Initial package for Fedora