- 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 Thu May 31 15:39:30 UTC 2018 - toddrme2178@gmail.com

View File

@ -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
@ -46,7 +45,7 @@ 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
@ -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
@ -88,12 +87,12 @@ $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/