Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:sp5-rebuild
SLE_RT-release
SLE_RT-release.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File SLE_RT-release.spec of Package SLE_RT-release
# # spec file for package SLE_RT # # 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 PRODUCT SLE_RT %define CONTROL SLE_RT %define product sle_rt # old location was /etc/YaST2/licenses/, see jsc#SLE-3067 %define product_license_dir /usr/share/licenses/product/ Name: %{PRODUCT}-release Summary: SUSE Linux Enterprise Real Time 15 SP2 License: MIT Group: System/Fhs Version: 15.2 Release: 0 # BuildRequires: skelcd-control-%{CONTROL} BuildRequires: skelcd-EULA-%{product} Recommends: branding # in rare cases, 'ln' is not found... Requires(post): coreutils Recommends: issue-generator Provides: distribution-release Provides: product(SUSE_SLE) = %{version}-%{release} Provides: product(SUSE_SLE-SP2) = %{version}-%{release} # used by yast to show where the product will be shown during installation. # lowest number will be top-most Provides: displayorder(240) # bsc#1055299 Conflicts: otherproviders(distribution-release) # bsc#1049164 Obsoletes: leanos-release #bsc#1071720 Obsoletes: %{product}-release-DVD < 15 Obsoletes: %{product}-release-MINI < 15 Obsoletes: %{product}-release-POOL < 15 Obsoletes: sles-release-DVD < 15 Obsoletes: sles-release-MINI < 15 Obsoletes: sles-release-POOL < 15 # bsc#1086734 Obsoletes: SLE-RT-release-DVD < 15 Obsoletes: SLE-RT-release-POOL < 15 Obsoletes: SLE-RT-release-MINI < 15 # bsc#1086734 comment #53 Provides: product:SLE-RT = %{version} Obsoletes: product:SLE-RT < %{version} # bsc#1089736 comment #13 Obsoletes: product:SLES < %{version} Obsoletes: sles-release < %{version} Provides: %name-%version Provides: product() = SLE_RT Provides: product(SLE_RT) = 15.2-0 %ifarch x86_64 Provides: product-register-target() = sle%2D15%2Dx86_64 %endif Provides: product-label() = SLE%2D15%2DSP2%2DRT Provides: product-cpeid() = cpe%3A%2Fo%3Asuse%3Asle_rt%3A15%3Asp2 Provides: product-url(releasenotes) = https%3A%2F%2Fwww.suse.com%2Freleasenotes%2F%{_target_cpu}%2FSLE%2DRT%2F15%2DSP2%2Frelease%2Dnotes%2Dsle_rt.rpm %ifarch x86_64 Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DRT%3A15%2DSP2%3Ax86_64%2Fupdate %endif %ifarch x86_64 Provides: product-updates-repoid() = obsrepository%3A%2F%2Fbuild.suse.de%2FSUSE%3AUpdates%3ASLE%2DProduct%2DRT%3A15%2DSP2%3Ax86_64%2Fupdate_debug %endif Provides: product-endoflife() Provides: product(SLE_RT-SP2) = %version-%release Obsoletes: SLE_RT-SP2-migration Obsoletes: product:SLE_RT-SP2-migration Provides: product(SUSE_SLE) = 15.2 Provides: product(SUSE_SLE-SP2) = 15.2 # Make sure we are at SLES15 level # TBD PreReq: glibc >= 2.22 Conflicts: kernel < 4.4 Conflicts: perl-Bootloader < 0.904 BuildRoot: %{_tmppath}/%{name}-%{version}-build # this package should only be available for the "basearchs" of a product ExclusiveArch: x86_64 Source100: weakremovers.inc %include %{SOURCE100} %description <p> The SUSE Linux Enterprise Real Time aims to reduce the latency and increase the predictability and reliability of time-sensitive mission-critical applications. </p> %prep %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 SUSE Linux Enterprise Real Time 15 SP2 (%{_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 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 # Put EULA into correct place mkdir -p $RPM_BUILD_ROOT/%{product_license_dir}%{PRODUCT} cd $RPM_BUILD_ROOT/%{product_license_dir}%{PRODUCT} tar -xf /usr/lib/skelcd/CD1/license-%{PRODUCT}.tar.gz # --overwrite echo "directory.yast" > directory.yast ls lic* > directory.yast mkdir -p $RPM_BUILD_ROOT/etc cat >$RPM_BUILD_ROOT/etc/os-release << EOF NAME="SLE_RT" VERSION="15-SP2%{?betaversion: }%{?betaversion}" VERSION_ID="%{version}%{?betaversion?: }%{?betaversion}" PRETTY_NAME="SUSE Linux Enterprise Real Time 15 SP2" ID="sle_rt" ID_LIKE="suse" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:suse:sle_rt:15:sp2" EOF mkdir -p $RPM_BUILD_ROOT/etc/products.d cat >$RPM_BUILD_ROOT/etc/products.d/SLE_RT.prod << EOF <?xml version="1.0" encoding="UTF-8"?> <product schemeversion="0"> <vendor>SUSE</vendor> <name>SLE_RT</name> <version>15.2</version> <baseversion>15</baseversion> <patchlevel>2</patchlevel> <release>0</release> <endoflife></endoflife> <arch>%{_target_cpu}</arch> <cpeid>cpe:/o:suse:sle_rt:15:sp2</cpeid> <productline>sles</productline> <codestream> <name>SUSE Linux Enterprise Real Time 15</name> <endoflife>2028-07-31</endoflife> </codestream> <register> %ifarch x86_64 <target>sle-15-x86_64</target> %endif </register> <repositories> %ifarch x86_64 <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-RT:15-SP2:x86_64/update" /> %endif %ifarch x86_64 <repository type="update" repoid="obsrepository://build.suse.de/SUSE:Updates:SLE-Product-RT:15-SP2:x86_64/update_debug" /> %endif %ifarch x86_64 <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-RT:15-SP2:x86_64/SLE_RT/15.2/%{_target_cpu}" /> %endif %ifarch x86_64 <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-RT:15-SP2:x86_64/SLE_RT/15.2/%{_target_cpu}" /> %endif %ifarch x86_64 <repository type="pool" repoid="obsproduct://build.suse.de/SUSE:Products:SLE-Product-RT:15-SP2:x86_64/SLE_RT/15.2/%{_target_cpu}" /> %endif </repositories> <summary>SUSE Linux Enterprise Real Time 15 SP2</summary> <shortsummary>SLE-15-SP2-RT</shortsummary> <description><p> The SUSE Linux Enterprise Real Time aims to reduce the latency and increase the predictability and reliability of time-sensitive mission-critical applications. </p></description> <linguas> <language>cs</language> <language>da</language> <language>de</language> <language>en</language> <language>en_GB</language> <language>en_US</language> <language>es</language> <language>fi</language> <language>fr</language> <language>hu</language> <language>it</language> <language>ja</language> <language>nb</language> <language>nl</language> <language>pl</language> <language>pt</language> <language>pt_BR</language> <language>ru</language> <language>sv</language> <language>zh</language> <language>zh_CN</language> <language>zh_TW</language> </linguas> <urls> <url name="releasenotes">https://www.suse.com/releasenotes/%{_target_cpu}/SLE-RT/15-SP2/release-notes-sle_rt.rpm</url> </urls> <buildconfig> <producttheme>SLES</producttheme> </buildconfig> <installconfig> <defaultlang>en_US</defaultlang> <releasepackage name="%{name}" flag="EQ" version="%{version}" release="%{release}"/> <distribution>SUSE_SLE</distribution> </installconfig> <runtimeconfig/> <productdependency relationship="provides" name="SUSE_SLE" baseversion="15" patchlevel="2" flag="EQ"/> <productdependency relationship="provides" name="SUSE_SLE-SP2" baseversion="15" patchlevel="2" flag="EQ"/> </product> EOF %post if [ -L /etc/products.d/baseproduct ] ; then PRODLINK=`readlink -f /etc/products.d/baseproduct` PRODLINK=`basename $PRODLINK` if [ $PRODLINK == "SUSE_%{PRODUCT}.prod" ]; then ln -sf %{PRODUCT}.prod /etc/products.d/baseproduct fi # bsc#1057321 elif [ ! -e /etc/products.d/baseproduct ]; then ln -sf %{PRODUCT}.prod /etc/products.d/baseproduct fi # bsc#942519, #bsc#1036000, bsc#1107040, bsc#1099521: remove SLE hardcoded default value if [ -f /etc/default/grub ] ; then sed -i -e 's|GRUB_DISTRIBUTOR="\?SLES12.*|GRUB_DISTRIBUTOR=|g' -e 's|GRUB_DISTRIBUTOR="\?SLE-12.*|GRUB_DISTRIBUTOR=|g' /etc/default/grub ||: fi # Put EULA into correct place if [ ! -e %{product_license_dir}base ] ; then ln -sf %{PRODUCT} %{product_license_dir}base fi %posttrans # need a posttrans due to bsc#1089736 if [ ! -e /etc/products.d/baseproduct ]; then ln -sf %{PRODUCT}.prod /etc/products.d/baseproduct fi %files %defattr(644,root,root,755) %config /etc/os-release %dir /etc/products.d %ghost /etc/products.d/baseproduct /etc/products.d/* %config /etc/rpm/macros.sle %config(noreplace) /etc/motd %dir %{product_license_dir} %dir %{product_license_dir}%{PRODUCT}/ %dir /usr/lib/issue.d/ /usr/lib/issue.d/*-SUSE %license %{product_license_dir}%{PRODUCT}/license*txt %{product_license_dir}%{PRODUCT}/directory.yast %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor