00241aa
%global modname jira
00241aa
%global distname jira-python
00241aa
%global eggname jira_python
00241aa
00241aa
Name:               python-jira
00241aa
Version:            0.13
87226c9
Release:            5%{?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
87226c9
BuildRequires:      python-ipython-console
00241aa
00241aa
Requires:           python-requests
00241aa
Requires:           python-requests-oauthlib
00241aa
Requires:           python-tlslite
00241aa
Requires:           python-magic
87226c9
Requires:           python-ipython-console
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
87226c9
sed -i 's/tools.jirashell/jira.tools.jirashell/g' setup.py
87226c9
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
87226c9
# Move this into the jira namespace.  It gets fixed in a more modern version.
87226c9
mv %{buildroot}%{python2_sitelib}/tools/ %{buildroot}%{python2_sitelib}/jira/tools/
87226c9
00241aa
# Why does it even install these?  A mistake.
00241aa
rm -rf %{buildroot}%{python2_sitelib}/tests/
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
87226c9
* Tue Apr 21 2015 Ralph Bean <rbean@redhat.com> - 0.13-5
87226c9
- Change dep from the ipython meta package to just python-ipython-console.
87226c9
- Move the /tools/ module into the jira namespace to avoid potential conflict.
87226c9
1728780
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-4
1728780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1728780
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