Hello community, here is the log from the commit of package python-ply for openSUSE:Factory checked in at 2017-07-12 19:33:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ply (Old) and /work/SRC/openSUSE:Factory/.python-ply.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ply" Wed Jul 12 19:33:27 2017 rev:26 rq:509281 version:3.10 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ply/python-ply.changes 2017-03-17 15:07:40.372309246 +0100 +++ /work/SRC/openSUSE:Factory/.python-ply.new/python-ply.changes 2017-07-12 19:33:28.301819472 +0200 @@ -1,0 +2,5 @@ +Mon Jul 10 18:42:12 UTC 2017 - [email protected] + +- Fix wrong-script-interpreter rpmlint error. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ply.spec ++++++ --- /var/tmp/diff_new_pack.0WVKqc/_old 2017-07-12 19:33:28.877738216 +0200 +++ /var/tmp/diff_new_pack.0WVKqc/_new 2017-07-12 19:33:28.877738216 +0200 @@ -24,14 +24,12 @@ License: BSD-3-Clause Group: Development/Languages/Python Url: http://www.dabeaz.com/ply/ -Source: http://www.dabeaz.com/ply/ply-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/ply/ply-%{version}.tar.gz Patch0: python-ply-shebangs.patch BuildRequires: %{python_module devel} +BuildRequires: fdupes BuildRequires: python-rpm-macros -%if 0%{?suse_version} > 1110 || 0%{?fedora} > 12 || 0%{?mdkversion} BuildArch: noarch -%endif - %python_subpackages %description @@ -45,13 +43,13 @@ PLY is extremely easy to use and provides very extensive error checking. It is compatible with both Python 2 and Python 3. -%package doc +%package -n %{name}-doc Summary: Python Lex & Yacc License: LGPL-2.1+ Group: Development/Languages/Python Requires: %{name} = %{version} -%description doc +%description -n %{name}-doc 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. @@ -68,11 +66,19 @@ # remove unneeded executable bit chmod -x test/testlex.py +# Fix wrong-script-interpreter +find example -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \; + +%fdupes doc +%fdupes example +%fdupes test + %build %python_build %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check export PYTHONPATH=%{buildroot}%{python_sitelib} @@ -83,10 +89,12 @@ %files %{python_files} %defattr(-,root,root,-) %doc ANNOUNCE CHANGES TODO -%python_sitelib/* +%{python_sitelib}/* -%files %{python_files doc} +%files -n %{name}-doc %defattr(-,root,root,-) -%doc doc example test +%doc doc/ +%doc example/ +%doc test/ %changelog
