15
0

Accepting request 807592 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807592
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-panflute?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-20 11:27:48 +00:00
committed by Git OBS Bridge
parent 071f5edb0f
commit 387d1e6b18
2 changed files with 19 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:02 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Apr 20 11:31:14 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -32,6 +32,8 @@ BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-click
Requires: python-future
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
@@ -60,14 +62,24 @@ Panflute is a Python package for writing Pandoc filters.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/panfl
%python_clone -a %{buildroot}%{_bindir}/panflute
%python_expand %fdupes %{buildroot}%{$python_sitelib}
sed -i 's|shutilwhich||' %{buildroot}%{python3_sitelib}/panflute-*.egg-info/requires.txt
%post
%python_install_alternative panfl
%python_install_alternative panflute
%postun
%python_uninstall_alternative panfl
%python_uninstall_alternative panflute
%files %{python_files}
%doc README.md
%license LICENSE
%python3_only %{_bindir}/panflute
%python3_only %{_bindir}/panfl
%python_alternative %{_bindir}/panflute
%python_alternative %{_bindir}/panfl
%{python_sitelib}/*
%changelog