commit 2278dc46197be46a0d680c2ef52c4cecf1041db8 Author: Andreas Jaeger Date: Mon Sep 26 10:26:51 2022 +0000 Accepting request 1006083 from home:lkocman New Package openSUSE-repos - openSUSE repoindexes for zypp-service repo management - Helps to address issues like Bug#1200446 - Requested in https://code.opensuse.org/leap/features/issue/91 OBS-URL: https://build.opensuse.org/request/show/1006083 OBS-URL: https://build.opensuse.org/package/show/Base:System/openSUSE-repos?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/_multibuild b/_multibuild new file mode 100644 index 0000000..097ba7a --- /dev/null +++ b/_multibuild @@ -0,0 +1,5 @@ + + openSUSE-repos-Leap + openSUSE-repos-LeapMicro + openSUSE-repos-Tumbleweed + diff --git a/_service b/_service new file mode 100644 index 0000000..643ecd3 --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + %cd.%h + https://github.com/openSUSE/openSUSE-repos.git + git + main + enable + dist/package/openSUSE-repos*.spec + openSUSE-repos + opensuse-releaseteam@opensuse.org + + + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..3a6e5a4 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/openSUSE/openSUSE-repos.git + c75597de189d2e6ee085edbab90a4e6485e119cb \ No newline at end of file diff --git a/openSUSE-repos-20220926.4e90939.obscpio b/openSUSE-repos-20220926.4e90939.obscpio new file mode 100644 index 0000000..a2a187a --- /dev/null +++ b/openSUSE-repos-20220926.4e90939.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2298022c08e01aed80ff2e9d5e2de61af16bf74c39f882cb2717ed18f9838f6a +size 22026 diff --git a/openSUSE-repos-20220926.4e90939.tar.xz b/openSUSE-repos-20220926.4e90939.tar.xz new file mode 100644 index 0000000..f8ecbac --- /dev/null +++ b/openSUSE-repos-20220926.4e90939.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:beb7190aae315cc97ea9cb2899387dcc86987e3519d7ef8fc2de34b58f3f74b0 +size 3128 diff --git a/openSUSE-repos-20220926.c75597d.obscpio b/openSUSE-repos-20220926.c75597d.obscpio new file mode 100644 index 0000000..87a792b --- /dev/null +++ b/openSUSE-repos-20220926.c75597d.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1ce147550a8c31b5a2f28162a86a650d3388380ae9896d18764a80a2ca28882 +size 22026 diff --git a/openSUSE-repos-20220926.c75597d.tar.xz b/openSUSE-repos-20220926.c75597d.tar.xz new file mode 100644 index 0000000..e93ce02 --- /dev/null +++ b/openSUSE-repos-20220926.c75597d.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b77c7de4aa8c35066bddabae6fc622812daf97f3d2eaebbbec8e81806382536 +size 3136 diff --git a/openSUSE-repos-Leap.spec b/openSUSE-repos-Leap.spec new file mode 100644 index 0000000..9f574c5 --- /dev/null +++ b/openSUSE-repos-Leap.spec @@ -0,0 +1,129 @@ +# +# spec file for package openSUSE-repos-Leap +# +# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2022 Neal Gompa +# +# 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/ +# + + +%global debug_package %{nil} +Name: openSUSE-repos-Leap +Version: 20220926.c75597d +Release: 0 +Summary: openSUSE package repositories +License: MIT +Group: System/Management +URL: https://github.com/openSUSE/openSUSE-repos +Source: openSUSE-repos-%{version}.tar.xz +#boo#1203715 +BuildRequires: -post-build-checks +# We're compatible with any SUSE Linux distribution +Requires: suse-release +Requires: zypper +Conflicts: otherproviders(openSUSE-repos) +Provides: openSUSE-repos + +%description +Definitions for openSUSE repository management via zypp-services + +%files + +%dir %{_datadir}/zypp/local/ +%dir %{_datadir}/zypp/local/service +%dir %{_datadir}/zypp/local/service/openSUSE +%dir %{_datadir}/zypp/local/service/openSUSE/repo +%ghost %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml +%{_sysconfdir}/zypp/vars.d/DIST_ARCH + +%ifarch ix86 x86_64 aarch64 power64 s390x +%{_datadir}/zypp/local/service/openSUSE/repo/opensuse-leap-repoindex.xml +%else +%{_datadir}/zypp/local/service/openSUSE/repo/opensuse-leap-ports-repoindex.xml +%endif + +%prep +%setup -q -n openSUSE-repos-%{version} + + +%build +# Nothing to build + + +%install + +mkdir -p %{buildroot}%{_datadir}/zypp/local/service/openSUSE/repo +mkdir -p %{buildroot}%{_sysconfdir}/zypp/vars.d/ + +# Setup for primary arches +%ifarch ix86 x86_64 aarch64 power64 s390x +install opensuse-leap-repoindex.xml -pm 0644 %{buildroot}%{_datadir}/zypp/local/service/openSUSE/repo + +# Setup for ports +%else +install opensuse-leap-ports-repoindex.xml -pm 0644 %{buildroot}%{_datadir}/zypp/local/service/openSUSE/repo +%endif + +%ifarch %{ix86} +echo "x86" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch x86_64 +echo "x86_64" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch aarch64 +echo "aarch64" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch armv6l armv6hl +echo "armv6hl" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch armv7l armv7hl +echo "armv7hl" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch ppc ppc64 ppc64le +echo "ppc" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch riscv64 +echo "riscv" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch s390x +echo "zsystems" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + + +%post +%ifarch ix86 x86_64 aarch64 power64 s390x +ln -sf opensuse-leap-repoindex.xml %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml +%else +ln -sf opensuse-leap-ports-repoindex.xml %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml +%endif + +# We hereby declare that running this will not influence existing transaction +ZYPP_READONLY_HACK=1 zypper addservice %{_datadir}/zypp/local/service/openSUSE openSUSE + +%postun +if [ "$1" = 0 ] ; then + # We hereby declare that running this will not influence existing transaction + ZYPP_READONLY_HACK=1 zypper removeservice openSUSE + if [ -L "%{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml" ] ; then + rm -f %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml + fi +fi + +%changelog diff --git a/openSUSE-repos-LeapMicro.spec b/openSUSE-repos-LeapMicro.spec new file mode 100644 index 0000000..9f4ad8b --- /dev/null +++ b/openSUSE-repos-LeapMicro.spec @@ -0,0 +1,115 @@ +# +# spec file for package openSUSE-repos-LeapMicro +# +# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2022 Neal Gompa +# +# 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/ +# + + +%global debug_package %{nil} +Name: openSUSE-repos-LeapMicro +Version: 20220926.c75597d +Release: 0 +Summary: openSUSE package repositories +License: MIT +Group: System/Management +URL: https://github.com/openSUSE/openSUSE-repos +Source: openSUSE-repos-%{version}.tar.xz +#boo#1203715 +BuildRequires: -post-build-checks +# We're compatible with any SUSE Linux distribution +Requires: suse-release +Requires: zypper +Conflicts: otherproviders(openSUSE-repos) +Provides: openSUSE-repos + +%description +Definitions for openSUSE repository management via zypp-services + +%files + +%dir %{_datadir}/zypp/local/ +%dir %{_datadir}/zypp/local/service +%dir %{_datadir}/zypp/local/service/openSUSE +%dir %{_datadir}/zypp/local/service/openSUSE/repo +%ghost %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml +%{_sysconfdir}/zypp/vars.d/DIST_ARCH + +%{_datadir}/zypp/local/service/openSUSE/repo/opensuse-leap-micro-repoindex.xml + +%prep +%setup -q -n openSUSE-repos-%{version} + + +%build +# Nothing to build + + +%install + +mkdir -p %{buildroot}%{_datadir}/zypp/local/service/openSUSE/repo +mkdir -p %{buildroot}%{_sysconfdir}/zypp/vars.d/ + +# Setup for primary arches +install opensuse-leap-micro-repoindex.xml -pm 0644 %{buildroot}%{_datadir}/zypp/local/service/openSUSE/repo + +%ifarch %{ix86} +echo "x86" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch x86_64 +echo "x86_64" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch aarch64 +echo "aarch64" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch armv6l armv6hl +echo "armv6hl" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch armv7l armv7hl +echo "armv7hl" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch ppc ppc64 ppc64le +echo "ppc" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch riscv64 +echo "riscv" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch s390x +echo "zsystems" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + + +%post +ln -sf opensuse-leap-micro-repoindex.xml %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml + +# We hereby declare that running this will not influence existing transaction +ZYPP_READONLY_HACK=1 zypper addservice %{_datadir}/zypp/local/service/openSUSE openSUSE + +%postun +if [ "$1" = 0 ] ; then + # We hereby declare that running this will not influence existing transaction + ZYPP_READONLY_HACK=1 zypper removeservice openSUSE + if [ -L "%{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml" ] ; then + rm -f %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml + fi +fi + +%changelog diff --git a/openSUSE-repos-Tumbleweed.spec b/openSUSE-repos-Tumbleweed.spec new file mode 100644 index 0000000..110189a --- /dev/null +++ b/openSUSE-repos-Tumbleweed.spec @@ -0,0 +1,132 @@ +# +# spec file for package openSUSE-repos-Tumbleweed +# +# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2022 Neal Gompa +# +# 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/ +# + + +%global debug_package %{nil} +Name: openSUSE-repos-Tumbleweed +Version: 20220926.c75597d +Release: 0 +Summary: openSUSE package repositories +License: MIT +Group: System/Management +URL: https://github.com/openSUSE/openSUSE-repos +Source: openSUSE-repos-%{version}.tar.xz +#boo#1203715 +BuildRequires: -post-build-checks +# We're compatible with any SUSE Linux distribution +Requires: suse-release +Requires: zypper +Conflicts: otherproviders(openSUSE-repos) +Provides: openSUSE-repos +# Unconditionally ensure Leap upgrades to Tumbleweed +Obsoletes: %{name}-Leap +Obsoletes: %{name}-LeapMicro + +%description +Definitions for openSUSE repository management via zypp-services + +%files + +%dir %{_datadir}/zypp/local/ +%dir %{_datadir}/zypp/local/service +%dir %{_datadir}/zypp/local/service/openSUSE +%dir %{_datadir}/zypp/local/service/openSUSE/repo +%ghost %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml +%{_sysconfdir}/zypp/vars.d/DIST_ARCH + +%ifarch %{ix86} x86_64 +%{_datadir}/zypp/local/service/openSUSE/repo/opensuse-tumbleweed-repoindex.xml +%else +%{_datadir}/zypp/local/service/openSUSE/repo/opensuse-tumbleweed-ports-repoindex.xml +%endif + +%prep +%setup -q -n openSUSE-repos-%{version} + + +%build +# Nothing to build + + +%install + +mkdir -p %{buildroot}%{_datadir}/zypp/local/service/openSUSE/repo +mkdir -p %{buildroot}%{_sysconfdir}/zypp/vars.d/ + +# Setup for primary arches +%ifarch %{ix86} x86_64 +install opensuse-tumbleweed-repoindex.xml -pm 0644 %{buildroot}%{_datadir}/zypp/local/service/openSUSE/repo + +# Setup for ports +%else ifarch aarch64 %{arm} %{power64} ppc s390x riscv64 +install opensuse-tumbleweed-ports-repoindex.xml -pm 0644 %{buildroot}%{_datadir}/zypp/local/service/openSUSE/repo +%endif + +%ifarch %{ix86} +echo "x86" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch x86_64 +echo "x86_64" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch aarch64 +echo "aarch64" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch armv6l armv6hl +echo "armv6hl" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch armv7l armv7hl +echo "armv7hl" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch ppc ppc64 ppc64le +echo "ppc" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch riscv64 +echo "riscv" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + +%ifarch s390x +echo "zsystems" > %{buildroot}%{_sysconfdir}/zypp/vars.d/DIST_ARCH +%endif + + +%post +%ifarch %{ix86} x86_64 +ln -sf opensuse-tumbleweed-repoindex.xml %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml +%else +ln -sf opensuse-tumbleweed-ports-repoindex.xml %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml +%endif + +# We hereby declare that running this will not influence existing transaction +ZYPP_READONLY_HACK=1 zypper addservice %{_datadir}/zypp/local/service/openSUSE openSUSE + +%postun +if [ "$1" = 0 ] ; then + # We hereby declare that running this will not influence existing transaction + ZYPP_READONLY_HACK=1 zypper removeservice openSUSE + if [ -L "%{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml" ] ; then + rm -f %{_datadir}/zypp/local/service/openSUSE/repo/repoindex.xml + fi +fi + +%changelog diff --git a/openSUSE-repos.changes b/openSUSE-repos.changes new file mode 100644 index 0000000..8bb1f01 --- /dev/null +++ b/openSUSE-repos.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Mon Sep 26 10:16:37 UTC 2022 - opensuse-releaseteam@opensuse.org + +- Update to version 20220926.c75597d: + * Run spec-cleaner on specs + +------------------------------------------------------------------- +Mon Sep 26 09:59:11 UTC 2022 - opensuse-releaseteam@opensuse.org + +- Update to version 20220926.e27264d: + * Add LeapMicro + +------------------------------------------------------------------- +Mon Sep 26 08:24:54 UTC 2022 - opensuse-releaseteam@opensuse.org + +- Update to version 20220926.be4cbf8: + * Specs for multibuild support as we have >2 flavors + +------------------------------------------------------------------- +Sat Sep 24 13:13:22 UTC 2022 - opensuse-releaseteam@opensuse.org + +- Update to version 20220924.5761673: + * requested in https://code.opensuse.org/leap/features/issue/91 + * Disable post-build checks due to boo#1203715 + * Initial rpm spec logic is based on rpm-repos-openSUSE from Neal diff --git a/openSUSE-repos.obsinfo b/openSUSE-repos.obsinfo new file mode 100644 index 0000000..0cac35d --- /dev/null +++ b/openSUSE-repos.obsinfo @@ -0,0 +1,4 @@ +name: openSUSE-repos +version: 20220926.c75597d +mtime: 1664187353 +commit: c75597de189d2e6ee085edbab90a4e6485e119cb