File python3-telethon.spec of Package python3-telethon
#
# spec file for package python3-telethon
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python3-telethon
Version: 1.11.3
Release: 0
Summary: Pure Python 3 MTProto API Telegram client library, for bots too
License: MIT
Url: https://github.com/LonamiWebs/Telethon
Source0: Telethon-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python3-alembic
BuildRequires: python3-devel
BuildRequires: python3-pytest-runner
BuildRequires: python3-setuptools
BuildArch: noarch
%description
Telethon is an asyncio Python 3 MTProto library to interact with Telegram's API as a user or through a bot account (bot API alternative).
Important
If you have code using Telethon before its 1.0 version, you must read Compatibility and Convenience to learn how to migrate.
%prep
%autosetup -n Telethon-%{version} -p1
%build
%python3_build
%install
%python3_install
find {README.rst,LICENSE} -type f -perm /111 -exec chmod 644 {} \;
%fdupes %{buildroot}/%{_prefix}
%files
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%changelog