Accepting request 632111 from devel:languages:python
- Install some license - Remove devel dependency OBS-URL: https://build.opensuse.org/request/show/632111 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ply?expand=0&rev=28
This commit is contained in:
commit
0abfdc9b90
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 29 09:13:41 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Install some license
|
||||||
|
- Remove devel dependency
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 31 15:39:30 UTC 2018 - toddrme2178@gmail.com
|
Thu May 31 15:39:30 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -23,10 +23,9 @@ Release: 0
|
|||||||
Summary: Python Lex & Yacc
|
Summary: Python Lex & Yacc
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://www.dabeaz.com/ply/
|
URL: http://www.dabeaz.com/ply/
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/ply/ply-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/ply/ply-%{version}.tar.gz
|
||||||
Patch0: python-ply-shebangs.patch
|
Patch0: python-ply-shebangs.patch
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -38,15 +37,15 @@ PLY is yet another implementation of lex and yacc for Python. Some notable
|
|||||||
features include the fact that its implemented entirely in Python and it
|
features include the fact that its implemented entirely in Python and it
|
||||||
uses LALR(1) parsing which is efficient and well suited for larger grammars.
|
uses LALR(1) parsing which is efficient and well suited for larger grammars.
|
||||||
|
|
||||||
PLY provides most of the standard lex/yacc features including support for empty
|
PLY provides most of the standard lex/yacc features including support for empty
|
||||||
productions, precedence rules, error recovery, and support for ambiguous grammars.
|
productions, precedence rules, error recovery, and support for ambiguous grammars.
|
||||||
|
|
||||||
PLY is extremely easy to use and provides very extensive error checking.
|
PLY is extremely easy to use and provides very extensive error checking.
|
||||||
It is compatible with both Python 2 and Python 3.
|
It is compatible with both Python 2 and Python 3.
|
||||||
|
|
||||||
%package -n %{name}-doc
|
%package -n %{name}-doc
|
||||||
Summary: Python Lex & Yacc
|
Summary: Python Lex & Yacc
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1-or-later
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
|
||||||
%description -n %{name}-doc
|
%description -n %{name}-doc
|
||||||
@ -54,10 +53,10 @@ PLY is yet another implementation of lex and yacc for Python. Some notable
|
|||||||
features include the fact that its implemented entirely in Python and it
|
features include the fact that its implemented entirely in Python and it
|
||||||
uses LALR(1) parsing which is efficient and well suited for larger grammars.
|
uses LALR(1) parsing which is efficient and well suited for larger grammars.
|
||||||
|
|
||||||
PLY provides most of the standard lex/yacc features including support for empty
|
PLY provides most of the standard lex/yacc features including support for empty
|
||||||
productions, precedence rules, error recovery, and support for ambiguous grammars.
|
productions, precedence rules, error recovery, and support for ambiguous grammars.
|
||||||
|
|
||||||
PLY is extremely easy to use and provides very extensive error checking.
|
PLY is extremely easy to use and provides very extensive error checking.
|
||||||
It is compatible with both Python 2 and Python 3.
|
It is compatible with both Python 2 and Python 3.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -67,7 +66,7 @@ It is compatible with both Python 2 and Python 3.
|
|||||||
chmod -x test/testlex.py
|
chmod -x test/testlex.py
|
||||||
|
|
||||||
# Fix wrong-script-interpreter
|
# Fix wrong-script-interpreter
|
||||||
find example -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;
|
find example -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python||" {} \;
|
||||||
|
|
||||||
%fdupes doc
|
%fdupes doc
|
||||||
%fdupes example
|
%fdupes example
|
||||||
@ -82,18 +81,18 @@ find example -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;
|
|||||||
%check
|
%check
|
||||||
pushd test
|
pushd test
|
||||||
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
|
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||||
$python -B testlex.py
|
$python -B testlex.py
|
||||||
$python -B testyacc.py
|
$python -B testyacc.py
|
||||||
}
|
}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
# yay for upstream that puts the license to readme
|
||||||
|
%license README.md
|
||||||
%doc ANNOUNCE CHANGES README.md TODO
|
%doc ANNOUNCE CHANGES README.md TODO
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc doc/
|
%doc doc/
|
||||||
%doc example/
|
%doc example/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user