14
0
forked from pool/python-misaka

Accepting request 808643 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/808643
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-misaka?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2020-05-25 09:21:51 +00:00
committed by Git OBS Bridge
parent a514eceede
commit edc244d2e6
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 06:50:47 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Jan 16 08:24:20 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -32,6 +32,8 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: tidy
Requires: python-cffi >= 1.12.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -45,6 +47,7 @@ A CFFI binding for Hoedown_ (version 3), a markdown parsing library.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/misaka
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
@@ -52,10 +55,16 @@ A CFFI binding for Hoedown_ (version 3), a markdown parsing library.
$python tests/run_tests.py
}
%post
%python_install_alternative misaka
%postun
%python_uninstall_alternative misaka
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%python3_only %{_bindir}/misaka
%python_alternative %{_bindir}/misaka
%{python_sitearch}/*
%changelog