diff options
author | Hyunjee Kim <hj0426.kim@samsung.com> | 2020-04-10 13:10:53 +0900 |
---|---|---|
committer | Hyunjee Kim <hj0426.kim@samsung.com> | 2020-04-10 13:12:27 +0900 |
commit | d153b8722dc9037e6223f5994020650064cf40df (patch) | |
tree | 561410e5c8b076fd588dc8c946ec583b7b009ea7 | |
parent | d9efd3b770ee34e25e88c11a3510d85cdf3a4dbb (diff) | |
download | python3-ply-accepted/tizen_7.0_base_hotfix.tar.gz python3-ply-accepted/tizen_7.0_base_hotfix.tar.bz2 python3-ply-accepted/tizen_7.0_base_hotfix.zip |
Add packaging filestizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_base/20200413.213523submit/tizen_base/20200413.005309submit/tizen_6.5_base/20211028.134701submit/tizen_6.0_base_hotfix/20201102.162702submit/tizen_6.0_base_hotfix/20201030.192502submit/tizen_6.0_base/20201029.184802accepted/tizen/base/dev/20230602.080723accepted/tizen/base/20221115.103640accepted/tizen/base/20200413.213946accepted/tizen/base/20200413.213326accepted/tizen/8.0/base/20231005.045201accepted/tizen/7.0/base/hotfix/20221116.055211accepted/tizen/7.0/base/20221116.025804accepted/tizen/6.5/base/20211028.060025accepted/tizen/6.0/base/hotfix/20201102.093218accepted/tizen/6.0/base/20201029.105743tizen_basetizen_8.0_basetizen_7.0_base_hotfixtizen_7.0_basetizen_6.5_basetizen_6.0_base_hotfixtizen_6.0_baseaccepted/tizen_base_devaccepted/tizen_baseaccepted/tizen_8.0_baseaccepted/tizen_7.0_base_hotfixaccepted/tizen_7.0_baseaccepted/tizen_6.5_baseaccepted/tizen_6.0_base_hotfixaccepted/tizen_6.0_base
Change-Id: I908df4dbd7a71de8f3d445aef2d93e5f729422e9
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
-rw-r--r-- | LICENSE | 25 | ||||
-rw-r--r-- | packaging/python3-ply.manifest | 5 | ||||
-rw-r--r-- | packaging/python3-ply.spec | 54 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1,25 @@ +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/packaging/python3-ply.manifest b/packaging/python3-ply.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python3-ply.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/python3-ply.spec b/packaging/python3-ply.spec new file mode 100644 index 0000000..6640258 --- /dev/null +++ b/packaging/python3-ply.spec @@ -0,0 +1,54 @@ +Name: python3-ply +Version: 3.11 +Release: 0 +Summary: Python Lex & Yacc +License: BSD-3-Clause +Group: Development/Languages/Python +URL: http://www.dabeaz.com/ply/ +Source: https://files.pythonhosted.org/packages/source/p/ply/ply-%{version}.tar.gz +Source1001: python3-ply.manifest +BuildRequires: python3-setuptools +BuildRequires: fdupes +BuildArch: noarch + +%description +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 extensive error checking. +It is compatible with both Python 2 and Python 3. + +%prep +%setup -q -n ply-%{version} +cp %{SOURCE1001} . +# remove unneeded executable bit +chmod -x test/testlex.py + +# Fix wrong-script-interpreter +find example -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python3||" {} + + +%fdupes example + +%build +%{_bindir}/python3 setup.py build + +%install +%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes %{buildroot}%{python3_sitelib} + +%check +pushd test +PYTHONPATH=%{buildroot}%{$python3_sitelib} +%{_bindir}/python3 -B testlex.py +%{_bindir}/python3 -B testyacc.py +popd + +%files +%manifest %{name}.manifest +%license LICENSE +# yay for upstream that puts the license to readme +%{python3_sitelib}/* |