From 3317035dbb83432bc9a24aea3376b85394a77b79e599c7bf18efaaf2c20f69ca Mon Sep 17 00:00:00 2001 From: ZYpp Developers Date: Tue, 18 Feb 2025 12:41:51 +0000 Subject: [PATCH 1/3] gitrev 7ba4f50 (Merge pull request #4 from meaksh/master-sle15-all-flavors, 2025-02-18) 4314521 (Build package for multiple Python flavors on the SLE15 family, 2025-02-17) OBS-URL: https://build.opensuse.org/package/show/zypp:Head/zypp-plugin?expand=0&rev=30 --- .gitattributes | 23 +++++++ .gitignore | 1 + zypp-plugin-0.6.4.tar.bz2 | 3 + zypp-plugin.changes | 104 +++++++++++++++++++++++++++++ zypp-plugin.spec | 137 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 268 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 zypp-plugin-0.6.4.tar.bz2 create mode 100644 zypp-plugin.changes create mode 100644 zypp-plugin.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/zypp-plugin-0.6.4.tar.bz2 b/zypp-plugin-0.6.4.tar.bz2 new file mode 100644 index 0000000..5349ad3 --- /dev/null +++ b/zypp-plugin-0.6.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1285889047d2e8cbe3b90fdbd144452ab711f76add479b3287f95015db70516b +size 5106 diff --git a/zypp-plugin.changes b/zypp-plugin.changes new file mode 100644 index 0000000..da4713e --- /dev/null +++ b/zypp-plugin.changes @@ -0,0 +1,104 @@ +------------------------------------------------------------------- +Mon Feb 17 16:25:05 UTC 2025 - Pablo Suárez Hernández + +- Build package for multiple Python flavors on the SLE15 family + +------------------------------------------------------------------- +Mon Jul 15 15:51:49 CEST 2024 - ma@suse.com + +- Fix stomp header regex to include '-' (bsc#1227793) +- version 0.6.4 + +------------------------------------------------------------------- +Fri Oct 23 21:31:23 UTC 2020 - Benjamin Greiner + +- singlespec in Tumbleweed must support multiple python3 flavors + in the future gh#openSUSE/python-rpm-macros#66 + +------------------------------------------------------------------- +Tue Mar 13 14:51:18 CET 2018 - ma@suse.com + +- Provide python3-zypp-plugin down to SLE12 (bsc#1081596) + +------------------------------------------------------------------- +Mon Feb 19 15:53:29 CET 2018 - ma@suse.com + +- Provide python3-zypp-plugin in SLE12-SP3 (bsc#1081596) + +------------------------------------------------------------------- +Fri Jan 19 15:15:38 CET 2018 - ma@suse.de + +- Disable singlespec packaging in SLE12* and older distros while it's + not working there. They provide python2 packages only. + +------------------------------------------------------------------- +Wed Jan 3 15:53:28 UTC 2018 - tchvatal@suse.com + +- Fix a bit the obsoletes/provides to allow migration, previously + was overwritten by macros +- BR python-rpm-macros to build on older distributions +- Fix bit python detection conditions on install phase to be better + readable and uniform + +------------------------------------------------------------------- +Mon Dec 11 14:15:36 UTC 2017 - tchvatal@suse.com + +- Switch to singlespec packaging to make it easy to disable either + python3 or python2 plugin and make sure all is buildable +- version 0.6.3 + +------------------------------------------------------------------- +Thu Nov 9 17:46:45 CET 2017 - ma@suse.de + +- Don't use a shebang in the module +- version 0.6.2 + +------------------------------------------------------------------- +Thu Oct 26 17:14:59 CEST 2017 - ma@suse.de + +- Let zypp-plugin-python provide python2-zypp-plugin to be + consistent with python3-zypp-plugin. +- version 0.6.1 + +------------------------------------------------------------------- +Thu Oct 26 12:43:19 CEST 2017 - ma@suse.de + +- Fix specfile to be able to build for python3 +- version 0.6 + +------------------------------------------------------------------- +Tue Mar 10 17:18:59 CET 2015 - lchiquitto@suse.de + +- Add COPYING file + +------------------------------------------------------------------- +Mon Aug 18 13:31:39 CEST 2014 - ma@suse.de + +- Force usage of the official python VM; no longer use + "/usr/bin/env python" (bnc#889363) +- version 0.5 + +------------------------------------------------------------------- +Sat Jan 25 17:21:49 CET 2014 - ma@suse.de + +- Add .pyc/.pyo to package +- version 0.4 + +------------------------------------------------------------------- +Wed May 9 10:01:48 UTC 2012 - coolo@suse.com + +- patch license to be in spdx.org format + +------------------------------------------------------------------- +Tue Jul 5 12:19:37 CEST 2011 - ma@suse.de + +- Fix specfile for factory + +------------------------------------------------------------------- +Mon Jul 4 15:16:39 CEST 2011 - ma@suse.de + +- Provide zypp-plugin-python as stand alone package so + that it can be used in other zypp plugins like snapper. + (formerly a subpackage of zypp-plugin-spacewalk) +- version 0.3 + diff --git a/zypp-plugin.spec b/zypp-plugin.spec new file mode 100644 index 0000000..0854778 --- /dev/null +++ b/zypp-plugin.spec @@ -0,0 +1,137 @@ +# +# spec file for package zypp-plugin +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%define singlespec_py3 ( 0%{?suse_version} > 1330 ) + +Name: zypp-plugin +Version: 0.6.4 +Release: 0 +Summary: Helper that makes writing ZYpp plugins easier +License: GPL-2.0 +Group: System/Packages +Url: https://github.com/openSUSE/zypp-plugin +Source0: %{name}-%{version}.tar.bz2 +BuildArch: noarch + +%if %{singlespec_py3} +if 0%{?suse_version} >= 1500 +%{?sle15allpythons} +%else +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%endif + +BuildRequires: %{python_module devel} +BuildRequires: python-rpm-macros +BuildRequires: fdupes +Requires: python-base +# provide old names for py2 package +%if "%{python_flavor}" == "python2" +Obsoletes: zypp-plugin-python < %{version}-%{release} +Provides: zypp-plugin-python = %{version}-%{release} +%endif +%python_subpackages +### ---------------------------------------- +### SLE-12* and even older +%else +%define have_python2 1 +%if ( 0%{?suse_version} == 1315 ) +%define have_python3 1 +%else +%define have_python3 0 +%endif +%endif +### ---------------------------------------- + +%description +This API allows writing ZYpp plugins by just subclassing from a python class +and implementing the commands you want to respond to as python methods. + +%prep +%setup -q -n zypp-plugin + +%build +: + +%install +%if %{singlespec_py3} +%{python_expand # +mkdir -p %{buildroot}%{$python_sitelib} +install -m 0644 python/zypp_plugin.py %{buildroot}%{$python_sitelib}/zypp_plugin.py +# TODO: replace by $python_compileall as soon as it is available sr#843481 +$python -m compileall %{buildroot}%{$python_sitelib} +$python -O -m compileall %{buildroot}%{$python_sitelib} +%fdupes %{buildroot}%{$python_sitelib} +} +%else +%if 0%{?have_python2} +mkdir -p %{buildroot}%{python_sitelib} +install -m 0644 python/zypp_plugin.py %{buildroot}%{python_sitelib}/zypp_plugin.py +%py_compile -O %{buildroot}/%{python_sitelib} +%endif +%if 0%{?have_python3} +mkdir -p %{buildroot}%{python3_sitelib} +install -m 0644 python/zypp_plugin.py %{buildroot}%{python3_sitelib}/zypp_plugin.py +%py3_compile -O %{buildroot}/%{python3_sitelib} +%endif +%endif + +%if %{singlespec_py3} +%files %{python_files} +%doc COPYING +%{python_sitelib}/zypp_plugin* +%pycache_only %{python_sitelib}/__pycache__/* + +### ---------------------------------------- +### SLE-12* and even older +%else +%package -n %{name}-python +Summary: Helper that makes writing ZYpp plugins in python easier +Group: System/Packages +Provides: python2-%{name} = %{version}-%{release} +BuildRequires: python-devel +Requires: python + +%files -n %{name}-python +%defattr(-,root,root) +%doc COPYING +%{python_sitelib}/* + +%description -n %{name}-python +This API allows writing ZYpp plugins by just subclassing from a python class +and implementing the commands you want to respond to as python methods. + +%if 0%{?have_python3} +%package -n python3-%{name} +Summary: Helper that makes writing ZYpp plugins in python easier +Group: System/Packages +Requires: python3 +BuildRequires: python3-devel + +%files -n python3-%{name} +%defattr(-,root,root) +%doc COPYING +%{python3_sitelib}/* + +%description -n python3-%{name} +This API allows writing ZYpp plugins by just subclassing from a python class +and implementing the commands you want to respond to as python methods. +%endif +%endif +### ---------------------------------------- + +%changelog From a2c87ed169e59a3163674f75e1682af1ce8738a450c86e38b10dbd14487ecef9 Mon Sep 17 00:00:00 2001 From: ZYpp Developers Date: Tue, 18 Feb 2025 12:56:00 +0000 Subject: [PATCH 2/3] gitrev 8c14af4 (Merge pull request #4 from meaksh/master-sle15-all-flavors, 2025-02-18) 4314521 (Build package for multiple Python flavors on the SLE15 family, 2025-02-17) OBS-URL: https://build.opensuse.org/package/show/zypp:Head/zypp-plugin?expand=0&rev=31 --- zypp-plugin-0.6.4.tar.bz2 | 4 ++-- zypp-plugin.spec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zypp-plugin-0.6.4.tar.bz2 b/zypp-plugin-0.6.4.tar.bz2 index 5349ad3..518f0bd 100644 --- a/zypp-plugin-0.6.4.tar.bz2 +++ b/zypp-plugin-0.6.4.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1285889047d2e8cbe3b90fdbd144452ab711f76add479b3287f95015db70516b -size 5106 +oid sha256:7c2c34a16714c71fc20391731310642496a00be01699b28afc1974654b6211ce +size 5080 diff --git a/zypp-plugin.spec b/zypp-plugin.spec index 0854778..4ea6784 100644 --- a/zypp-plugin.spec +++ b/zypp-plugin.spec @@ -29,7 +29,7 @@ Source0: %{name}-%{version}.tar.bz2 BuildArch: noarch %if %{singlespec_py3} -if 0%{?suse_version} >= 1500 +%if 0%{?suse_version} >= 1500 %{?sle15allpythons} %else %{?!python_module:%define python_module() python-%{**} python3-%{**}} From 501bbde617f682b1987477d48cba912c2e286ddfb0bbb4b674e97eccad92317a Mon Sep 17 00:00:00 2001 From: ZYpp Developers Date: Tue, 18 Feb 2025 13:57:28 +0000 Subject: [PATCH 3/3] gitrev a12f98e (changes 0.6.5, 2025-02-18) OBS-URL: https://build.opensuse.org/package/show/zypp:Head/zypp-plugin?expand=0&rev=32 --- zypp-plugin-0.6.4.tar.bz2 | 3 --- zypp-plugin-0.6.5.tar.bz2 | 3 +++ zypp-plugin.changes | 6 ++++++ zypp-plugin.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 zypp-plugin-0.6.4.tar.bz2 create mode 100644 zypp-plugin-0.6.5.tar.bz2 diff --git a/zypp-plugin-0.6.4.tar.bz2 b/zypp-plugin-0.6.4.tar.bz2 deleted file mode 100644 index 518f0bd..0000000 --- a/zypp-plugin-0.6.4.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c2c34a16714c71fc20391731310642496a00be01699b28afc1974654b6211ce -size 5080 diff --git a/zypp-plugin-0.6.5.tar.bz2 b/zypp-plugin-0.6.5.tar.bz2 new file mode 100644 index 0000000..e6956f6 --- /dev/null +++ b/zypp-plugin-0.6.5.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd8255d911d95811483f710b06d5b0aeece6d287da627904782df0f4a58e60d1 +size 5115 diff --git a/zypp-plugin.changes b/zypp-plugin.changes index da4713e..55fd7ba 100644 --- a/zypp-plugin.changes +++ b/zypp-plugin.changes @@ -1,7 +1,13 @@ +------------------------------------------------------------------- +Tue Feb 18 14:55:05 CET 2025 - ma@suse.com + +- version 0.6.5 + ------------------------------------------------------------------- Mon Feb 17 16:25:05 UTC 2025 - Pablo Suárez Hernández - Build package for multiple Python flavors on the SLE15 family + (fixes #4) ------------------------------------------------------------------- Mon Jul 15 15:51:49 CEST 2024 - ma@suse.com diff --git a/zypp-plugin.spec b/zypp-plugin.spec index 4ea6784..5653aa6 100644 --- a/zypp-plugin.spec +++ b/zypp-plugin.spec @@ -19,7 +19,7 @@ %define singlespec_py3 ( 0%{?suse_version} > 1330 ) Name: zypp-plugin -Version: 0.6.4 +Version: 0.6.5 Release: 0 Summary: Helper that makes writing ZYpp plugins easier License: GPL-2.0