forked from pool/python-textX
Accepting request 806971 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/806971 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-textX?expand=0&rev=11
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 18 09:10:29 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 11 11:27:12 UTC 2020 - pgajdos@suse.com
|
Wed Mar 11 11:27:12 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -31,6 +31,8 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-Arpeggio >= 1.9.0
|
Requires: python-Arpeggio >= 1.9.0
|
||||||
Requires: python-click >= 7.0
|
Requires: python-click >= 7.0
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Obsoletes: %{name}-doc
|
Obsoletes: %{name}-doc
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION tests
|
# SECTION tests
|
||||||
@@ -96,13 +98,14 @@ popd
|
|||||||
pushd tests/functional/registration/projects/flow_codegen
|
pushd tests/functional/registration/projects/flow_codegen
|
||||||
%python_install
|
%python_install
|
||||||
popd
|
popd
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/textx
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/textx
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/textx
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
export PATH=$PATH:%{buildroot}%{_bindir}
|
# textx executable is update-alternative'd
|
||||||
%pytest
|
%pytest -k 'not test_subcommand'
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/data_dsl*
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/data_dsl*
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/flow_codegen*
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/flow_codegen*
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/flow_dsl*
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/flow_dsl*
|
||||||
@@ -110,9 +113,15 @@ export PATH=$PATH:%{buildroot}%{_bindir}
|
|||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/textX_subcommand_test*
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/textX_subcommand_test*
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/textx_subcommand_test*
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/textx_subcommand_test*
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative textx
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative textx
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python3_only %{_bindir}/textx
|
%python_alternative %{_bindir}/textx
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc AUTHORS.md CHANGELOG.md README.md
|
%doc AUTHORS.md CHANGELOG.md README.md
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user