From a8a756a843fe6c920c6fca81167e3c1ac2558737c7724aa9e4bd82c9be1c8889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 Sep 2022 08:58:13 +0000 Subject: [PATCH] Accepting request 1007193 from home:mcalabkova:branches:devel:languages:python needed by PyInstaller update OBS-URL: https://build.opensuse.org/request/show/1007193 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinstaller-hooks-contrib?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + _multibuild | 3 + pyinstaller-hooks-contrib-2022.10.tar.gz | 3 + python-pyinstaller-hooks-contrib.changes | 4 ++ python-pyinstaller-hooks-contrib.spec | 79 ++++++++++++++++++++++++ 6 files changed, 113 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 pyinstaller-hooks-contrib-2022.10.tar.gz create mode 100644 python-pyinstaller-hooks-contrib.changes create mode 100644 python-pyinstaller-hooks-contrib.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/pyinstaller-hooks-contrib-2022.10.tar.gz b/pyinstaller-hooks-contrib-2022.10.tar.gz new file mode 100644 index 0000000..faf50ec --- /dev/null +++ b/pyinstaller-hooks-contrib-2022.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5edd4094175e78c178ef987b61be19efff6caa23d266ade456fc753e847f62e +size 90218 diff --git a/python-pyinstaller-hooks-contrib.changes b/python-pyinstaller-hooks-contrib.changes new file mode 100644 index 0000000..97f65d5 --- /dev/null +++ b/python-pyinstaller-hooks-contrib.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 22 04:48:18 UTC 2022 - Markéta Machová + +- Initial packaging (v2022.10), needed by python-PyInstaller diff --git a/python-pyinstaller-hooks-contrib.spec b/python-pyinstaller-hooks-contrib.spec new file mode 100644 index 0000000..b7d49b9 --- /dev/null +++ b/python-pyinstaller-hooks-contrib.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-pyinstaller-hooks-contrib +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -%{flavor} +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-pyinstaller-hooks-contrib%{psuffix} +Version: 2022.10 +Release: 0 +Summary: Community maintained hooks for PyInstaller +License: Apache-2.0 OR GPL-2.0-only +URL: https://github.com/pyinstaller/pyinstaller-hooks-contrib +Source: https://files.pythonhosted.org/packages/source/p/pyinstaller-hooks-contrib/pyinstaller-hooks-contrib-%{version}.tar.gz +BuildRequires: %{python_module setuptools >= 30.3.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module PyInstaller} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pyinstaller-hooks-contrib = %{version}} +BuildRequires: %{python_module pytest} +BuildRequires: timezone +# SECTION optional, the depending tests would be skipped without these +# most of the libraries enable only two tests, so adding just scikit-learn to run at least any tests +BuildRequires: %{python_module scikit-learn} +# /SECTION +%endif +%python_subpackages + +%description +Community maintained hooks for PyInstaller + +%prep +%setup -q -n pyinstaller-hooks-contrib-%{version} + +%build +%python_build + +%install +%if !%{with test} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +%pytest src/_pyinstaller_hooks_contrib/tests +%endif + +%if !%{with test} +%files %{python_files} +%doc README.md +%license LICENSE LICENSE.APL.txt LICENSE.GPL.txt +%{python_sitelib}/* +%endif + +%changelog