diff --git a/Leap-release/Leap-release.spec b/Leap-release/Leap-release.spec new file mode 100644 index 0000000..bc7b78b --- /dev/null +++ b/Leap-release/Leap-release.spec @@ -0,0 +1,253 @@ +# +# spec file for package SUSE-MicroOS-release +# +# 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/ +# + +# old location was /etc/YaST2/licenses/, see jsc#SLE-3067 +%define product_license_dir /usr/share/licenses/product/ + + +Name: Leap-release +Summary: openSUSE Leap 16.0 Alpha +License: MIT +Group: System/Fhs +Version: 6.0 +Release: 0 +#BuildRequires: skelcd-EULA-SMO +BuildRequires: skelcd-openSUSE +#BuildRequires: skelcd-control-SMO +Recommends: branding +# in rare cases, 'ln' is not found... +Requires(post): coreutils +Recommends: issue-generator +# bsc#1078737#c7 +Recommends: release-notes-leap-micro +Provides: distribution-release +Provides: product(Leap-Micro) = %{version}-%{release} +#Provides: product(SUSE_SLE-SP) = %{version}-%{release} +Provides: system-installation() = Leap-Micro +# relaxes openSUSE/SUSE vendor change in zypper dup bsc#1182629 +Provides: dup-vendor-relax(suse) + +# bsc#1055299 +Conflicts: otherproviders(distribution-release) + +Provides: %name-%version +Provides: product() = Leap +Provides: product(Leap-Micro) = 16.0-1 +%ifarch x86_64 +Provides: product-register-target() = openSUSE%2DLeap%2DMicro%2D6.0%2Dx86_64 +%endif +%ifarch aarch64 +Provides: product-register-target() = openSUSE%2DLeap%2DMicro%2D6.0%2Daarch64 +%endif +Provides: product-label() = openSUSE%20Leap%20Micro +Provides: product-cpeid() = cpe%3A%2Fo%3Aopensuse%3Aleap%2Dmicro%3A6.0 +Provides: product-url(releasenotes) = https%3A%2F%2Fdoc.opensuse.org%2Frelease%2Dnotes%2F%{_target_cpu}%2FopenSUSE%2FLeapMicro%2F6.0%2Frelease%2Dnotes%2Dleap%2Dmicro.rpm +Provides: product-url(repository) = https%3A%2F%2Fdownload.opensuse.org%2Fdistribution%2Fleap%2Dmicro%2F6.0%2Fproduct%2Frepo%2FLeap%2DMicro%2D6.0%2Dx86_64%2DMedia1%2F +Provides: product-url(repository) = https%3A%2F%2Fdownload.opensuse.org%2Fdistribution%2Fleap%2Dmicro%2F6.0%2Fproduct%2Frepo%2FLeap%2DMicro%2D6.0%2Daarch64%2DMedia1%2F +Provides: product-url(repository) = http%3A%2F%2Fdownload.opensuse.org%2Fupdate%2Fleap%2Dmicro%2F6.0%2Fsle%2F +Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.opensuse.org%2FSUSE%3AUpdates%3AopenSUSE%2DLeap%2DMicro%3A6.0%2Fstandard +Provides: product-endoflife() = 2025%2D05%2D31 + + + + +# Make sure we are at SLES15 level +# TBD +PreReq: glibc >= 2.22 +Conflicts: kernel < 4.4 +Conflicts: perl-Bootloader < 0.904 + +# help packagelist generator to pick -default flavor instead of vanilla, when in doubt +Suggests: kernel-default +Suggests: openSUSE-repos-LeapMicro + +# old package obsoletes removed. If we support 11 SP4 migration to 15, we may +# need to re-add some. + +# ./. + +BuildRoot: %{_tmppath}/%{name}-%{version}-build +# this package should only be available for the "basearchs" of a product +# i586 added as installation-images-SLES reequires it. +ExclusiveArch: x86_64 ppc64le s390x aarch64 + +Source100: weakremovers.inc +%include %{SOURCE100} + +%description +openSUSE Leap Micro 6.0 + + + + + +%prep +%setup -qcT +mkdir license +tar -C license -xzf %{_prefix}/lib/skelcd/CD1/license.tar.gz + +%build + +%install +mkdir -p $RPM_BUILD_ROOT/etc +mkdir -p $RPM_BUILD_ROOT/usr/lib/issue.d + +# Create set-up for issue-generator +echo -e "\nWelcome to openSUSE Leap Micro 6.0 Alpha (%{_target_cpu}) - Kernel \\\r (\\\l).\n" > $RPM_BUILD_ROOT/usr/lib/issue.d/10-SUSE +echo -e "\n" > $RPM_BUILD_ROOT/usr/lib/issue.d/90-SUSE + +# create /etc/SuSE-release - deprecated, FATE#316268 +# no longer build, in case you wonder + +touch $RPM_BUILD_ROOT/etc/motd + +# Setup rpm macros +# XXX this wrong. Needs to be in rpm-config-SUSE +mkdir -p $RPM_BUILD_ROOT/etc/rpm/ +echo "#" > $RPM_BUILD_ROOT/etc/rpm/macros.sle +echo "# RPM macros to identify SLE distribution" >> $RPM_BUILD_ROOT/etc/rpm/macros.sle +echo "#" >> $RPM_BUILD_ROOT/etc/rpm/macros.sle +echo "#==================================================" >> $RPM_BUILD_ROOT/etc/rpm/macros.sle +echo "" >> $RPM_BUILD_ROOT/etc/rpm/macros.sle +echo "%%sle_version %sle_version" >> $RPM_BUILD_ROOT/etc/rpm/macros.sle + +mkdir -p %{buildroot}%{_prefix}/lib +cat > %{buildroot}%{_prefix}/lib/os-release <%{buildroot}%{_sysconfdir}/products.d/Leap-Micro.prod << EOF + + + openSUSE + Leap-Micro + 6.0 + 1 + 2025-05-31 + %{_target_cpu} + cpe:/o:opensuse:leap-micro:6.0 + Leap + + openSUSE Leap Micro 6.0 + 2026-10-31 + + + + + + + + + + + + openSUSE-Leap-Micro-6.0-x86_64 + openSUSE-Leap-Micro-6.0-aarch64 + + + + + + + + + openSUSE Leap Micro 6.0 + openSUSE Leap Micro + openSUSE Leap Micro 6.0 + + en + + + https://doc.opensuse.org/release-notes/%{_target_cpu}/openSUSE/LeapMicro/6.0/release-notes-leap-micro.rpm + https://download.opensuse.org/distribution/leap-micro/6.0/product/repo/Leap-Micro-6.0-x86_64-Media1/ + https://download.opensuse.org/distribution/leap-micro/6.0/product/repo/Leap-Micro-6.0-aarch64-Media1/ + http://download.opensuse.org/update/leap-micro/6.0/sle/ + + + Leap-Micro + Alpha + + + en_US + + openSUSE + + + + +EOF + + + +# enable vendor change openSUSE,SUSE +mkdir -p %{buildroot}%{_sysconfdir}/zypp/vendors.d +echo -e "[main]\nvendors=openSUSE,SUSE,SUSE LLC \n" > %{buildroot}%{_sysconfdir}/zypp/vendors.d/00-openSUSE.conf +%post +# this is a base product, create symlink bsc#1091952 +if [ ! -L %{_sysconfdir}/products.d/baseproduct ]; then + ln -sf Leap-Micro.prod %{_sysconfdir}/products.d/baseproduct +fi + +%files +%defattr(644,root,root,755) +%{_sysconfdir}/os-release +%{_prefix}/lib/os-release +# Bug 404141 - /etc/YaST/control.xml should be owned by some package +# No control file for the time being +# %dir %{_sysconfdir}/YaST2/ +# %config %{_sysconfdir}/YaST2/control.xml +%dir %{_sysconfdir}/zypp +%dir %{_sysconfdir}/zypp/vendors.d +%config(noreplace) %{_sysconfdir}/zypp/vendors.d/00-openSUSE.conf +%dir /etc/products.d +%ghost /etc/products.d/baseproduct +/etc/products.d/* +%config /etc/rpm/macros.sle +%config(noreplace) /etc/motd +%dir /usr/lib/issue.d/ +/usr/lib/issue.d/*-SUSE +%dir %{product_license_dir} +%{product_license_dir}/base +%license license/* + +%changelog