From dfd23700c63896c18282cdfc1fec8be8f38f050f Mon Sep 17 00:00:00 2001
From: adrianSuSE <>
Date: May 27 2023 18:42:35 +0000
Subject: Update python-kiwi_crossprepare_plugin to version 0.1.6 / rev 1 via SR 1088401


https://build.opensuse.org/request/show/1088401
by user adrianSuSE + dimstar_suse
initial package for cross building

---

diff --git a/.files b/.files
new file mode 100644
index 0000000..9f92fde
Binary files /dev/null and b/.files differ
diff --git a/.meta b/.meta
new file mode 100644
index 0000000..081e661
--- /dev/null
+++ b/.meta
@@ -0,0 +1,5 @@
+<package name="python-kiwi_crossprepare_plugin" project="openSUSE:Factory">
+  <title></title>
+  <description></description>
+  <devel project="openSUSE:Tools" package="python-kiwi_crossprepare_plugin"/>
+</package>
diff --git a/.rev b/.rev
new file mode 100644
index 0000000..742f183
--- /dev/null
+++ b/.rev
@@ -0,0 +1,10 @@
+<revisionlist>
+  <revision rev="1" vrev="1">
+    <srcmd5>1c42281f15eb522e3c371c9becc6159a</srcmd5>
+    <version>0.1.6</version>
+    <time>1685212652</time>
+    <user>dimstar_suse</user>
+    <comment>initial package for cross building</comment>
+    <requestid>1088401</requestid>
+  </revision>
+</revisionlist>
diff --git a/_service b/_service
new file mode 100644
index 0000000..6d9d17b
--- /dev/null
+++ b/_service
@@ -0,0 +1,14 @@
+<services>
+  <service name="obs_scm" mode="manual">
+    <param name="url">https://github.com/OSInside/kiwi-crossprepare-plugin</param>
+    <param name="scm">git</param>
+    <param name="revision">f7c1b3fe1739ed29120816ce0c1277b6e29cf8be</param>
+    <param name="version">0.1.6</param>
+  </service>
+  <service mode="manual" name="tar" />
+  <service mode="manual" name="recompress">
+    <param name="file">*.tar</param>
+    <param name="compression">xz</param>
+  </service>
+  <service mode="manual" name="set_version" />
+</services>
diff --git a/kiwi-crossprepare-plugin-0.1.6.tar.xz b/kiwi-crossprepare-plugin-0.1.6.tar.xz
new file mode 120000
index 0000000..07ae388
--- /dev/null
+++ b/kiwi-crossprepare-plugin-0.1.6.tar.xz
@@ -0,0 +1 @@
+/ipfs/bafkreifwxd5y3a325xsd2dahlikatnd5gy3u226q2n6wtd4juk2siaxa5m
\ No newline at end of file
diff --git a/kiwi-crossprepare-plugin.obsinfo b/kiwi-crossprepare-plugin.obsinfo
new file mode 100644
index 0000000..03407aa
--- /dev/null
+++ b/kiwi-crossprepare-plugin.obsinfo
@@ -0,0 +1,4 @@
+name: kiwi-crossprepare-plugin
+version: 0.1.6
+mtime: 1647592462
+commit: f7c1b3fe1739ed29120816ce0c1277b6e29cf8be
diff --git a/python-kiwi_crossprepare_plugin-rpmlintrc b/python-kiwi_crossprepare_plugin-rpmlintrc
new file mode 100644
index 0000000..7b29276
--- /dev/null
+++ b/python-kiwi_crossprepare_plugin-rpmlintrc
@@ -0,0 +1,9 @@
+# don't check for buildroot usage, kiwi's Makefile uses the same var name
+addFilter("rpm-buildroot-usage .*")
+
+# don't check position-independent-executable
+addFilter("position-independent-executable-suggested .*")
+
+# don't check for file duplicates
+addFilter("files-duplicate .*")
+addFilter("cross-directory-hard-link .*")
diff --git a/python-kiwi_crossprepare_plugin.changes b/python-kiwi_crossprepare_plugin.changes
new file mode 100644
index 0000000..9eee882
--- /dev/null
+++ b/python-kiwi_crossprepare_plugin.changes
@@ -0,0 +1,122 @@
+-------------------------------------------------------------------
+Fri Mar 18 09:34:22 CET 2022 - Marcus Schäfer <marcus.schaefer@gmail.com>
+
+- Bump version: 0.1.5 → 0.1.6
+
+-------------------------------------------------------------------
+Fri Mar 18 09:32:19 CET 2022 - Marcus Schäfer <marcus.schaefer@gmail.com>
+
+- Fixed unit tests
+
+  While fixing the unit tests I also saw that the error
+  handling for the environment check was inconsistent as
+  well as not all code got tested
+
+-------------------------------------------------------------------
+Fri Mar 18 08:59:31 CET 2022 - Marcus Schäfer <marcus.schaefer@gmail.com>
+
+- Support nose and xunit style tests
+
+  The modifications in this commit allows the unit tests
+  to run on both, pytest 6.x (nose test layout) and the new
+  pytest 7.x (xunit test layout).
+
+-------------------------------------------------------------------
+Fri Mar 18 08:54:34 CET 2022 - Marcus Schäfer <marcus.schaefer@gmail.com>
+
+- Fixed package build for debbuild
+
+  debbuild has changed and translate source tarball
+  names containing an '_' into a '-'
+
+-------------------------------------------------------------------
+Tue Nov 09 11:07:37 CET 2021 - Adrian Schröter <adrian@suse.de>
+
+- fix armv6 and armv7 case
+
+  Avoid calling initvm in privileged docker containers. This will fail, since we
+  would try to register a handler as non-root
+
+-------------------------------------------------------------------
+Mon May 10 11:05:45 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Bump version: 0.1.4 → 0.1.5
+
+-------------------------------------------------------------------
+Mon May 10 11:05:03 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Follow up fix for last commit
+
+  Update unit tests to follow the last change
+
+-------------------------------------------------------------------
+Thu May 06 09:07:32 CEST 2021 - Adrian Schröter <adrian@suse.de>
+
+- drop qemu cleanup job
+
+  This must be done later (currently in editbootinstall) or later jobs
+  like building the initrd will fail.
+
+-------------------------------------------------------------------
+Thu Apr 15 10:03:36 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Bump version: 0.1.3 → 0.1.4
+
+-------------------------------------------------------------------
+Thu Apr 15 10:02:01 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Fixed target directory setup
+
+  To be compatible with the kiwi build command the sub path
+  below target-dir must be build/image-root/...
+
+-------------------------------------------------------------------
+Thu Apr 15 09:33:45 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Bump version: 0.1.2 → 0.1.3
+
+-------------------------------------------------------------------
+Thu Apr 15 09:31:54 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Write exclude_files.yaml in kiwi metadata
+
+  Some of the prepared cross image build data should not be
+  synced to the final image. In order to provide that information
+  to the kiwi build process the metadata file image/exclude_files.yaml
+  exists. This commit makes sure to write the file for later
+  exclusion in the build process
+
+-------------------------------------------------------------------
+Thu Apr 15 08:38:11 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- For the moment don't push this to pypi
+
+  The plugin is designed to run in OBS. It was written to
+  be genericaly useful but it's too early to push it on the
+  python index
+
+-------------------------------------------------------------------
+Wed Apr 14 22:26:00 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Implemented QEMU binfmt preparation procedure
+
+-------------------------------------------------------------------
+Wed Apr 14 17:27:34 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Added unit tests
+
+-------------------------------------------------------------------
+Wed Apr 14 17:20:42 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Fixed mypy and tox targets
+
+-------------------------------------------------------------------
+Wed Apr 14 17:16:33 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Added .coveragerc
+
+-------------------------------------------------------------------
+Wed Apr 14 17:14:46 CEST 2021 - Marcus Schäfer <ms@suse.de>
+
+- Setup initial plugin data structure
+
diff --git a/python-kiwi_crossprepare_plugin.spec b/python-kiwi_crossprepare_plugin.spec
new file mode 100644
index 0000000..80799a4
--- /dev/null
+++ b/python-kiwi_crossprepare_plugin.spec
@@ -0,0 +1,104 @@
+#
+# spec file for package python-kiwi_crossprepare_plugin
+#
+# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2020 SUSE Software Solutions Germany 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 https://bugs.opensuse.org/
+#
+
+
+%{!?_defaultdocdir: %global _defaultdocdir %{_datadir}/doc}
+%{!?__python3: %global __python3 /usr/bin/python3}
+
+%if %{undefined python3_sitelib}
+%global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
+%endif
+
+%if 0%{?el7}
+%global python3_pkgversion 36
+%else
+%{!?python3_pkgversion:%global python3_pkgversion 3}
+%endif
+
+%if 0%{?debian} || 0%{?ubuntu}
+%global is_deb 1
+%global pygroup python
+%global sysgroup admin
+%global develsuffix dev
+%else
+%global pygroup Development/Languages/Python
+%global sysgroup System/Management
+%global develsuffix devel
+%endif
+
+Name:           python-kiwi_crossprepare_plugin
+Version:        0.1.6
+Release:        0
+URL:            https://github.com/OSInside/kiwi-crossprepare-plugin
+Summary:        KIWI - Cross Image Arch Prepare Plugin
+License:        GPL-3.0-or-later
+%if "%{_vendor}" == "debbuild"
+# Needed to set Maintainer in output debs
+%endif
+Group:          %{pygroup}
+Source:         kiwi-crossprepare-plugin-%version.tar.xz
+Source1:        %{name}-rpmlintrc
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  fdupes
+BuildRequires:  python%{python3_pkgversion}-%{develsuffix}
+BuildRequires:  python%{python3_pkgversion}-setuptools
+BuildArch:      noarch
+
+%description
+Prepare an image root tree for a cross architecture build process.
+
+# python3-kiwi_crossprepare_plugin
+
+%package -n python%{python3_pkgversion}-kiwi_crossprepare_plugin
+Summary:        KIWI - Cross Image Arch Prepare Plugin
+Group:          Development/Languages/Python
+Requires:       python%{python3_pkgversion}-docopt
+Requires:       python%{python3_pkgversion}-kiwi >= 9.21.21
+Requires:       python%{python3_pkgversion}-setuptools
+%if 0%{?ubuntu} || 0%{?debian}
+Requires:       python%{python3_pkgversion}-yaml
+%else
+Requires:       python%{python3_pkgversion}-PyYAML
+%endif
+Requires:       qemu-linux-user
+
+%description -n python%{python3_pkgversion}-kiwi_crossprepare_plugin
+Prepare an image root tree for a cross architecture build process.
+
+%prep
+%setup -q -n kiwi-crossprepare-plugin-%{version}
+
+%build
+# Build Python 3 version
+python3 setup.py build
+
+%install
+# Install Python 3 version
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?is_deb:--install-layout=deb}
+
+# Install man pages and package documentation
+#make buildroot=%{buildroot}/ docdir=%{_defaultdocdir}/ install
+
+%files -n python%{python3_pkgversion}-kiwi_crossprepare_plugin
+#%dir %{_defaultdocdir}/python-kiwi_crossprepare_plugin
+%{python3_sitelib}/kiwi_crossprepare_plugin*
+#%{_defaultdocdir}/python-kiwi_crossprepare_plugin/LICENSE
+#%{_defaultdocdir}/python-kiwi_crossprepare_plugin/README
+#%doc %{_mandir}/man8/*
+
+%changelog