forked from pool/python-misaka
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-misaka?expand=0&rev=8
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without libalternatives
|
||||||
Name: python-misaka
|
Name: python-misaka
|
||||||
Version: 2.1.1
|
Version: 2.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -29,12 +30,12 @@ BuildRequires: %{python_module devel}
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: tidy
|
BuildRequires: tidy
|
||||||
|
Requires: alts
|
||||||
Requires: python-cffi >= 1.12.0
|
Requires: python-cffi >= 1.12.0
|
||||||
Requires(post): alts
|
|
||||||
Requires(postun): alts
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -56,11 +57,11 @@ A CFFI binding for Hoedown_ (version 3), a markdown parsing library.
|
|||||||
$python tests/run_tests.py
|
$python tests/run_tests.py
|
||||||
}
|
}
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative misaka
|
# removing old update-alternatives entries
|
||||||
|
%python_libalternatives_reset_alternative misaka
|
||||||
|
|
||||||
%postun
|
# post and postun calls are not needed with libalternatives only
|
||||||
%python_uninstall_alternative misaka
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user