14
0

Accepting request 807238 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807238
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rstcheck?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-19 12:13:32 +00:00
committed by Git OBS Bridge
parent d6d832eca7
commit 0ae2061058
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 09:27:48 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 10 11:19:41 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Tue Mar 10 11:19:41 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -35,6 +35,8 @@ BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-docutils >= 0.7 Requires: python-docutils >= 0.7
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: bash Recommends: bash
Recommends: gcc Recommends: gcc
Recommends: gcc-c++ Recommends: gcc-c++
@@ -61,6 +63,7 @@ sed -i -e '/^#!\//, 1d' rstcheck.py
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/rstcheck
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -72,10 +75,16 @@ export LANG=en_US.UTF-8
#PYTHON=$python ./test.bash #PYTHON=$python ./test.bash
#} #}
%post
%python_install_alternative rstcheck
%postun
%python_uninstall_alternative rstcheck
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc AUTHORS.rst README.rst %doc AUTHORS.rst README.rst
%python3_only %{_bindir}/rstcheck %python_alternative %{_bindir}/rstcheck
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog