forked from pool/python-phply
Accepting request 807605 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807605 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-phply?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
f81d46c0be
commit
5e4a2b818f
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 20 07:26:13 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 18 12:58:05 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-phply
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -31,6 +31,8 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-ply
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -45,17 +47,27 @@ phply is a parser for the PHP programming language written using PLY, a Lex/YACC
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/phpparse
|
||||
%python_clone -a %{buildroot}%{_bindir}/phplex
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%post
|
||||
%python_install_alternative phpparse
|
||||
%python_install_alternative phplex
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative phpparse
|
||||
%python_uninstall_alternative phplex
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%python3_only %{_bindir}/phplex
|
||||
%python3_only %{_bindir}/phpparse
|
||||
%python_alternative %{_bindir}/phplex
|
||||
%python_alternative %{_bindir}/phpparse
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user