14
0
forked from pool/python-uniseg

Accepting request 806961 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/806961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uniseg?expand=0&rev=4
This commit is contained in:
2020-05-19 12:48:25 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 09:10:42 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 11 08:11:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Wed Dec 11 08:11:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-uniseg # spec file for package python-uniseg
# #
# Copyright (c) 2019 SUSE LLC # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,8 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: unzip BuildRequires: unzip
Requires: python Requires: python
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -45,15 +47,22 @@ sed -i -e '/^#!\//, 1d' uniseg/*test.py uniseg/samples/*.py
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/uniseg-dbpath
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %python_exec setup.py test
%post
%python_install_alternative uniseg-dbpath
%postun
%python_uninstall_alternative uniseg-dbpath
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README %doc README
%python3_only %{_bindir}/uniseg-dbpath %python_alternative %{_bindir}/uniseg-dbpath
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog