Martin Gansser 48fc088
%global srcname wikipedia
Martin Gansser 48fc088
Martin Gansser 48fc088
Name:           python-%{srcname}
Martin Gansser 48fc088
Version:        1.4.5
d19c1f1
Release:        17%{?dist}
Martin Gansser 48fc088
Summary:        Wikipedia API for Python
Martin Gansser 48fc088
Martin Gansser 48fc088
License:        MIT
Martin Gansser 48fc088
URL:            https://github.com/barrust/Wikipedia
Martin Gansser 48fc088
Source0:        https://github.com/barrust/Wikipedia/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
Martin Gansser 48fc088
Martin Gansser 48fc088
BuildArch:      noarch
Martin Gansser 48fc088
Martin Gansser 48fc088
%description
Martin Gansser 48fc088
Search Wikipedia, get article summaries, get data like links and images
Martin Gansser 48fc088
from a page, and more.
Martin Gansser 48fc088
Martin Gansser 48fc088
%package -n     python3-%{srcname}
Martin Gansser 48fc088
Summary:        %{summary}
Martin Gansser 48fc088
%{?python_provide:%python_provide python3-%{srcname}}
Martin Gansser 48fc088
BuildRequires:  python3-devel
Martin Gansser 48fc088
BuildRequires:  python3-beautifulsoup4
Martin Gansser 48fc088
BuildRequires:  python3-nose
Martin Gansser 48fc088
BuildRequires:  python3-requests
Martin Gansser 48fc088
BuildRequires:  python3-setuptools
Martin Gansser 48fc088
Requires:       python3-beautifulsoup4
Martin Gansser 48fc088
Requires:       python3-requests
Martin Gansser 48fc088
Martin Gansser 48fc088
%description -n python3-%{srcname}
Martin Gansser 48fc088
Search Wikipedia, get article summaries, get data like links and images
Martin Gansser 48fc088
from a page, and more.
Martin Gansser 48fc088
Martin Gansser 48fc088
%prep
Martin Gansser 48fc088
%autosetup -n Wikipedia-%{version}
Martin Gansser 48fc088
Martin Gansser 48fc088
%build
Martin Gansser 48fc088
%py3_build
Martin Gansser 48fc088
Martin Gansser 48fc088
%install
Martin Gansser 48fc088
%py3_install
Martin Gansser 48fc088
Martin Gansser 48fc088
%check
Martin Gansser 48fc088
nosetests-%{python3_version}
Martin Gansser 48fc088
Martin Gansser 48fc088
%files -n python3-%{srcname}
Martin Gansser 48fc088
%doc README.rst
Martin Gansser 48fc088
%license LICENSE
Martin Gansser 48fc088
%{python3_sitelib}/%{srcname}
Martin Gansser 48fc088
%{python3_sitelib}/%{srcname}-*.egg-info
Martin Gansser 48fc088
Martin Gansser 48fc088
%changelog
d19c1f1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-17
d19c1f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d19c1f1
de2335a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.5-16
de2335a
- Rebuilt for Python 3.9
de2335a
c4c8c9c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-15
c4c8c9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c4c8c9c
3a7d43e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.5-14
3a7d43e
- Rebuilt for Python 3.8.0rc1 (#1748018)
3a7d43e
dcb4b87
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.5-13
dcb4b87
- Rebuilt for Python 3.8
dcb4b87
56a7f05
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-12
56a7f05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
56a7f05
a9f98ca
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-11
a9f98ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a9f98ca
6a6fded
* Tue Oct 02 2018 Martin Gansser <martinkg@fedoraproject.org> - 1.4.5-10
6a6fded
- Drop python2 subpackage
6a6fded
4a529e6
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-9
4a529e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4a529e6
a73c6a8
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.5-8
a73c6a8
- Rebuilt for Python 3.7
a73c6a8
1aad2ee
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.4.5-7
1aad2ee
- Update Python 2 dependency declarations to new packaging standards
1aad2ee
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1aad2ee
9ed8330
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-6
9ed8330
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9ed8330
01337b9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-5
01337b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
01337b9
9c1018a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-4
9c1018a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9c1018a
6554242
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.4.5-3
6554242
- Rebuild for Python 3.6
6554242
Martin Gansser 48fc088
* Tue Oct 18 2016 Martin Gansser <martinkg@fedoraproject.org> - 1.4.5-2
Martin Gansser 48fc088
- Update to BR python2-requests
Martin Gansser 48fc088
- Update to BR python2-setuptools
Martin Gansser 48fc088
Martin Gansser 48fc088
* Fri Oct 14 2016 Martin Gansser <martinkg@fedoraproject.org> - 1.4.5-1
Martin Gansser 48fc088
- Update to 1.4.5-1
Martin Gansser 48fc088
- Cleanup spec file
Martin Gansser 48fc088
- Use Requires python2-requests
Martin Gansser 48fc088
- Write the content to Summary and in the rest use %%{summary} marco
Martin Gansser 48fc088
Martin Gansser 48fc088
* Sun Oct 02 2016 Martin Gansser <martinkg@fedoraproject.org> - 1.4.4-1.gitb329024
Martin Gansser 48fc088
- Initial package