Name: python-generateds Version: 2.44.3 Release: 1%{dist} Summary: generateDS.py generates Python data structures from an Xschema document License: Apache-2.0 URL: https://sourceforge.net/projects/generateds/ Source: generateds-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel BuildRequires: pyproject-rpm-macros BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-wheel BuildRequires: python%{python3_pkgversion}-pytest # Fill in the actual package description to submit package to Fedora %global _description %{expand: generateDS.py generates Python data structures from an Xschema document. It generates a file containing: (1) a Python class for each element definition and (2) parsers (which use the Python lxml library) for XML documents that satisfy the Xschema document. The class definitions contain: - A constructor with initializers for member variables. - Get and set methods for member variables. - A 'build' method used during parsing to populate an instance. - An 'export' method that will re-create (write out) the XML element in an XML document. - Etc. See ``generateDS.txt``/``generateDS.html`` for information about more capabilities, how to use it, etc.} %description %_description %package -n python%{python3_pkgversion}-generateds Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-generateds} Provides: python3.9dist(generateds) = %{version} Requires: python%{python3_pkgversion}-urllib3 >= 1.21.1, python%{python3_pkgversion}-urllib3 < 1.27 Requires: python%{python3_pkgversion}-requests >= 2.21.0 Requires: python%{python3_pkgversion}-lxml >= 4.6.5 Requires: python%{python3_pkgversion}-six >= 1.15.0 Requires: python%{python3_pkgversion}-chardet >= 3.0.2, python%{python3_pkgversion}-chardet < 4 Requires: python%{python3_pkgversion}-idna >= 2.5, python%{python3_pkgversion}-idna < 3 %description -n python%{python3_pkgversion}-generateds %_description %prep %autosetup -p1 -n generateds-%{version} %build %pyproject_wheel %install %pyproject_install # For official Fedora packages, including files with '*' +auto is not allowed # Replace it with a list of relevant Python modules/globs and list extra files in %%files %pyproject_save_files '*' +auto %files -n python%{python3_pkgversion}-generateds %{python3_sitelib}/libgenerateDS/* %{python3_sitelib}/generateDS-%{version}.dist-info/* %{python3_sitelib}/__pycache__/*.pyc %{python3_sitelib}/process_includes.py %{_bindir}/collect_namespace_mappings %{_bindir}/gds_collect_namespace_mappings.py %{_bindir}/gends_extract_simple_types %{_bindir}/gends_extract_simple_types.py %{_bindir}/gends_generate_django %{_bindir}/gends_generate_django.py %{_bindir}/gends_run_gen_django %{_bindir}/gends_run_gen_django.py %{_bindir}/generateDS %{_bindir}/generateDS.py %{_bindir}/generateds_gui %{_bindir}/generateds_gui.py %{_bindir}/process_includes %{_bindir}/process_includes.py