Projects
home:pandora:RobinOS23
pyparsing
_service:download_src_package:pyparsing.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:pyparsing.spec of Package pyparsing
%define anolis_release 1 %global build_wheel 1 %global python_wheelname pyparsing-%{version}-py3-none-any.whl # Disable tests by default because they fail to run inside mock builds. # at the moment, but can run locally. To build and run tests, do: # rpmbuild -ba --with runtests pyparsing.spec %bcond_with runtests Name: pyparsing Version: 3.0.7 Release: %{anolis_release}%{?dist} Summary: Python library for creating PEG parsers License: MIT URL: https://github.com/pyparsing/pyparsing Source0: https://github.com/pyparsing/pyparsing/archive/refs/tags/%{name}_%{version}.tar.gz BuildArch: noarch BuildRequires: dos2unix BuildRequires: python3-devel BuildRequires: python3-setuptools %if 0%{?build_wheel} BuildRequires: python3-sphinx BuildRequires: python3-pip BuildRequires: python3-wheel %endif %description The pyparsing module is an alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions. The pyparsing module provides a library of classes that client code uses to construct the grammar directly in Python code. %package doc Summary: Documentation for pyparsing python package License: MIT and GPLv2+ and GPLv3+ and BSD %description doc The package contains documentation for pyparsing. %package -n python3-pyparsing Summary: %{summary} %{?python_provide:%python_provide python3-pyparsing} %description -n python3-pyparsing The pyparsing module is an alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions. The pyparsing module provides a library of classes that client code uses to construct the grammar directly in Python code. %prep %autosetup -n %{name}-%{name}_%{version} -p1 dos2unix -k CHANGES LICENSE %build %py3_build_wheel # build docs pushd docs # Theme is not available sed -i '/alabaster/d' conf.py sphinx-build -b html . html popd %install %py3_install_wheel %{python_wheelname} %check %if %{with runtests} pip3 install -r tests/requirements.txt pre-commit install python3 -m unittest discover tests %endif %files -n python3-pyparsing %license LICENSE %doc CHANGES README.rst %{python3_sitelib}/pyparsing/ %{python3_sitelib}/pyparsing-*-info/ %files doc %license LICENSE %doc CHANGES README.rst docs/html examples %changelog * Wed Apr 13 2022 happy_orange <songnannan@linux.alibaba.com> - 3.0.7-1 - Init package from upstream 3.0.7
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2