- Install some license

- Remove devel dependency

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ply?expand=0&rev=36
This commit is contained in:
Tomáš Chvátal 2018-08-29 09:13:55 +00:00 committed by Git OBS Bridge
parent d0084ed86d
commit fe2de9aca6
2 changed files with 18 additions and 13 deletions

View File

@ -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

View File

@ -23,10 +23,9 @@ Release: 0
Summary: Python Lex & Yacc
License: BSD-3-Clause
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
Patch0: python-ply-shebangs.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
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
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
productions, precedence rules, error recovery, and support for ambiguous grammars.
PLY provides most of the standard lex/yacc features including support for empty
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.
%package -n %{name}-doc
Summary: Python Lex & Yacc
License: LGPL-2.1+
License: LGPL-2.1-or-later
Group: Development/Languages/Python
%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
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
productions, precedence rules, error recovery, and support for ambiguous grammars.
PLY provides most of the standard lex/yacc features including support for empty
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.
%prep
@ -67,7 +66,7 @@ It is compatible with both Python 2 and Python 3.
chmod -x test/testlex.py
# 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 example
@ -82,18 +81,18 @@ find example -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;
%check
pushd test
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
$python -B testlex.py
$python -B testlex.py
$python -B testyacc.py
}
popd
%files %{python_files}
%defattr(-,root,root,-)
# yay for upstream that puts the license to readme
%license README.md
%doc ANNOUNCE CHANGES README.md TODO
%{python_sitelib}/*
%files -n %{name}-doc
%defattr(-,root,root,-)
%doc doc/
%doc example/