pyp2rpm 3.3.5-1 (znver1;i686;aarch64;x86_64) 2020-13407
-9999

Status rejected
Submitter itchka [@T] compuserve.com
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/927966
Packages
pyp2rpm-3.3.5-1.znver1.binary
pyp2rpm-3.3.5-1.znver1.source
pyp2rpm-3.3.5-1.i686.binary
pyp2rpm-3.3.5-1.i686.source
pyp2rpm-3.3.5-1.aarch64.binary
pyp2rpm-3.3.5-1.aarch64.source
pyp2rpm-3.3.5-1.x86_64.binary
pyp2rpm-3.3.5-1.x86_64.source
Build Date 2020-12-29 08:45:35 +0000 UTC
Last Updated 2020-12-29 18:22:30.95588735 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 66e00965983ba40b7b3c5e6efe568a217a00714b

commit 66e00965983ba40b7b3c5e6efe568a217a00714b
Author:     Colin <itchka@compuserve.com>
AuthorDate: Tue Dec 29 08:40:37 2020 +0000
Commit:     Colin <itchka@compuserve.com>
CommitDate: Tue Dec 29 08:40:37 2020 +0000

    Add patch
---
 add-openmandriva-spec-template.patch | 132 +++++++++++++++++++++++++++++++++++
 1 file changed, 132 insertions(+)
 create mode 100644 add-openmandriva-spec-template.patch

diff --git a/add-openmandriva-spec-template.patch b/add-openmandriva-spec-template.patch
new file mode 100644
index 0000000..d6b8a35
--- /dev/null
+++ b/add-openmandriva-spec-template.patch
@@ -0,0 +1,132 @@
+diff --git a/pyp2rpm/templates/openmandriva.spec b/pyp2rpm/templates/openmandriva.spec
+new file mode 100644
+index 0000000..9f84030
+--- /dev/null
++++ b/pyp2rpm/templates/openmandriva.spec
+@@ -0,0 +1,126 @@
++{{ data.credit_line }}
++{% from 'macros.spec' import dependencies, for_python_versions, underscored_or_pypi -%}
++%global pypi_name {{ data.name }}
++{%- if data.srcname %}
++%global srcname {{ data.srcname }}
++{%- endif %}
++
++Name:           {{ data.pkg_name|macroed_pkg_name(data.srcname) }}
++Version:        {{ data.version }}
++Release:        1
++Summary:        {{ data.summary }}
++Group:          Development/Python
++License:        {{ data.license }}
++URL:            {{ data.home_page }}
++Source0:        {{ data.source0|replace(data.name, '%{pypi_name}')|replace(data.version, '%{version}') }}
++
++{%- if not data.has_extension %}
++BuildArch:      noarch
++{%- endif %}
++{%- for pv in data.sorted_python_versions %}
++{{ dependencies(data.build_deps, False, pv, data.base_python_version, False) }}
++{%- endfor %}
++
++%description
++{{ data.description|truncate(400)|wordwrap }}
++{% for pv in data.sorted_python_versions %}
++%package -n     {{data.pkg_name|macroed_pkg_name(data.srcname)|name_for_python_version(pv, True) }}
++Summary:        %{summary}
++%{?python_provide:%python_provide {{data.pkg_name|macroed_pkg_name(data.srcname)|name_for_python_version(pv, True)}}}
++{{ dependencies(data.runtime_deps, True, pv, pv) }}
++%description -n {{data.pkg_name|macroed_pkg_name(data.srcname)|name_for_python_version(pv, True) }}
++{{ data.description|truncate(400)|wordwrap }}
++{% endfor -%}
++{%- if data.sphinx_dir %}
++%package -n {{ data.pkg_name|macroed_pkg_name(data.srcname)|name_for_python_version(None, True) }}-doc
++Summary:        {{ data.name }} documentation
++%description -n {{ data.pkg_name|macroed_pkg_name(data.srcname)|name_for_python_version(None, True) }}-doc
++Documentation for {{ data.name }}
++{%- endif %}
++
++%prep
++%autosetup -n {{ data.dirname|replace(data.name, '%{pypi_name}')|replace(data.version, '%{version}')|default('%{pypi_name}-%{version}', true) }}
++{%- if data.has_bundled_egg_info %}
++# Remove bundled egg-info
++rm -rf %{pypi_name}.egg-info
++{%- endif %}
++
++%build
++{%- for pv in data.sorted_python_versions %}
++%py{{ pv }}_build
++{%- endfor %}
++{%- if data.sphinx_dir %}
++# generate html docs
++PYTHONPATH=${PWD} {{ "sphinx-build"|script_name_for_python_version(data.base_python_version, False, True) }} {{ data.sphinx_dir }} html
++# remove the sphinx-build leftovers
++rm -rf html/.{doctrees,buildinfo}
++{%- endif %}
++
++%install
++{%- if data.python_versions|length > 0 %}
++# Must do the default python version install last because
++# the scripts in /usr/bin are overwritten with every setup.py install.
++{%- endif %}
++{%- for pv in data.python_versions + [data.base_python_version] %}
++{%- if pv == data.base_python_version and data.python_versions and data.scripts %}
++rm -rf %{buildroot}%{_bindir}/*
++{%- endif %}
++%py{{ pv }}_install
++{%- endfor -%}
++{% if data.has_test_suite %}
++
++%check
++{%- for pv in data.sorted_python_versions %}
++%{__python{{ pv }}} setup.py test
++{%- endfor %}
++{%- endif %}
++{% for pv in data.sorted_python_versions %}
++%files -n {{ data.pkg_name|macroed_pkg_name(data.srcname)|name_for_python_version(pv, True) }}
++{%- if data.doc_license %}
++%license {{data.doc_license|join(' ')}}
++{%- endif %}
++{%- if data.doc_files %}
++%doc {{data.doc_files|join(' ') }}
++{%- endif %}
++{%- if pv == data.base_python_version %}
++{%- for script in data.scripts %}
++%{_bindir}/{{ script }}
++{%- endfor %}
++{%- endif %}
++{%- if data.py_modules %}
++{%- for module in data.py_modules -%}
++{%- if pv == '3' %}
++%{python{{ pv }}_sitelib}/__pycache__/*
++{%- endif %}
++%{python{{ pv }}_sitelib}/{{ data.name | module_to_path(module) }}.py{% if pv != '3'%}*{% endif %}
++{%- endfor %}
++{%- endif %}
++{%- if data.has_extension %}
++{%- if data.has_packages %}
++{%- for package in data.packages %}
++%{python{{ pv }}_sitearch}/{{ package | package_to_path(data.name) }}
++{%- endfor %}
++{%- endif %}
++{%- if data.has_pth %}
++%{python{{ pv }}_sitearch}/{{ underscored_or_pypi(data.name, data.underscored_name) }}-%{version}-py%{python{{ pv }}_version}-*.pth
++{%- endif %}
++%{python{{ pv }}_sitearch}/{{ underscored_or_pypi(data.name, data.underscored_name) }}-%{version}-py%{python{{ pv }}_version}.egg-info
++{%- else %}
++{%- if data.has_packages %}
++{%- for package in data.packages %}
++%{python{{ pv }}_sitelib}/{{ package | package_to_path(data.name) }}
++{%- endfor %}
++{%- endif %}
++{%- if data.has_pth %}
++%{python{{ pv }}_sitelib}/{{ underscored_or_pypi(data.name, data.underscored_name) }}-%{version}-py%{python{{ pv }}_version}-*.pth
++{%- endif %}
++%{python{{ pv }}_sitelib}/{{ underscored_or_pypi(data.name, data.underscored_name) }}-%{version}-py%{python{{ pv }}_version}.egg-info
++{%- endif %}
++{% endfor %}
++{%- if data.sphinx_dir %}
++%files -n {{ data.pkg_name|macroed_pkg_name(data.srcname)|name_for_python_version(None, True) }}-doc
++%doc html
++{%- if data.doc_license %}
++%license {{data.doc_license|join(' ')}}
++{%- endif %}
++{% endif %}
Not Available

benbullard79 [@T] cox.netsuperceded1426d 11hrs
benbullard79 [@T] cox.netNo Comment.1426d 11hrs