ef7e0d7
%bcond_with docs
ef7e0d7
%global pypi_name praw
ef7e0d7
ef7e0d7
Name:           python-%{pypi_name}
b4eb43e
Version:        6.5.1
ea6c01f
Release:        1%{?dist}
1005e08
Summary:        A Python package that allows for simple access to reddit's API
2b02d74
2b02d74
License:        GPLv3+
ef7e0d7
URL:            https://praw.readthedocs.org
2e19e07
Source0:        https://github.com/praw-dev/praw/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
2b02d74
BuildArch:      noarch
82c42df
b4eb43e
%description
b4eb43e
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that
b4eb43e
allows for simple access to reddit's API.
b4eb43e
b4eb43e
%package -n     python3-%{pypi_name}
b4eb43e
Summary:        %{summary}
b4eb43e
ef7e0d7
BuildRequires:  python3-setuptools
Fabian Affolter 7dd9855
BuildRequires:  python3-devel
33cc63e
BuildRequires:  python3-prawcore
ef7e0d7
BuildRequires:  mock
ef7e0d7
BuildRequires:  python3-mock
4c68a75
BuildRequires:  python3-betamax
4c68a75
BuildRequires:  python3-betamax-matchers
4c68a75
BuildRequires:  python3-betamax-serializers
ef7e0d7
BuildRequires:  python3-pytest
ef7e0d7
BuildRequires:  python3-pytest-runner
b23ac7c
BuildRequires:  python3-websocket-client
ef7e0d7
%{?python_provide:%python_provide python3-%{pypi_name}}
Fabian Affolter e490e52
ef7e0d7
%description -n python3-%{pypi_name}
ef7e0d7
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that
ef7e0d7
allows for simple access to reddit's API.
Fabian Affolter e490e52
ef7e0d7
%if %{with docs}
ef7e0d7
%package -n python-%{pypi_name}-doc
ef7e0d7
Summary:        A python package that allows for simple access to reddit's API
1005e08
b4eb43e
BuildRequires:  python3-sphinx
b4eb43e
ef7e0d7
%description -n python-%{pypi_name}-doc
Fabian Affolter e490e52
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that
Fabian Affolter e490e52
allows for simple access to reddit's API.
ef7e0d7
%endif
Fabian Affolter e490e52
2b02d74
%prep
1120507
%autosetup -n %{pypi_name}-%{version}
b7d62a8
# The RPM package should not provide this feature
b7d62a8
sed -i -e '/"update_checker >=0.16"/d' setup.py
2b02d74
2b02d74
%build
Fabian Affolter 7dd9855
%py3_build
ef7e0d7
%if %{with docs}
ef7e0d7
sphinx-build docs html
ef7e0d7
rm -rf html/.{doctrees,buildinfo}
ef7e0d7
%endif
2b02d74
2b02d74
%install
Fabian Affolter 7dd9855
%py3_install
ef7e0d7
ef7e0d7
%check
ef7e0d7
%{__python3} setup.py test
Fabian Affolter 7dd9855
ef7e0d7
%files -n python3-%{pypi_name}
f7e0698
%doc AUTHORS.rst CHANGES.rst CODE_OF_CONDUCT.md README.rst
c1cfd27
%license LICENSE.txt
ae99b2d
%{python3_sitelib}/%{pypi_name}/
b4eb43e
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
ef7e0d7
ef7e0d7
%if %{with docs}
ef7e0d7
%files -n python-%{pypi_name}-doc
ef7e0d7
%doc html
ef7e0d7
%endif
2b02d74
2b02d74
%changelog
b4eb43e
* Fri Jan 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 6.5.1-1
b4eb43e
- Better use of wildcards
b4eb43e
- Update to latest upstream release 6.5.1
b4eb43e
2e19e07
* Mon Jan 06 2020 Fabian Affolter <mail@fabian-affolter.ch> - 6.5.0-1
2e19e07
- Update source URL
2e19e07
- Update to latest upstream release 6.5.0 (rhbz#1787988)
2e19e07
ea6c01f
* Wed Sep 25 2019 Fabian Affolter <mail@fabian-affolter.ch> - 6.4.0-1
ea6c01f
- Update to latest upstream release 6.4.0 (rhbz#1754213)
ea6c01f
b48ebbc
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 6.3.1-4
b48ebbc
- Rebuilt for Python 3.8
b48ebbc
a5d06cd
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.3.1-3
a5d06cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a5d06cd
b23ac7c
* Sun Jun 23 2019 Fabian Affolter <mail@fabian-affolter.ch> - 6.3.1-2
b23ac7c
- Add new BR
b23ac7c
1005e08
* Fri Jun 21 2019 Fabian Affolter <mail@fabian-affolter.ch> - 6.3.1-1
1005e08
- Update to latest upstream release 6.3.1 (rhbz#1425652)
1005e08
- Fix conflict (rhbz#1661208)
1005e08
- Support for Python 3.8 (rhbz#716516)
1005e08
1005e08
* Tue Jun 11 2019 Fabian Affolter <mail@fabian-affolter.ch> - 6.3.0-1
1005e08
- Update to latest upstream release 6.3.0 (rhbz#1425652)
1005e08
1005e08
* Thu May 09 2019 Fabian Affolter <mail@fabian-affolter.ch> - 6.2.0-1
1005e08
- Update to latest upstream release 6.2.0 (rhbz#1425652)
b274cc9
fe410f5
* Fri Feb 22 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.2-2
92d368b
- Update comments
92d368b
6e8fbfa
* Tue Feb 12 2019 Ben Rosser <rosser.bjr@gmail.com> - 3.6.2-1
92d368b
- Update to latest upstream release (rhbz#1661208, rhbz#1624628)
6e8fbfa
ab7b7c1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-9
ab7b7c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ab7b7c1
6984f57
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-8
6984f57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6984f57
cefc5e9
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.0-7
cefc5e9
- Rebuilt for Python 3.7
cefc5e9
1623c7e
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.0-6
1623c7e
- Update Python 2 dependency declarations to new packaging standards
1623c7e
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1623c7e
f76e00b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-5
f76e00b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f76e00b
6dc0059
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-4
6dc0059
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6dc0059
b6cee1d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-3
b6cee1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b6cee1d
1af40b8
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.6.0-2
1af40b8
- Rebuild for Python 3.6
1af40b8
34d2aca
* Wed Nov 16 2016 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.0-1
34d2aca
- Update to latest upstream release 3.6.0
34d2aca
85be070
* Fri Aug 26 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.5.0-1
ef7e0d7
- Update to 3.5.0
ef7e0d7
- SPEC refactor
ef7e0d7
cdd41d2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
cdd41d2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
cdd41d2
Fabian Affolter 7dd9855
* Mon Feb 22 2016 Fabian Affolter <mail@fabian-affolter.ch> - 3.4.0-1
Fabian Affolter 7dd9855
- Update to latest upstream release 3.4.0 (rhbz#1310641)
Fabian Affolter 7dd9855
8c0f571
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-4
8c0f571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8c0f571
54accf1
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-3
54accf1
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
54accf1
ca4a6f4
* Fri Nov  6 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-2
ca4a6f4
- Only include the scipt in the python3 package.  The one in the python2
ca4a6f4
  package wouldn't function without manual intervention because it would
ca4a6f4
  require the python3-praw package but there was no dependency to it.
ca4a6f4
  Simply dropping it from the python-praw package also fixes the python-praw
ca4a6f4
  package to not require /usr/bin/python3
ca4a6f4
Fabian Affolter ca98098
* Tue Oct 06 2015 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.0-1
Fabian Affolter ca98098
- Update to latest upstream release 3.3.0
Fabian Affolter ca98098
d9f061d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.21-2
d9f061d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d9f061d
Fabian Affolter 3f8f529
* Sun Apr 05 2015 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.21-1
Fabian Affolter 3f8f529
- Update to latest upstream release 2.1.21 (rhbz#1206410)
Fabian Affolter 3f8f529
Fabian Affolter 5f53a8d
* Fri Jan 23 2015 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.20-1
Fabian Affolter 5f53a8d
- Update to latest upstream release (rhbz#1185340)
Fabian Affolter 5f53a8d
Fabian Affolter e00aca5
* Sun Dec 07 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.19-2
Fabian Affolter ed04974
- Add requirement python-requests (rhbz#1171444)
Fabian Affolter ed04974
Fabian Affolter 6048738
* Wed Nov 05 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.19-1
Fabian Affolter 6048738
- Update to new upstream release (rhbz#1070176)
Fabian Affolter 520695c
- Update patch0
Fabian Affolter 6048738
Fabian Affolter 870b07c
* Sun Sep 14 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.18-2
Fabian Affolter e490e52
- Add python3 subpackage (rhbz#1135689)
Fabian Affolter 870b07c
Fabian Affolter 870b07c
* Sat Aug 23 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.18-1
Fabian Affolter b6275f3
- Update to latest upstream version 2.1.18
Fabian Affolter b6275f3
effc9b8
* Mon Jul 14 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.17-1
effc9b8
- Disable update_checker (rhbz#1103097)
effc9b8
- Update to latest upstream version 2.1.17
effc9b8
e236af4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.16-2
e236af4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e236af4
82c42df
* Sat May 24 2014 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.16-1
82c42df
- Spec file update
82c42df
- Update to latest upstream version 2.1.16
82c42df
256b8bb
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-5
256b8bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
256b8bb
8fe0887
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-4
8fe0887
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8fe0887
2b02d74
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-3
2b02d74
- Fix more issues from review
2b02d74
2b02d74
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-2
2b02d74
- Fix few minor problems from review
2b02d74
2b02d74
* Sat Nov 10 2012 Elad Alfassa <elad@fedoraproject.org> - 1.0.15-1
2b02d74
- Initial packaging for Feora
2b02d74