$ git show --format=fuller --patch-with-stat --summary 915c191ca90adb9e28768a9a478cc8d4ebc5ac11
commit 915c191ca90adb9e28768a9a478cc8d4ebc5ac11
Author: Colin <itchka@compuserve.com>
AuthorDate: Wed Dec 30 19:37:26 2020 +0000
Commit: Colin <itchka@compuserve.com>
CommitDate: Wed Dec 30 19:37:26 2020 +0000
Initial Commit
---
.abf.yml | 2 +
add-openmandriva-spec-template.patch | 132 +++++++++++++++++++++++++++++++++++
jobprogress.spec | 39 +++++++++++
3 files changed, 173 insertions(+)
create mode 100644 .abf.yml
create mode 100644 add-openmandriva-spec-template.patch
create mode 100644 jobprogress.spec
diff --git a/.abf.yml b/.abf.yml
new file mode 100644
index 0000000..0e80bfd
--- /dev/null
+++ b/.abf.yml
@@ -0,0 +1,2 @@
+sources:
+ jobprogress-1.0.4.tar.gz: 7d16d66c4b525fc1de9aace571c99fae7c321405
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 %}
diff --git a/jobprogress.spec b/jobprogress.spec
new file mode 100644
index 0000000..e5eda42
--- /dev/null
+++ b/jobprogress.spec
@@ -0,0 +1,39 @@
+# Created by pyp2rpm-3.3.5
+%global pypi_name jobprogress
+
+Name: python-%{pypi_name}
+Version: 1.0.4
+Release: 1
+Summary: Cross-toolkit UI progress tracking
+Group: Development/Python
+License: BSD License
+URL: http://hg.hardcoded.net/jobprogress/
+Source0: %{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3dist(setuptools)
+
+%description
+ jobprogress -- Cross-toolkit UI progress tracking When doing complex
+processing that has to report progress indication to the user, things can get
+complex quick. Often, we don't know beforehand how many work unit our
+processing will have, because knowing it depends on another work unit for which
+the progress should also be reported to the user. One example of such situation
+is processing...
+
+%prep
+%autosetup -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%files -n python-%{pypi_name}
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
+