20ae897
%global appname pytelegrambotapi
20ae897
%global richname pyTelegramBotAPI
20ae897
20ae897
%global appsum Python Telegram bot API
20ae897
%global appdesc A simple, but extensible Python implementation for the Telegram Bot API
20ae897
20ae897
Name: python-%{appname}
9da8e5d
Version: 3.6.3
10112ba
Release: 1%{?dist}
20ae897
Summary: %{appsum}
20ae897
20ae897
License: GPLv2+
20ae897
URL: https://github.com/eternnoir/%{richname}
20ae897
Source0: %{url}/archive/%{version}.tar.gz#/%{appname}-%{version}.tar.gz
20ae897
BuildArch: noarch
20ae897
20ae897
BuildRequires: python2-devel
20ae897
BuildRequires: python3-devel
20ae897
20ae897
BuildRequires: python2dist(requests)
20ae897
BuildRequires: python3dist(requests)
20ae897
BuildRequires: python2dist(wheel)
20ae897
BuildRequires: python3dist(wheel)
20ae897
BuildRequires: python2dist(six)
20ae897
BuildRequires: python3dist(six)
20ae897
20ae897
%description
20ae897
%{appdesc}.
20ae897
20ae897
%package -n python2-%{appname}
20ae897
Summary: %{appsum}
1c8b4cc
Requires: python2dist(requests)
1c8b4cc
Requires: python2dist(six)
20ae897
%{?python_provide:%python_provide python2-%{appname}}
20ae897
20ae897
%description -n python2-%{appname}
20ae897
%{appdesc}.
20ae897
20ae897
%package -n python3-%{appname}
20ae897
Summary: %{appsum}
1c8b4cc
Requires: python3dist(requests)
1c8b4cc
Requires: python3dist(six)
20ae897
%{?python_provide:%python_provide python3-%{appname}}
20ae897
20ae897
%description -n python3-%{appname}
20ae897
%{appdesc}.
20ae897
20ae897
%prep
20ae897
%autosetup -n %{richname}-%{version}
20ae897
20ae897
%build
20ae897
%py2_build
20ae897
%py3_build
20ae897
20ae897
%install
20ae897
%py2_install
20ae897
%py3_install
20ae897
20ae897
%check
20ae897
%{__python2} setup.py test
20ae897
%{__python3} setup.py test
20ae897
20ae897
%files -n python2-%{appname}
20ae897
%license LICENSE
20ae897
%doc README.rst README.md
20ae897
%{python2_sitelib}/*
20ae897
20ae897
%files -n python3-%{appname}
20ae897
%license LICENSE
20ae897
%doc README.rst README.md
20ae897
%{python3_sitelib}/*
20ae897
20ae897
%changelog
9da8e5d
* Tue May 15 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 3.6.3-1
9da8e5d
- Updated to version 3.6.3.
9da8e5d
da79c62
* Sat Mar 24 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 3.6.2-1
da79c62
- Updated to version 3.6.2.
da79c62
1a72e35
* Mon Mar 12 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 3.6.1-1
1a72e35
- Updated to version 3.6.1.
1a72e35
10112ba
* Fri Mar 02 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 3.6.0-1
10112ba
- Updated to version 3.6.0.
7ddbcaf
e0467d6
* Sat Feb 03 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 3.5.2-1
e0467d6
- Updated to version 3.5.2.
e0467d6
1c8b4cc
* Fri Dec 01 2017 Vitaly Zaitsev <vitaly@easycoding.org> - 3.5.1-1
1c8b4cc
- Updated to version 3.5.1.
1c8b4cc
20ae897
* Wed Aug 23 2017 Vitaly Zaitsev <vitaly@easycoding.org> - 3.2.0-2
20ae897
- Small SPEC fixes.
20ae897
20ae897
* Tue Aug 22 2017 Vitaly Zaitsev <vitaly@easycoding.org> - 3.2.0-1
20ae897
- Initial SPEC release.