0ae9d3
%if 0%{?fedora}
157838
%global with_python3 1
157838
%endif
157838
157838
%global modname pkgwat.api
157838
157838
Name:             python-pkgwat-api
5d6397
Version:          0.12
5d6397
Release:          1%{?dist}
157838
Summary:          Python API for querying the fedora packages webapp
157838
157838
Group:            Development/Libraries
157838
License:          LGPLv2+
157838
URL:              http://pypi.python.org/pypi/pkgwat.api
157838
Source0:          http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
157838
157838
BuildArch:        noarch
157838
157838
BuildRequires:    python2-devel
157838
BuildRequires:    python-setuptools
157838
157838
%if 0%{?with_python3}
157838
BuildRequires:    python3-devel
157838
BuildRequires:    python3-setuptools
157838
%endif
157838
157838
Requires:         python-six
157838
Requires:         python-requests
157838
cefd97
%if 0%{?rhel}
cefd97
BuildRequires:    python-ordereddict
cefd97
Requires:         python-ordereddict
cefd97
%endif
cefd97
157838
%description
157838
Python API for pkgwat
157838
http://pypi.python.org/pypi/pkgwat.cli
157838
157838
%if 0%{?with_python3}
79f2a8
%package -n python3-pkgwat-api
157838
Summary:          Python API for querying the fedora packages webapp
157838
Group:            Development/Libraries
157838
157838
Requires:         python3-six
157838
Requires:         python3-requests
157838
1422ba
# Once upon a time I named the subpackage incorrectly.  We need to obsolete it.
1422ba
Obsoletes:        python3-python-pkgwat-api
1422ba
Provides:         python3-python-pkgwat-api
1422ba
79f2a8
%description -n python3-pkgwat-api
157838
Python API for pkgwat
157838
http://pypi.python.org/pypi/pkgwat.cli.
157838
157838
%endif
157838
157838
%prep
157838
%setup -q -n %{modname}-%{version}
2661a2
157838
rm -rf pkgwat.api.egg-info
157838
157838
%if 0%{?with_python3}
157838
rm -rf %{py3dir}
157838
cp -a . %{py3dir}
157838
%endif
157838
157838
%build
157838
%{__python} setup.py build
157838
157838
%if 0%{?with_python3}
157838
pushd %{py3dir}
157838
%{__python3} setup.py build
157838
popd
157838
%endif
157838
157838
%install
157838
%if 0%{?with_python3}
157838
pushd %{py3dir}
157838
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
157838
popd
157838
%endif
157838
157838
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
157838
157838
%files
157838
%doc README.rst LICENSE lgpl-2.1.txt
157838
%{python_sitelib}/pkgwat
157838
%{python_sitelib}/%{modname}-%{version}*
157838
157838
%if 0%{?with_python3}
79f2a8
%files -n python3-pkgwat-api
157838
%doc README.rst LICENSE lgpl-2.1.txt
157838
%{python3_sitelib}/pkgwat
157838
%{python3_sitelib}/%{modname}-%{version}-*
157838
%endif
157838
157838
%changelog
5d6397
* Thu Nov 14 2013 Ralph Bean <rbean@redhat.com> - 0.12-1
5d6397
- Fix unicode issues when stripping html from responses.
5d6397
1422ba
* Sun Nov 03 2013 Ralph Bean <rbean@redhat.com> - 0.10-2
1422ba
- Add obsoletes/provides on python3-python-pkgwat-api
1422ba
045c53
* Tue Oct 22 2013 Ralph Bean <rbean@redhat.com> - 0.10-1
045c53
- Latest upstream with some bugfixes.
045c53
9598d9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
9598d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9598d9
dcadf6
* Tue Jun 11 2013 Ralph Bean <rbean@redhat.com> - 0.9-1
dcadf6
- Latest upstream.
dcadf6
- New history function to search datagrepper.
dcadf6
- Subpackages support with patches from Ariel O. Barria.
dcadf6
cefd97
* Tue Apr 09 2013 Ralph Bean <rbean@redhat.com> - 0.8-1
cefd97
- Latest upstream with a bugfix for py2.6.
cefd97
- Conditionally depend on python-ordereddict.
cefd97
- Remove py3.2 patch.  Now included in upstream's release.
cefd97
79f2a8
* Wed Mar 20 2013 Ralph Bean <rbean@redhat.com> - 0.7-3
79f2a8
- Correctly name the python3 subpackage.
79f2a8
2661a2
* Thu Feb 28 2013 Ralph Bean <rbean@redhat.com> - 0.7-2
2661a2
- Patch to fix syntax error on python3.2.
2661a2
1fcc52
* Thu Feb 28 2013 Ralph Bean <rbean@redhat.com> - 0.7-1
1fcc52
- Latest upstream with a new "get" function.
1fcc52
ed605f
* Wed Feb 27 2013 Ralph Bean <rbean@redhat.com> - 0.6-1
ed605f
- Latest upstream with new functions for querying relationships.
ed605f
- Removed spurious newlines in .spec file.
0ae9d3
- Modernized with_python3 conditional.
0ae9d3
ca200d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
ca200d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ed605f
799957
* Tue Jan 22 2013 Ralph Bean <rbean@redhat.com> - 0.5-1
799957
- Latest upstream; Fix to the karma formatting.
799957
1f4c0c
* Wed Jan 16 2013 Ralph Bean <rbean@redhat.com> - 0.4-1
1f4c0c
- Latest upstream with support for newer python-requests.
1f4c0c
29ab9c
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.3-5
29ab9c
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
29ab9c
b63550
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
b63550
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b63550
157838
* Thu Jul 05 2012 Ralph Bean <rbean@redhat.com> - 0.3-3
157838
- Remove the bundled egg-info.
157838
157838
* Mon Jul 02 2012 Ralph Bean <rbean@redhat.com> - 0.3-2
157838
- Remove tests for koji.
157838
157838
* Mon Jul 02 2012 Ralph Bean <rbean@redhat.com> - 0.3-1
157838
- Latest upstream, includes unit tests.
157838
157838
* Mon Jul 02 2012 Ralph Bean <rbean@redhat.com> - 0.1-1
157838
- Initial package for Fedora