14
0
forked from pool/python-emoji

Accepting request 596671 from home:theMarix:branches:devel:languages:python

- Updated to upstream version 0.5.0.
  + Updated emoji set.
  + New function to count emojis in a string.
- Fixed example in package description.
- Fixed source URL.

OBS-URL: https://build.opensuse.org/request/show/596671
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-emoji?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2018-04-15 13:13:53 +00:00
committed by Git OBS Bridge
parent a12de522db
commit 192aed56b6
4 changed files with 26 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
#
# spec file for package python-emoji
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 Matthias Bach <marix@marix.org>.
#
# All modifications and additions to the file contributed by third parties
@@ -13,22 +14,24 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-emoji
Version: 0.4.5
Version: 0.5.0
Release: 0
License: BSD-3-Clause
Summary: Emoji for Python
Url: https://github.com/carpedm20/emoji/
License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/e/emoji-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Url: https://github.com/carpedm20/emoji/
Source: https://files.pythonhosted.org/packages/47/e7/cf76e0774b13459e61ffe16a042a35f42e292aeebba060b919c05b0854ab/emoji-0.5.0.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@@ -40,7 +43,7 @@ In addition to the official list defined by the unicode consortium a whole bunch
Example:
>> import emoji
>> print(emoji.emojize('Python is :thumbs_up_sign:'))
>> print(emoji.emojize('Python is :thumbs_up:'))
Python is 👍
>> print(emoji.emojize('Python is :thumbsup:', use_aliases=True))
Python is 👍