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:
Dominique Leuenberger 2018-08-31 07:51:46 +00:00 committed by Git OBS Bridge
commit 0abfdc9b90
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
@ -46,7 +45,7 @@ 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
@ -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
@ -88,12 +87,12 @@ $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/