Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-zypp-plugin revision 2e8ef3e1ad8a76b9e93fda9fa12058a3

This commit is contained in:
Adrian Schröter 2024-07-15 13:01:31 +02:00
commit c3cb1c396b
4 changed files with 172 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

View File

@ -0,0 +1,82 @@
-------------------------------------------------------------------
Mon Apr 4 13:15:06 UTC 2022 - Victor Zhestkov <victor.zhestkov@suse.com>
- Strictly require Python 3.10 with saltbundlepy requrement
-------------------------------------------------------------------
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

View File

@ -0,0 +1,64 @@
#
# spec file for package saltbundlepy-zypp-plugin
#
# Copyright (c) 2021 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/
#
%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
%define pythons saltbundlepy
# Disable python bytecompile for all distros
# It's called explicitly in the spec
%global __brp_python_bytecompile %{nil}
Name: saltbundlepy-zypp-plugin
Version: 0.6.3
Release: 0
Summary: Helper that makes writing ZYpp plugins easier
License: GPL-2.0-only
Group: System/Packages
URL: https://github.com/openSUSE/zypp-plugin
Source0: zypp-plugin-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: %{saltbundlepy_module devel >= 3.10}
BuildRequires: fdupes
BuildRequires: saltbundlepy-rpm-macros
Requires: saltbundlepy-base
%python_subpackages
%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
%{python_expand mkdir -p %{buildroot}%{python_sitelib}
install python/zypp_plugin.py %{buildroot}%{$python_sitelib}/zypp_plugin.py
find %{buildroot}%{$python_sitelib} -name '*.pyc' -delete
%{__$python} -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}
%{__$python} -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{$python_sitelib}
}
%files %{python_files}
%doc COPYING
%{python_sitelib}/*
%changelog

BIN
zypp-plugin-0.6.3.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.