Accepting request 509280 from home:TheBlackCat:branches:devel:languages:python
Fix wrong-script-interpreter rpmlint error. OBS-URL: https://build.opensuse.org/request/show/509280 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ply?expand=0&rev=32
This commit is contained in:
parent
a04ecef9b7
commit
bfab450618
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Fix wrong-script-interpreter rpmlint error.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 16 19:28:47 UTC 2017 - rjschwei@suse.com
|
Thu Mar 16 19:28:47 UTC 2017 - rjschwei@suse.com
|
||||||
|
|
||||||
|
@ -24,14 +24,12 @@ 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: 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
|
Patch0: python-ply-shebangs.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if 0%{?suse_version} > 1110 || 0%{?fedora} > 12 || 0%{?mdkversion}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,13 +43,13 @@ productions, precedence rules, error recovery, and support for ambiguous grammar
|
|||||||
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 doc
|
%package -n %{name}-doc
|
||||||
Summary: Python Lex & Yacc
|
Summary: Python Lex & Yacc
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description doc
|
%description -n %{name}-doc
|
||||||
PLY is yet another implementation of lex and yacc for Python. Some notable
|
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.
|
||||||
@ -68,11 +66,19 @@ It is compatible with both Python 2 and Python 3.
|
|||||||
# remove unneeded executable bit
|
# remove unneeded executable bit
|
||||||
chmod -x test/testlex.py
|
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
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONPATH=%{buildroot}%{python_sitelib}
|
export PYTHONPATH=%{buildroot}%{python_sitelib}
|
||||||
@ -83,10 +89,12 @@ pushd test
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc ANNOUNCE CHANGES TODO
|
%doc ANNOUNCE CHANGES TODO
|
||||||
%python_sitelib/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%files %{python_files doc}
|
%files -n %{name}-doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc doc example test
|
%doc doc/
|
||||||
|
%doc example/
|
||||||
|
%doc test/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user