From b38c83c2dc77b85e1459351aa031dab972dde28e Mon Sep 17 00:00:00 2001 From: ebasov Date: Fri, 7 Feb 2025 21:44:13 +0300 Subject: [PATCH] import redhat-lsb-5.0-0.11.20231006git8d00acdc.el10 --- .gitignore | 2 +- .redhat-lsb.metadata | 2 +- ...sb-release-3.1-update-init-functions.patch | 32 -- SOURCES/redhat-lsb-lsb_start_daemon-fix.patch | 43 -- SPECS/redhat-lsb.spec | 530 +++++++----------- 5 files changed, 212 insertions(+), 397 deletions(-) delete mode 100644 SOURCES/lsb-release-3.1-update-init-functions.patch delete mode 100644 SOURCES/redhat-lsb-lsb_start_daemon-fix.patch diff --git a/.gitignore b/.gitignore index 85b8c08..703c9ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/redhat-lsb-4.1-1.tar.bz2 +SOURCES/redhat-lsb-20231006git8d00acdc.tar.gz diff --git a/.redhat-lsb.metadata b/.redhat-lsb.metadata index 51164b8..acf3199 100644 --- a/.redhat-lsb.metadata +++ b/.redhat-lsb.metadata @@ -1 +1 @@ -475191e59e72fb72f843ac78f53d04e555af8b5e SOURCES/redhat-lsb-4.1-1.tar.bz2 +ebfe8de784adef06f5fe2fab1d1350ded49382ea SOURCES/redhat-lsb-20231006git8d00acdc.tar.gz diff --git a/SOURCES/lsb-release-3.1-update-init-functions.patch b/SOURCES/lsb-release-3.1-update-init-functions.patch deleted file mode 100644 index 1211cb7..0000000 --- a/SOURCES/lsb-release-3.1-update-init-functions.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -urN redhat-lsb-3.1/init-functions redhat-lsb-3.1.mod/init-functions ---- redhat-lsb-3.1/init-functions 2006-12-06 12:24:29.000000000 +1000 -+++ redhat-lsb-3.1.mod/init-functions 2007-06-26 15:41:35.000000000 +1000 -@@ -1,6 +1,10 @@ - #!/bin/sh - - # LSB initscript functions, as defined in the LSB Spec 1.1.0 -+# -+# Lawrence Lim - Tue, 26 June 2007 -+# Updated to the latest LSB 3.1 spec -+# http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic_lines.txt - - start_daemon () { - /etc/redhat-lsb/lsb_start_daemon "$@" -@@ -10,7 +14,7 @@ - /etc/redhat-lsb/lsb_killproc "$@" - } - --pidofprof () { -+pidofproc () { - /etc/redhat-lsb/lsb_pidofproc "$@" - } - -@@ -22,7 +26,7 @@ - /etc/redhat-lsb/lsb_log_message failure "$@" - } - --log_warning_message () { -+log_warning_msg () { - /etc/redhat-lsb/lsb_log_message warning "$@" - } - diff --git a/SOURCES/redhat-lsb-lsb_start_daemon-fix.patch b/SOURCES/redhat-lsb-lsb_start_daemon-fix.patch deleted file mode 100644 index 69f5f28..0000000 --- a/SOURCES/redhat-lsb-lsb_start_daemon-fix.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff -up redhat-lsb-3.1/lsb_start_daemon.orig redhat-lsb-3.1/lsb_start_daemon ---- redhat-lsb-3.1/lsb_start_daemon.orig 2009-05-15 11:20:17.000000000 -0400 -+++ redhat-lsb-3.1/lsb_start_daemon 2009-05-15 11:33:03.000000000 -0400 -@@ -4,6 +4,9 @@ - - nice= - force= -+pidfile= -+user= -+check= - RETVAL= - while [ "$1" != "${1##[-+]}" ]; do - case $1 in -@@ -15,7 +18,28 @@ while [ "$1" != "${1##[-+]}" ]; do - nice=$2 - shift 2 - ;; -+ -p) -+ pidfile="--pidfile $2" -+ shift 2 -+ ;; -+ -u) -+ user="--user $2" -+ shift 2 -+ ;; -+ -c) -+ check="--check $2" -+ shift 2 -+ ;; -+ *) -+ echo "Unknown Option $1" -+ echo "Options are:" -+ echo "-f" -+ echo "-p {pidfile}" -+ echo "-n [+/-nicelevel]" -+ echo "-u {user}" -+ echo "-c {base}" -+ exit 1;; - esac - done --LSB=LSB-1.1 daemon ${force:-} ${nice:-} $* -+LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $* - exit $? diff --git a/SPECS/redhat-lsb.spec b/SPECS/redhat-lsb.spec index 09656b2..70a111a 100644 --- a/SPECS/redhat-lsb.spec +++ b/SPECS/redhat-lsb.spec @@ -1,59 +1,88 @@ +# globals for redhat-lsb-20231006git8d00acdc.tar.gz +%global gitdate 20231006 +%global gitversion 8d00acdc + +%global snapshot %{gitdate}git%{gitversion} +%global gver .%{gitdate}git%{gitversion} + # Define this to link to which library version eg. /lib64/ld-lsb-x86-64.so.3 %global lsbsover 3 %ifarch %{ix86} %global ldso ld-linux.so.2 %global lsbldso ld-lsb.so +%global archname ia32 +%endif + +%ifarch alpha +%global ldso ld-linux-alpha.so.2 +%global lsbldso ld-lsb-alpha.so +%define archname alpha %endif %ifarch ia64 %global ldso ld-linux-ia64.so.2 %global lsbldso ld-lsb-ia64.so +%global archname ia64 %endif %ifarch ppc %global ldso ld.so.1 %global lsbldso ld-lsb-ppc32.so +%global archname ppc32 %endif %ifarch ppc64 %global ldso ld64.so.1 %global lsbldso ld-lsb-ppc64.so +%global archname ppc64 %endif %ifarch ppc64le %global ldso ld64.so.2 %global lsbldso ld-lsb-ppc64le.so +%global archname ppc64le %endif %ifarch s390 %global ldso ld.so.1 %global lsbldso ld-lsb-s390.so +%global archname s390 %endif %ifarch s390x %global ldso ld64.so.1 %global lsbldso ld-lsb-s390x.so +%global archname s390x %endif %ifarch x86_64 %global ldso ld-linux-x86-64.so.2 %global lsbldso ld-lsb-x86-64.so +%global archname amd64 %endif %ifarch %{arm} %global ldso ld-linux.so.2 %global lsbldso ld-lsb-arm.so +%global archname arm %endif %ifarch aarch64 %global ldso ld-linux-aarch64.so.1 %global lsbldso ld-lsb-aarch64.so +%global archname aarch64 %endif %global upstreamlsbrelver 2.0 -%global lsbrelver 4.1 -%global srcrelease 1 +%global lsbrelver 5.0 +%global disclaimer This package is not compliance with LSB, because various \ +components are missing from Fedora or EPEL, so compliance is not possible. \ +Fedora or EPEL explicitly declines add support the missing components from LSB \ +5.0 or earlier because these components are very outdated and have been \ +removed from the repositories and possibly replaced with new ones. \ +This package tries its best to comply with the LSB. Hoping to be helpful and \ +continue to support the LSB project and software that uses it # for >= f28, __brp_ldconfig is added in __os_install_post, it removes the symlink %%{lsbldso} # and thus leading to the FTBS. @@ -61,105 +90,59 @@ # The packages are architecture-specific, but do not contain any ELF # binaries with debuginfo to extract. -%undefine _enable_debug_packages +%global debug_package %{nil} Summary: Implementation of Linux Standard Base specification Name: redhat-lsb -Version: 4.1 -Release: 56%{?dist}.1 -URL: http://www.linuxfoundation.org/collaborate/workgroups/lsb -Source0: https://fedorahosted.org/releases/r/e/redhat-lsb/%{name}-%{version}-%{srcrelease}.tar.bz2 -Patch0: lsb-release-3.1-update-init-functions.patch -Patch1: redhat-lsb-lsb_start_daemon-fix.patch +Version: 5.0 +Release: 0.11%{gver}%{?dist} +URL: https://wiki.linuxfoundation.org/lsb/start +# https://github.com/LinuxStandardBase/lsb-samples/ +Source0: redhat-lsb-%{snapshot}.tar.gz License: GPLv2 BuildRequires: make BuildRequires: perl-generators BuildRequires: perl(Getopt::Long) -%ifarch %{ix86} -%global archname ia32 -%endif -%ifarch ia64 -%global archname ia64 -%endif -%ifarch ppc -%global archname ppc32 -%endif -%ifarch ppc64 -%global archname ppc64 -%endif -%ifarch ppc64le -%global archname ppc64le -%endif -%ifarch s390 -%global archname s390 -%endif -%ifarch s390x -%global archname s390x -%endif -%ifarch x86_64 -%global archname amd64 -%endif -%ifarch %{arm} -%global archname arm -%endif -%ifarch aarch64 -%global archname aarch64 -%endif - -Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} -Requires: redhat-lsb-cxx%{?_isa} = %{version}-%{release} -Requires: redhat-lsb-desktop%{?_isa} = %{version}-%{release} -Requires: redhat-lsb-languages = %{version}-%{release} -Requires: redhat-lsb-printing = %{version}-%{release} -#Requires: redhat-lsb-trialuse = %%{version}-%%{release} - Provides: lsb = %{version}-%{release} Provides: lsb-%{archname} = %{version}-%{release} Provides: lsb-noarch = %{version}-%{release} +Obsoletes: redhat-lsb-trialuse < 5 +Obsoletes: redhat-lsb-submod-multimedia < 5 +Obsoletes: redhat-lsb-submod-security < 5 +Conflicts: lsb_release %description The Linux Standard Base (LSB) is an attempt to develop a set of standards that -will increase compatibility among Linux distributions. It is designed to be +will increase compatibility among Linux distributions. It is designed to be binary-compatible and produce a stable application binary interface (ABI) for independent software vendors. + +%{disclaimer} + The lsb package provides utilities, libraries etc. needed for LSB Compliant Applications. It also contains requirements that will ensure that all components required by the LSB are installed on the system. -%package submod-security -Summary: LSB Security submodule support -Requires: nspr%{?_isa} -# Requires: nspr-devel -Requires: nss%{?_isa} - -Provides: lsb-submod-security-%{archname} = %{version}-%{release} -Provides: lsb-submod-security-noarch = %{version}-%{release} - -%description submod-security -The Linux Standard Base (LSB) Security submodule specifications define -components that are required to be present on an LSB conforming system. - -%package submod-multimedia -Summary: LSB Multimedia submodule support -Requires: alsa-lib%{?_isa} - -Provides: lsb-submod-multimedia-%{archname} = %{version}-%{release} -Provides: lsb-submod-multimedia-noarch = %{version}-%{release} - -%description submod-multimedia -The Linux Standard Base (LSB) Multimedia submodule specifications define -components that are required to be present on an LSB conforming system. - %package core Summary: LSB Core module support +Requires: redhat-lsb = %{version}-%{release} +Provides: lsb-core-%{archname} = %{version}-%{release} +Provides: lsb-core-noarch = %{version}-%{release} + # gLSB Library Requires: glibc%{?_isa} Requires: glibc-common Requires: libgcc%{?_isa} +#LSB requires libcrypt.so.1 +Requires: libxcrypt-compat%{?_isa} #LSB requires libncurses.so.5 for some reason -# and we don't have those in rhel -#Requires: ncurses-compat-libs%{?_isa} +Requires: ncurses-compat-libs%{?_isa} +# ncurses includes +# infocmp +# tic +# tput +Requires: ncurses Requires: pam%{?_isa} Requires: zlib%{?_isa} @@ -256,8 +239,10 @@ Requires: /usr/bin/paste Requires: /usr/bin/patch Requires: /usr/bin/pathchk #better POSIX conformance of /usr/bin/pax -#but we don't have spax -#Requires: spax +%if 0%{?fedora} || 0%{?epel} <= 8 +# not available on epel9 +Requires: spax +%endif Requires: /usr/bin/pidof Requires: /usr/bin/pr Requires: /usr/bin/printf @@ -299,34 +284,41 @@ Requires: /usr/sbin/usermod Requires: /usr/bin/wc Requires: /usr/bin/xargs Requires: /usr/bin/zcat -Requires: redhat-lsb-submod-security%{?_isa} = %{version}-%{release} - -Provides: lsb-core-%{archname} = %{version}-%{release} -Provides: lsb-core-noarch = %{version}-%{release} -#Obsoletes: redhat-lsb < %%{version}-%%{release} %description core +%{disclaimer} + The Linux Standard Base (LSB) Core module support provides the fundamental system interfaces, libraries, and runtime environment upon which all conforming applications and libraries depend. + %package cxx Summary: LSB CXX module support -Requires: libstdc++%{?_isa} Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} - Provides: lsb-cxx-%{archname} = %{version}-%{release} Provides: lsb-cxx-noarch = %{version}-%{release} +Requires: libstdc++%{?_isa} + %description cxx +%{disclaimer} + The Linux Standard Base (LSB) CXX module supports the core interfaces by -providing system interfaces, libraries, and a runtime environment for -applications built using the C++ programming language. These interfaces -provide low-level support for the core constructs of the language, and +providing system interfaces, libraries, and a runtime environment for +applications built using the C++ programming language. These interfaces +provide low-level support for the core constructs of the language, and implement the standard base C++ libraries. %package desktop Summary: LSB Desktop module support +Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} +Provides: lsb-desktop-%{archname} = %{version}-%{release} +Provides: lsb-desktop-noarch = %{version}-%{release} +Provides: lsb-graphics-%{archname} = %{version}-%{release} +Provides: lsb-graphics-noarch = %{version}-%{release} +Obsoletes: redhat-lsb-graphics < %{version}-%{release} + Requires: xdg-utils # LSB_Graphics library Requires: libICE%{?_isa} @@ -346,7 +338,6 @@ Requires: /usr/bin/fc-match Requires: cairo%{?_isa} Requires: freetype%{?_isa} Requires: libjpeg-turbo%{?_isa} - Requires: libpng%{?_isa} Requires: libXft%{?_isa} Requires: libXrender%{?_isa} @@ -356,23 +347,27 @@ Requires: gdk-pixbuf2%{?_isa} Requires: glib2%{?_isa} Requires: gtk2%{?_isa} Requires: pango%{?_isa} +%if 0%{?fedora} +# qt4 not available on epel9 and epel8 +# toolkit-qt is not in rhel +Requires: qt%{?_isa} +Requires: qt-x11%{?_isa} +%endif # xml Requires: libxml2%{?_isa} -Requires: redhat-lsb-submod-multimedia%{?_isa} = %{version}-%{release} -Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} - -Provides: lsb-desktop-%{archname} = %{version}-%{release} -Provides: lsb-desktop-noarch = %{version}-%{release} -Provides: lsb-graphics-%{archname} = %{version}-%{release} -Provides: lsb-graphics-noarch = %{version}-%{release} -Obsoletes: redhat-lsb-graphics < %{version}-%{release} %description desktop +%{disclaimer} + The Linux Standard Base (LSB) Desktop Specifications define components that are required to be present on an LSB conforming system. %package languages Summary: LSB Languages module support +Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} +Provides: lsb-languages-%{archname} = %{version}-%{release} +Provides: lsb-languages-noarch = %{version}-%{release} + # Perl and Perl non-builtin modules Requires: /usr/bin/perl Requires: perl(CGI) @@ -384,6 +379,7 @@ Requires: perl(CPAN) # DB module is a builtin module, but perl package doesn't contain this provide. # Requires: perl(DB) # we also need perl(Pod::Plainer), we need to rpm this package ourself +Requires: perl(Locale::Codes) Requires: perl(File::Spec) Requires: perl(Scalar::Util) Requires: perl(Test::Harness) @@ -398,49 +394,39 @@ Requires: perl(Locale::Maketext) Requires: perl(Fatal) Requires: perl(Sys::Syslog) Requires: perl(Getopt::Long) - -# python -Requires: /usr/bin/python +%if 0%{?fedora} || 0%{?epel} <= 8 +Requires: perl(B::Lint) +Requires: perl(Class::ISA) +Requires: perl(File::CheckTree) +Requires: perl(Pod::LaTeX) +Requires: perl(Pod::Plainer) +%endif +# python3 +Requires: /usr/bin/python3 # java -Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} - -Provides: lsb-languages-%{archname} = %{version}-%{release} -Provides: lsb-languages-noarch = %{version}-%{release} %description languages +%{disclaimer} + The Linux Standard Base (LSB) Languages module supports components for runtime languages which are found on an LSB conforming system. %package printing Summary: LSB Printing module support +Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} +Provides: lsb-printing-%{archname} = %{version}-%{release} +Provides: lsb-printing-noarch = %{version}-%{release} + # gLSB Printing Libraries Requires: cups-libs # gLSB Printing Command and Utilities Requires: /usr/bin/foomatic-rip Requires: /usr/bin/gs -Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} - -Provides: lsb-printing-%{archname} = %{version}-%{release} -Provides: lsb-printing-noarch = %{version}-%{release} -Obsoletes: redhat-lsb-printing < %{version}-%{release} %description printing -The Linux Standard Base (LSB) Printing specifications define components that +The Linux Standard Base (LSB) Printing specifications define components that are required to be present on an LSB conforming system. -%package trialuse -Summary: LSB Trialuse module support -Requires: redhat-lsb-submod-multimedia%{?_isa} = %{version}-%{release} -Requires: redhat-lsb-submod-security%{?_isa} = %{version}-%{release} -Requires: redhat-lsb-core%{?_isa} = %{version}-%{release} - -Provides: lsb-trialuse-%{archname} = %{version}-%{release} -Provides: lsb-trialuse-noarch = %{version}-%{release} - -%description trialuse -The Linux Standard Base (LSB) Trialuse module support defines components -which are not required parts of the LSB Specification. - %package supplemental Summary: LSB supplemental dependencies required by LSB certification tests Requires: net-tools @@ -451,56 +437,40 @@ Requires: sil-abyssinica-fonts Requires: xorg-x11-server-Xvfb %description supplemental +%{disclaimer} + This subpackage brings in supplemental dependencies for components required for passing LSB (Linux Standard Base) certification testsuite, but not directly required to be on LSB conforming system. %prep -%setup -q -%patch0 -p1 -%patch1 -p1 +%setup -q -n redhat-lsb-%{snapshot} %build -cd lsb-release-%{upstreamlsbrelver} +cd lsb_release/src %make_build -%pre -# remove the extra symlink /bin/mailx -> /bin/mail -if [ -e /bin/mailx ]; then - if [ -L /bin/mailx ]; then - rm -f /bin/mailx - fi -fi - %install -# LSB uses /usr/lib rather than /usr/lib64 even for 64bit OS -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_mandir} \ - $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT/usr/lib/lsb \ - $RPM_BUILD_ROOT%{_sysconfdir}/lsb-release.d/ $RPM_BUILD_ROOT%{_sbindir} \ - $RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver} +pushd redhat-lsb +%make_install # manually add Locale::Constants. This module is just an alias of Locale::Codes::Constants -#mkdir -p $RPM_BUILD_ROOT%{perl_vendorlib}/Locale -#cp -p Constants.pm $RPM_BUILD_ROOT%{perl_vendorlib}/Locale -#cp -p Constants.pod $RPM_BUILD_ROOT%{perl_vendorlib}/Locale - -make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" -cd lsb-release-%{upstreamlsbrelver} -make mandir=$RPM_BUILD_ROOT/%{_mandir} prefix=$RPM_BUILD_ROOT/%{_prefix} install -cd .. -# we keep more lsb information in /usr/share/lsb -mkdir -p $RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules -mkdir -p $RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/submodules +mkdir -p %{buildroot}%{perl_vendorlib}/Locale +cp -p Constants.pm %{buildroot}%{perl_vendorlib}/Locale +cp -p Constants.pod %{buildroot}%{perl_vendorlib}/Locale +popd + +pushd lsb_release/src +make mandir=%{buildroot}%{_mandir} prefix=%{buildroot}%{_prefix} install +popd #prepare installation of doc -cp -p lsb-release-2.0/COPYING . -cp -p lsb-release-2.0/README README.lsb_release +cp -p lsb_release/src/COPYING . +cp -p lsb_release/src/README README.lsb_release -# relations between modules and submodules -modules="core cxx desktop languages printing trialuse" -submodules="core perl python cpp toolkit-gtk toolkit-qt toolkit-qt3" -submodules="${submodules} xml multimedia security desktop-misc graphics graphics-ext" -submodules="${submodules} printing" +# modules +mkdir -p %{buildroot}%{_sysconfdir}/lsb-release.d/ +modules="core cxx desktop languages printing" core="core security" cxx="cpp" @@ -515,208 +485,128 @@ for mod in ${modules};do touch $RPM_BUILD_ROOT%{_sysconfdir}/lsb-release.d/${mod}-%{lsbrelver}-noarch done -for submod in ${submodules};do - touch $RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/submodules/${submod}-%{lsbrelver}-%{archname} - touch $RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/submodules/${submod}-%{lsbrelver}-noarch -done -for moddir in ${modules};do - mkdir -p $RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/${moddir} -done - -for submod in ${core};do - ln -snf ../../submodules/${submod}-%{lsbrelver}-%{archname} \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/core/${submod}-%{lsbrelver}-%{archname} - ln -snf ../../submodules/${submod}-%{lsbrelver}-noarch \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/core/${submod}-%{lsbrelver}-noarch -done -for submod in ${cxx};do - ln -snf ../../submodules/${submod}-%{lsbrelver}-%{archname} \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/cxx/${submod}-%{lsbrelver}-%{archname} - ln -snf ../../submodules/${submod}-%{lsbrelver}-noarch \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/cxx/${submod}-%{lsbrelver}-noarch -done -for submod in ${desktop};do - ln -snf ../../submodules/${submod}-%{lsbrelver}-%{archname} \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/desktop/${submod}-%{lsbrelver}-%{archname} - ln -snf ../../submodules/${submod}-%{lsbrelver}-noarch \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/desktop/${submod}-%{lsbrelver}-noarch -done -for submod in ${languages};do - ln -snf ../../submodules/${submod}-%{lsbrelver}-%{archname} \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/languages/${submod}-%{lsbrelver}-%{archname} - ln -snf ../../submodules/${submod}-%{lsbrelver}-noarch \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/languages/${submod}-%{lsbrelver}-noarch -done -for submod in ${printing};do - ln -snf ../../submodules/${submod}-%{lsbrelver}-%{archname} \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/printing/${submod}-%{lsbrelver}-%{archname} - ln -snf ../../submodules/${submod}-%{lsbrelver}-noarch \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/printing/${submod}-%{lsbrelver}-noarch -done -for submod in ${trialuse};do - ln -snf ../../submodules/${submod}-%{lsbrelver}-%{archname} \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/trialuse/${submod}-%{lsbrelver}-%{archname} - ln -snf ../../submodules/${submod}-%{lsbrelver}-noarch \ -$RPM_BUILD_ROOT%{_datadir}/lsb/%{lsbrelver}/modules/trialuse/${submod}-%{lsbrelver}-noarch -done - +mkdir -p %{buildroot}%{_libdir} for LSBVER in %{lsbsover}; do - ln -snf %{ldso} $RPM_BUILD_ROOT/%{_lib}/%{lsbldso}.$LSBVER + ln -snf %{ldso} %{buildroot}%{_libdir}/%{lsbldso}.$LSBVER done -mkdir -p $RPM_BUILD_ROOT/bin - # LSB uses /usr/lib rather than /usr/lib64 even for 64bit OS -# According to the lsb-core documentation provided by +# According to the lsb-core documentation provided by # http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic.pdf # it's OK to put non binary in /usr/lib. -ln -snf ../../../sbin/chkconfig $RPM_BUILD_ROOT/usr/lib/lsb/install_initd -ln -snf ../../../sbin/chkconfig $RPM_BUILD_ROOT/usr/lib/lsb/remove_initd -#ln -snf mail $RPM_BUILD_ROOT/bin/mailx - -#mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/xserver -#ln -snf /usr/%{_lib}/xserver/SecurityPolicy $RPM_BUILD_ROOT/usr/X11R6/lib/X11/xserver/SecurityPolicy -#ln -snf /usr/share/X11/fonts $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts -#ln -snf /usr/share/X11/rgb.txt $RPM_BUILD_ROOT/usr/X11R6/lib/X11/rgb.txt - -cp -p redhat_lsb_init $RPM_BUILD_ROOT/bin/redhat_lsb_init - -%postun submod-security -p -os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") -os.remove("%{_datadir}/lsb/%{lsbrelver}/modules") -os.remove("%{_datadir}/lsb/%{lsbrelver}") -os.remove("%{_datadir}/lsb") -%postun submod-multimedia -p -os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") -os.remove("%{_datadir}/lsb/%{lsbrelver}/modules") -os.remove("%{_datadir}/lsb/%{lsbrelver}") -os.remove("%{_datadir}/lsb") -%postun core -p -os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") -os.remove("%{_datadir}/lsb/%{lsbrelver}/modules") -os.remove("%{_datadir}/lsb/%{lsbrelver}") -os.remove("%{_datadir}/lsb") -%postun cxx -p -os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") -os.remove("%{_datadir}/lsb/%{lsbrelver}/modules") -os.remove("%{_datadir}/lsb/%{lsbrelver}") -os.remove("%{_datadir}/lsb") -%postun desktop -p -os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") -os.remove("%{_datadir}/lsb/%{lsbrelver}/modules") -os.remove("%{_datadir}/lsb/%{lsbrelver}") -os.remove("%{_datadir}/lsb") -%postun languages -p -os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") -os.remove("%{_datadir}/lsb/%{lsbrelver}/modules") -os.remove("%{_datadir}/lsb/%{lsbrelver}") -os.remove("%{_datadir}/lsb") -%postun printing -p -os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") -os.remove("%{_datadir}/lsb/%{lsbrelver}/modules") -os.remove("%{_datadir}/lsb/%{lsbrelver}") -os.remove("%{_datadir}/lsb") -%postun trialuse -p -os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") -os.remove("%{_datadir}/lsb/%{lsbrelver}/modules") -os.remove("%{_datadir}/lsb/%{lsbrelver}") -os.remove("%{_datadir}/lsb") +ln -snf ../../../sbin/chkconfig %{buildroot}/usr/lib/lsb/install_initd +ln -snf ../../../sbin/chkconfig %{buildroot}/usr/lib/lsb/remove_initd +#ln -snf mail %{buildroot}/bin/mailx -%files -%{_datadir}/lsb/ - -%files submod-security -%{_datadir}/lsb/%{lsbrelver}/submodules/security-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/security-%{lsbrelver}-noarch +#mkdir -p %{buildroot}/usr/X11R6/lib/X11/xserver +#ln -snf /usr/%{_lib}/xserver/SecurityPolicy %{buildroot}/usr/X11R6/lib/X11/xserver/SecurityPolicy +#ln -snf /usr/share/X11/fonts %{buildroot}/usr/X11R6/lib/X11/fonts +#ln -snf /usr/share/X11/rgb.txt %{buildroot}/usr/X11R6/lib/X11/rgb.txt -%files submod-multimedia -%{_datadir}/lsb/%{lsbrelver}/submodules/multimedia-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/multimedia-%{lsbrelver}-noarch -%files core -%doc README README.lsb_release +%files +%doc README.md README.lsb_release %license COPYING %{_sysconfdir}/redhat-lsb -%dir %{_sysconfdir}/lsb-release.d -%{_mandir}/*/* -%{_bindir}/* -#/bin/mailx -/bin/redhat_lsb_init +%{_mandir}/*/lsb_release* +%{_bindir}/lsb_release /usr/lib/lsb -/%{_lib}/*so* -/lib/lsb* -%{_datadir}/lsb/%{lsbrelver}/modules/core + +%files core +%dir %{_sysconfdir}/lsb-release.d +%{_libdir}/*so* %{_sysconfdir}/lsb-release.d/core* -%{_datadir}/lsb/%{lsbrelver}/submodules/core-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/core-%{lsbrelver}-noarch %files cxx %{_sysconfdir}/lsb-release.d/cxx* -%{_datadir}/lsb/%{lsbrelver}/modules/cxx -%{_datadir}/lsb/%{lsbrelver}/submodules/cpp-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/cpp-%{lsbrelver}-noarch %files desktop %{_sysconfdir}/lsb-release.d/desktop* -%{_datadir}/lsb/%{lsbrelver}/modules/desktop -%{_datadir}/lsb/%{lsbrelver}/submodules/toolkit-gtk-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/toolkit-gtk-%{lsbrelver}-noarch -%{_datadir}/lsb/%{lsbrelver}/submodules/toolkit-qt-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/toolkit-qt-%{lsbrelver}-noarch -%{_datadir}/lsb/%{lsbrelver}/submodules/toolkit-qt3-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/toolkit-qt3-%{lsbrelver}-noarch -%{_datadir}/lsb/%{lsbrelver}/submodules/xml-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/xml-%{lsbrelver}-noarch -%{_datadir}/lsb/%{lsbrelver}/submodules/desktop-misc-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/desktop-misc-%{lsbrelver}-noarch -%{_datadir}/lsb/%{lsbrelver}/submodules/graphics-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/graphics-%{lsbrelver}-noarch -%{_datadir}/lsb/%{lsbrelver}/submodules/graphics-ext-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/graphics-ext-%{lsbrelver}-noarch %files languages %{_sysconfdir}/lsb-release.d/languages* -%{_datadir}/lsb/%{lsbrelver}/modules/languages -%{_datadir}/lsb/%{lsbrelver}/submodules/perl-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/perl-%{lsbrelver}-noarch -#%{perl_vendorlib}/Locale/Constants.pm -#%{perl_vendorlib}/Locale/Constants.pod -%{_datadir}/lsb/%{lsbrelver}/submodules/python-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/python-%{lsbrelver}-noarch +%{perl_vendorlib}/Locale/Constants.pm +%{perl_vendorlib}/Locale/Constants.pod %files printing %{_sysconfdir}/lsb-release.d/printing* -%{_datadir}/lsb/%{lsbrelver}/modules/printing -%{_datadir}/lsb/%{lsbrelver}/submodules/printing-%{lsbrelver}-%{archname} -%{_datadir}/lsb/%{lsbrelver}/submodules/printing-%{lsbrelver}-noarch - -%files trialuse -%{_sysconfdir}/lsb-release.d/trialuse* -%{_datadir}/lsb/%{lsbrelver}/modules/trialuse %files supplemental #no files, just dependencies %changelog -* Wed Jun 14 2023 Sergey Cherevko - 4.1-56 -- Rebuilt for MSVSphere 9.2 +* Fri Feb 07 2025 Eduard Basov - 5.0-0.11.20231006git8d00acdc +- Rebuilt for MSVSphere 10 -* Thu Aug 12 2021 Lukas Nykryn - 4.1-56 -- Remove things that we don't ship +* Fri Jul 19 2024 Fedora Release Engineering - 5.0-0.11.20231006git8d00acdc +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild -* Tue Aug 10 2021 Mohan Boddu - 4.1-55 -- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Related: rhbz#1991688 +* Tue Jun 04 2024 Sérgio Basto - 5.0-0.10.20231006git8d00acdc +- The packages are architecture-specific, but do not contain any ELF + binaries with debuginfo to extract, so we need disable debuginfo. + +* Sat Mar 02 2024 Sérgio Basto - 5.0-0.9.20231006git8d00acdc +- Add conflicts required by Fedora package guidelines + +* Sat Feb 17 2024 Sérgio Basto - 5.0-0.8.20231006git8d00acdc +- Globalize disclamer +- Add Requires of ncurses which includes infocmp, tic and tput + +* Tue Feb 06 2024 Sérgio Basto - 5.0-0.7.20231006git8d00acdc +- Remove require of libpng12.so.0, lsb-desktop already require libpng +- redhat-lsb now provides lsb_release, in future maybe we can remove the rest since LSB 5.0 is out of date +- more cleanups +- Report that is not LSB compliance, because various components are missing from Fedora, so compliance is not possible + +* Fri Jan 26 2024 Fedora Release Engineering - 5.0-0.6.20231006git8d00acdc +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 5.0-0.5.20231006git8d00acdc +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Oct 25 2023 Sérgio Basto - 5.0-0.4.20231006git8d00acdc +- Recommends the software which is not available on epel + +* Sat Oct 07 2023 Sérgio Basto - 5.0-0.3.20231006git8d00acdc +- Fix some requires mostly on epel9 + +* Fri Oct 06 2023 Sérgio Basto - 5.0-0.2.20231006gita9c49411 +- Update README.md with actual status + +* Fri Oct 06 2023 Sérgio Basto - 5.0-0.1.20231006git92f8ab57 +- redhat-lsb 5.0 with new source location + +* Fri Jul 21 2023 Fedora Release Engineering - 4.1-62 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Apr 10 2023 Sérgio Basto - 4.1-61 +- Remove "Trial Use" specs, because LSB 5.0 Trial Use is completely outdated + +* Fri Jan 20 2023 Fedora Release Engineering - 4.1-60 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 4.1-59 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jul 02 2022 Sérgio Basto - 4.1-58 +- Require libxcrypt-compat in core, as libcrypt.so.1 is mandatory (rhbz#2055953) + +* Mon Jun 27 2022 Sérgio Basto - 4.1-57 +- ncurses-compat-libs was dropped in F37, to workaround and fix FTI (fails to + install), since F37 we use ncurses-libs + +* Fri Jan 21 2022 Fedora Release Engineering - 4.1-56 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 4.1-55 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue May 25 2021 Florian Weimer - 4.1-54 - Remove unnecessary redhat_lsb_trigger.* programs (#1964367) * Tue May 25 2021 Florian Weimer - 4.1-53 -- Do not call non-existing lsn program on glibc updates - -* Fri Apr 16 2021 Mohan Boddu - 4.1-53 -- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 +- Do not call non-existing lsn program on glibc updates (#1625584) * Wed Jan 27 2021 Fedora Release Engineering - 4.1-52 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild