openmamba-lsb/openmamba-lsb.spec

985 lines
35 KiB
RPMSpec
Raw Permalink Normal View History

%define lsbrelver 2.0
%define lsbsover 3
# IMPORTANT NOTE: arm is currently not a supported architecture for LSB 4.1
# openmamba provides these packages for build and run softwares that require
# the LSB modules installed
%ifarch %{ix86} arm
%define ldso ld-linux.so.2
%define lsb_proginterp /lib/ld-lsb.so.3
%define lsb_archname ia32
%define qual %{nil}
%endif
%ifarch x86_64
%define ldso ld-linux-x86-64.so.2
%define lsb_proginterp /lib64/ld-lsb-x86-64.so.3
%define lsb_archname x86-64
%define qual ()(64bit)
%endif
%ifarch aarch64
%define ldso ld-linux-aarch64.so.1
%define lsb_proginterp /lib64/ld-lsb-aarch64.so.3
%define lsb_archname aarch64
%define qual ()(64bit)
%endif
# See:
# https://ldn.linuxfoundation.org/lsb/lsb4-resource-page
# http://www.linuxbase.org/navigator/browse/module.php
Name: openmamba-lsb
Version: 4.1
Release: 6mamba
Summary: Linux Standard Base Core (%{lsb_archname})
Group: System/Configuration
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: https://wiki.linuxfoundation.org/lsb/start
# http://refspecs.linuxbase.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/lsbrelease.html
Source0: http://sourceforge.net/projects/lsb/files/lsb_release/%{lsbrelver}/lsb-release-%{lsbrelver}.tar.gz
Source1: lsb_init-functions.sh
Patch0: %{name}-3.2-lsb_release_GetLSBInfo.patch
Patch1: %{name}-3.2-lsb_release_openmamba.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libcups-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libGL-devel
BuildRequires: libglib-devel
BuildRequires: libGLU-devel
BuildRequires: libgtk2-devel
BuildRequires: libICE-devel
BuildRequires: libjpeg-devel
BuildRequires: libncurses-devel
BuildRequires: libnspr-devel
BuildRequires: libnss-devel
BuildRequires: libpango-devel
BuildRequires: libpng12-devel
BuildRequires: libqt4-devel
BuildRequires: libSM-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXft-devel
BuildRequires: libXi-devel
BuildRequires: libxml2-devel
BuildRequires: libXrender-devel
BuildRequires: libXt-devel
BuildRequires: libXtst-devel
BuildRequires: libz-devel
BuildRequires: pam-devel
BuildRequires: perl-Class-ISA
BuildRequires: perl-devel
BuildRequires: perl-Pod-Plainer
## AUTOBUILDREQ-END
BuildRequires: openmamba-release >= 1.91-2
BuildRequires: perl >= 2:5.36.0
Requires(pre): /usr/bin/install
Requires(pre): /usr/bin/ln
Requires: %{name}-core = %{?epoch:epoch:}%{version}-%{release}
Requires: %{name}-cxx = %{?epoch:epoch:}%{version}-%{release}
#Requires: %{name}-desktop = %{?epoch:epoch:}%{version}-%{release}
#Requires: %{name}-languages = %{?epoch:epoch:}%{version}-%{release}
#Requires: %{name}-printing = %{?epoch:epoch:}%{version}-%{release}
# LSB <= v1.3
Provides: lsb = %{version}
# LSB >= v2.0
Provides: lsb-%{lsb_archname} = %{version}
Provides: lsb-noarch = %{version}
#
Obsoletes: lsb < 4.1
ExclusiveArch: %{ix86} x86_64 arm aarch64
%description
The goal of the Linux Standards Base (LSB) is to develop and promote a set of binary standards that will increase compatibility among Linux systems (and other similar systems), and enable software applications to run on any conforming system.
This package provides utilities needed for LSB Compliant Applications.
It also contains requirements that will ensure that all components required by the LSB that are provided by %{_distrib_id} are installed on the system.
%package core
Summary: Linux Standard Base Core (%{lsb_archname})
Group: System/Configuration
Provides: lsb-core-noarch = %{version}
Provides: lsb-core-%{lsb_archname} = %{version}
# for backward compatibility
Provides: lsb-core = %{version}
Obsoletes: lsb-core < 4.1
# old module now part of the core specifications
Provides: lsb-security = %{?epoch:epoch:}%{version}-%{release}
Obsoletes: lsb-security < 4.1
# for backward compatibility
Provides: /usr/bin/lsb_release
Provides: /usr/lib/lsb/install_initd
Provides: /usr/lib/lsb/remove_initd
Provides: /usr/lib/lsb/init-functions
# See: <http://www.linuxbase.org/navigator/browse/module.php>
# Module LSB-Core
# \ SubModule LSB_Core (Core LSB Specification)
# \ Commands
Requires: /usr/bin/[
# alias (Built in)
Requires: /usr/bin/ar
Requires: /usr/bin/at
Requires: /usr/bin/awk
Requires: /usr/bin/basename
Requires: /usr/bin/batch
Requires: /usr/bin/bc
# bg (Built in)
Requires: /usr/bin/cat
# cd (Built in)
Requires: /usr/bin/chfn
Requires: /usr/bin/chgrp
Requires: /usr/bin/chmod
Requires: /usr/bin/chown
Requires: /usr/bin/chsh
Requires: /usr/bin/cksum
Requires: /usr/bin/cmp
Requires: /usr/bin/col
Requires: /usr/bin/comm
# command (Built in)
Requires: /usr/bin/cp
Requires: /usr/bin/cpio
Requires: /usr/bin/crontab
Requires: /usr/bin/csplit
Requires: /usr/bin/cut
Requires: /usr/bin/date
Requires: /usr/bin/dd
Requires: /usr/bin/df
Requires: /usr/bin/diff
Requires: /usr/bin/dirname
Requires: /usr/bin/dmesg
Requires: /usr/bin/du
Requires: /usr/bin/echo
Requires: /usr/bin/ed
Requires: /usr/bin/egrep
Requires: /usr/bin/env
Requires: /usr/bin/expand
Requires: /usr/bin/expr
Requires: /usr/bin/false
# fc (Built in)
# fg (Built in)
Requires: /usr/bin/fgrep
Requires: /usr/bin/file
Requires: /usr/bin/find
Requires: /usr/bin/fold
Requires: /usr/bin/fuser
Requires: /usr/bin/gencat
Requires: /usr/bin/getconf
# getopts (Built in)
Requires: /usr/bin/gettext
Requires: /usr/bin/grep
Requires: /usr/sbin/groupadd
Requires: /usr/sbin/groupdel
Requires: /usr/sbin/groupmod
# NOTE: Debian, RHEL, OpenSuSE: /usr/bin/groups
Requires: /usr/bin/groups
Requires: /usr/bin/gunzip
Requires: /usr/bin/gzip
# hash (Built in)
Requires: /usr/bin/head
Requires: /usr/bin/hostname
Requires: /usr/bin/iconv
Requires: /usr/bin/id
Requires: /usr/bin/install
# note: install_initd is provided by this package
#Requires: /usr/lib/lsb/install_initd
Requires: /usr/bin/ipcrm
Requires: /usr/bin/ipcs
# jobs (Built in)
Requires: /usr/bin/join
Requires: /usr/bin/kill
Requires: /usr/bin/killall
Requires: /usr/bin/ln
Requires: /usr/bin/locale
Requires: /usr/bin/localedef
Requires: /usr/bin/logger
Requires: /usr/bin/logname
Requires: /usr/bin/lp
Requires: /usr/bin/lpr
Requires: /usr/bin/ls
Requires: /usr/bin/lsb_release
Requires: /usr/bin/m4
Requires: /usr/bin/mailx
Requires: /usr/bin/make
Requires: /usr/bin/man
Requires: /usr/bin/md5sum
Requires: /usr/bin/mkdir
Requires: /usr/bin/mkfifo
Requires: /usr/bin/mknod
Requires: /usr/bin/mktemp
Requires: /usr/bin/more
Requires: /usr/bin/mount
Requires: /usr/bin/msgfmt
Requires: /usr/bin/mv
Requires: /usr/bin/newgrp
Requires: /usr/bin/nice
Requires: /usr/bin/nl
Requires: /usr/bin/nohup
Requires: /usr/bin/od
Requires: /usr/bin/passwd
Requires: /usr/bin/paste
Requires: /usr/bin/patch
Requires: /usr/bin/pathchk
Requires: /usr/bin/pax
# NOTE (LSB): pidof may be stored in /sbin
Requires: /usr/bin/pidof
Requires: /usr/bin/pr
Requires: /usr/bin/printf
Requires: /usr/bin/ps
Requires: /usr/bin/pwd
# read (Built in)
# note: remove_initd is provided by this package
#Requires: /usr/lib/lsb/remove_initd
Requires: /usr/bin/renice
Requires: /usr/bin/rm
Requires: /usr/bin/rmdir
Requires: /usr/bin/sed
Requires: /usr/sbin/sendmail
Requires: /usr/bin/seq
Requires: /usr/bin/sh
Requires: /usr/sbin/shutdown
Requires: /usr/bin/sleep
Requires: /usr/bin/sort
Requires: /usr/bin/split
Requires: /usr/bin/strings
Requires: /usr/bin/strip
Requires: /usr/bin/stty
Requires: /usr/bin/su
Requires: /usr/bin/sync
Requires: /usr/bin/tail
Requires: /usr/bin/tar
Requires: /usr/bin/tee
Requires: /usr/bin/test
Requires: /usr/bin/time
Requires: /usr/bin/touch
Requires: /usr/bin/tr
Requires: /usr/bin/true
Requires: /usr/bin/tsort
Requires: /usr/bin/tty
# type (Built in)
# ulimit (Built in)
# umask (Built in)
Requires: /usr/bin/umount
# unalias (Built in)
Requires: /usr/bin/uname
Requires: /usr/bin/unexpand
Requires: /usr/bin/uniq
Requires: /usr/sbin/useradd
Requires: /usr/sbin/userdel
Requires: /usr/sbin/usermod
# wait (Built in)
Requires: /usr/bin/wc
Requires: /usr/bin/xargs
Requires: /usr/bin/zcat
# Module LSB-Core
# \ SubModule LSB_Core (Core LSB Specification)
# \ Libraries
Requires: %{lsb_proginterp}
#
Requires: libc.so.6%{qual}
Requires: libcrypt.so.1%{qual}
Requires: libdl.so.2%{qual}
Requires: libgcc_s.so.1%{qual}
Requires: libm.so.6%{qual}
Requires: libncurses.so.5%{qual}
Requires: libpam.so.0%{qual}
Requires: libpthread.so.0%{qual}
Requires: libutil.so.1%{qual}
Requires: librt.so.1%{qual}
Requires: libz.so.1%{qual}
#
Requires: libnspr4.so%{qual}
Requires: libnss3.so%{qual}
Requires: libssl3.so%{qual}
#
### FIXME - START
# http://refspecs.freestandards.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/execenvfhs.html
# http://www.pathname.com/fhs/pub/fhs-2.3.html#DEVDEVICEFILES
#Requires: /dev/MAKEDEV
#Requires: /dev/null
#Requires: /dev/tty
#Requires: /dev/zero
# FHS 2.3: mandatory tools
Requires: /bin/login
# http://refspecs.freestandards.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/etc.html
# NOTE: Future Directions: the 'lsbinstall' tool will make these directories
# implementation specific and no longer required
Requires: /etc/cron.d
Requires: /etc/cron.daily
Requires: /etc/cron.hourly
Requires: /etc/cron.monthly
Requires: /etc/cron.weekly
# FIXME: don't require /etc/init.d because it is a symlink in initscript and for this reason
# causes removal of lsb* packages on initscript upgrade
#Requires: /etc/rc.d/init.d
Requires: /etc/profile.d
### FIXME - END
%description core
The goal of the Linux Standards Base (LSB) is to develop and promote a set of binary standards that will increase compatibility among Linux systems (and other similar systems), and enable software applications to run on any conforming system.
This package provides an implementation of the core of version %{version} of the Linux Standard Base.
It also contains requirements that will ensure that all components required by the LSB that are provided by %{_distrib_id} are installed on the system.
%package cxx
Summary: Linux Standard Base CXX specifications (%{lsb_archname})
Group: System/Configuration
Provides: lsb-cxx = %{version}
Obsoletes: lsb-cxx < 4.1
Requires: %{name}-core = %{?epoch:epoch:}%{version}-%{release}
# See: <http://www.linuxbase.org/navigator/browse/module.php>
# Module LSB-CXX
# \ SubModule LSB_Cpp (LSB C++ module)
Requires: libstdc++.so.6%{qual}
%description cxx
The goal of the Linux Standards Base (LSB) is to develop and promote a set of binary standards that will increase compatibility among Linux systems (and other similar systems), and enable software applications to run on any conforming system.
This package provides an implementation of version %{version} of the Linux Standard Base C++ (CXX) specification for %{_distrib_id}.
%package desktop
Summary: Linux Standard Base Desktop specifications (%{lsb_archname})
Group: System/Configuration
Provides: lsb-desktop = %{version}
Obsoletes: lsb-desktop < 4.1
Provides: lsb-desktop-noarch = %{version}
Provides: lsb-desktop-%{lsb_archname} = %{version}
Provides: lsb-graphics-%{lsb_archname} = %{version}
#
Provides: lsb-graphics = %{version}
Obsoletes: lsb-graphics < 4.1
Provides: lsb-multimedia = %{version}
Obsoletes: lsb-multimedia < 4.1
#
Requires: %{name}-core = %{?epoch:epoch:}%{version}-%{release}
Requires: %{name}-languages = %{?epoch:epoch:}%{version}-%{release}
Requires: %{name}-printing = %{?epoch:epoch:}%{version}-%{release}
#
# See: <http://www.linuxbase.org/navigator/browse/module.php>
# Module LSB-Desktop
# \ SubModule LSB_Graphics (Graphics libraries Module)
Requires: libX11.so.6%{qual}
Requires: libXt.so.6%{qual}
Requires: libGL.so.1%{qual}
Requires: libXext.so.6%{qual}
Requires: libICE.so.6%{qual}
Requires: libSM.so.6%{qual}
Requires: libXi.so.6%{qual}
Requires: libGLU.so.1%{qual}
Requires: libXtst.so.6%{qual}
# Module LSB-Desktop
# \ SubModule LSB_Graphics_Ext (Graphics additional libraries Module)
# \ Commands
Requires: /usr/bin/fc-cache
Requires: /usr/bin/fc-list
Requires: /usr/bin/fc-match
# Module LSB-Desktop
# \ SubModule LSB_Graphics_Ext (Graphics additional libraries Module)
# \ Libraries
Requires: libfontconfig.so.1%{qual}
Requires: libpng12.so.0%{qual}
Requires: libjpeg.so.62%{qual}
Requires: libXrender.so.1%{qual}
Requires: libfreetype.so.6%{qual}
Requires: libXft.so.2%{qual}
Requires: libcairo.so.2%{qual}
# Module LSB-Desktop
# \ SubModule LSB_Toolkit_Gtk (LSB GTK Toolkit module)
Requires: libglib-2.0.so.0%{qual}
Requires: libgobject-2.0.so.0%{qual}
Requires: libgmodule-2.0.so.0%{qual}
Requires: libgthread-2.0.so.0%{qual}
Requires: libatk-1.0.so.0%{qual}
Requires: libpango-1.0.so.0%{qual}
Requires: libpangoxft-1.0.so.0%{qual}
Requires: libpangoft2-1.0.so.0%{qual}
Requires: libgdk_pixbuf-2.0.so.0%{qual}
Requires: libgdk_pixbuf_xlib-2.0.so.0%{qual}
Requires: libgdk-x11-2.0.so.0%{qual}
Requires: libgtk-x11-2.0.so.0%{qual}
Requires: libpangocairo-1.0.so.0%{qual}
# Module LSB-Desktop
# \ SubModule LSB_Toolkit_Qt (LSB Qt4 Toolkit module)
Requires: libQtCore.so.4%{qual}
Requires: libQtGui.so.4%{qual}
Requires: libQtNetwork.so.4%{qual}
Requires: libQtXml.so.4%{qual}
Requires: libQtOpenGL.so.4%{qual}
Requires: libQtSql.so.4%{qual}
Requires: libQtSvg.so.4%{qual}
# Module LSB-Desktop
# \ SubModule LSB_XML (LSB XML module)
Requires: libxml2.so.2%{qual}
# Module LSB-Desktop
# \ SubModule LSB_Desktop_Misc
Requires: /usr/bin/xdg-desktop-icon
Requires: /usr/bin/xdg-desktop-menu
Requires: /usr/bin/xdg-email
Requires: /usr/bin/xdg-icon-resource
Requires: /usr/bin/xdg-mime
Requires: /usr/bin/xdg-open
Requires: /usr/bin/xdg-screensaver
# Module LSB-Desktop
# \ SubModule LSB_Desktop_Multimedia
Requires: libasound.so.2%{qual}
%description desktop
The goal of the Linux Standards Base (LSB) is to develop and promote a set of binary standards that will increase compatibility among Linux systems (and other similar systems), and enable software applications to run on any conforming system.
This package provides an implementation of version %{version} of the Linux Standard Base Desktop specification for %{_distrib_id}.
## The languages module contains the Perl and Python submodules
%package languages
Summary: Linux Standard Base Languages specifications (%{lsb_archname})
Group: System/Configuration
Provides: lsb-languages = %{version}
Obsoletes: lsb-languages < 4.1
Requires: %{name}-core = %{?epoch:epoch:}%{version}-%{release}
#
# See: <http://www.linuxbase.org/navigator/browse/module.php>
# Module LSB-Languages
# \ SubModule LSB_Perl (LSB Perl Module)
Requires: /usr/bin/perl
Requires: perl >= 5.8.8
Requires: perl(AnyDBM_File)
Requires: perl(Attribute::Handlers)
Requires: perl(AutoLoader)
Requires: perl(AutoSplit)
Requires: perl(B::Concise)
#Requires: perl(B::Debug)
Requires: perl(B::Deparse)
Requires: perl(B::Lint)
Requires: perl(B::Showlex)
Requires: perl(B::Terse)
Requires: perl(B::Xref)
Requires: perl(Benchmark)
Requires: perl(CGI)
#Requires: perl(CGI::Apache)
Requires: perl(CGI::Carp)
Requires: perl(CGI::Cookie)
Requires: perl(CGI::Pretty)
Requires: perl(CGI::Push)
#Requires: perl(CGI::Switch)
Requires: perl(CGI::Util)
Requires: perl(CPAN)
Requires: perl(CPAN::FirstTime)
Requires: perl(CPAN::Nox)
Requires: perl(Carp)
Requires: perl(Carp::Heavy)
Requires: perl(Class::ISA)
Requires: perl(Class::Struct)
Requires: perl(Cwd)
Requires: perl(DB)
Requires: perl(DBM_Filter)
Requires: perl(DBM_Filter::encode)
Requires: perl(DBM_Filter::int32)
Requires: perl(DBM_Filter::null)
Requires: perl(DBM_Filter::utf8)
Requires: perl(Data::Dumper)
## Devel::DProf is a DEPRECATED Perl code profiler - Devel::NYTProf must be used instead
#Requires: perl(Devel::DProf)
Requires: perl(Devel::PPPort)
Requires: perl(Devel::Peek)
Requires: perl(Devel::SelfStubber)
Requires: perl(Digest)
Requires: perl(Digest::MD5)
Requires: perl(Digest::base)
Requires: perl(Digest::file)
Requires: perl(DirHandle)
Requires: perl(Dumpvalue)
Requires: perl(Encode)
Requires: perl(Encode::Alias)
Requires: perl(Encode::Byte)
Requires: perl(Encode::CJKConstants)
Requires: perl(Encode::CN)
Requires: perl(Encode::CN::HZ)
Requires: perl(Encode::Config)
Requires: perl(Encode::EBCDIC)
Requires: perl(Encode::Encoder)
Requires: perl(Encode::Encoding)
Requires: perl(Encode::Guess)
Requires: perl(Encode::JP)
Requires: perl(Encode::JP::H2Z)
Requires: perl(Encode::JP::JIS7)
Requires: perl(Encode::KR)
Requires: perl(Encode::KR::2022_KR)
Requires: perl(Encode::MIME::Header)
Requires: perl(Encode::Symbol)
Requires: perl(Encode::TW)
Requires: perl(Encode::Unicode)
Requires: perl(Encode::Unicode::UTF7)
Requires: perl(English)
Requires: perl(Env)
Requires: perl(Exporter)
Requires: perl(Exporter::Heavy)
Requires: perl(ExtUtils::Command)
Requires: perl(ExtUtils::Command::MM)
Requires: perl(ExtUtils::Install)
Requires: perl(ExtUtils::Installed)
Requires: perl(ExtUtils::Liblist)
Requires: perl(ExtUtils::Liblist::Kid)
Requires: perl(ExtUtils::MM_Unix)
Requires: perl(ExtUtils::MY)
Requires: perl(ExtUtils::MakeMaker)
Requires: perl(ExtUtils::MakeMaker::Config)
Requires: perl(ExtUtils::Manifest)
Requires: perl(ExtUtils::Mkbootstrap)
Requires: perl(ExtUtils::Mksymlists)
Requires: perl(ExtUtils::Packlist)
Requires: perl(ExtUtils::testlib)
Requires: perl(Fatal)
Requires: perl(Fcntl)
Requires: perl(File::Basename)
Requires: perl(File::CheckTree)
Requires: perl(File::Compare)
Requires: perl(File::Copy)
Requires: perl(File::DosGlob)
Requires: perl(File::Find)
Requires: perl(File::Glob)
Requires: perl(File::Path)
Requires: perl(File::Spec)
Requires: perl(File::Spec::Functions)
Requires: perl(File::Spec::Unix)
Requires: perl(File::Temp)
Requires: perl(File::stat)
Requires: perl(FileCache)
Requires: perl(FileHandle)
Requires: perl(Filter::Simple)
Requires: perl(Filter::Util::Call)
Requires: perl(FindBin)
Requires: perl(GDBM_File)
Requires: perl(Getopt::Long)
Requires: perl(Getopt::Std)
Requires: perl(Hash::Util)
Requires: perl(I18N::Collate)
Requires: perl(I18N::LangTags)
Requires: perl(I18N::LangTags::Detect)
Requires: perl(I18N::LangTags::List)
Requires: perl(I18N::Langinfo)
Requires: perl(IO)
Requires: perl(IO::Dir)
Requires: perl(IO::File)
Requires: perl(IO::Handle)
Requires: perl(IO::Pipe)
Requires: perl(IO::Poll)
Requires: perl(IO::Seekable)
Requires: perl(IO::Select)
Requires: perl(IO::Socket)
Requires: perl(IO::Socket::INET)
Requires: perl(IO::Socket::UNIX)
Requires: perl(IPC::Msg)
Requires: perl(IPC::Open2)
Requires: perl(IPC::Open3)
Requires: perl(IPC::Semaphore)
Requires: perl(IPC::SysV)
Requires: perl(List::Util)
# FIXME: perl(Locale::Constants) seems to be provided by perl
# see: http://perldoc.perl.org/5.8.8/Locale/Constants.html
#Requires: perl(Locale::Constants)
Requires: perl(Locale::Country)
Requires: perl(Locale::Currency)
Requires: perl(Locale::Language)
Requires: perl(Locale::Maketext)
Requires: perl(Locale::Script)
Requires: perl(MIME::Base64)
Requires: perl(MIME::QuotedPrint)
Requires: perl(Math::BigFloat)
Requires: perl(Math::BigInt)
Requires: perl(Math::BigInt::Calc)
#Requires: perl(Math::BigInt::CalcEmu)
Requires: perl(Math::BigRat)
Requires: perl(Math::Complex)
Requires: perl(Math::Trig)
Requires: perl(Memoize)
Requires: perl(Memoize::AnyDBM_File)
Requires: perl(Memoize::Expire)
Requires: perl(Memoize::ExpireFile)
Requires: perl(Memoize::ExpireTest)
Requires: perl(Memoize::SDBM_File)
Requires: perl(Memoize::Storable)
Requires: perl(NEXT)
Requires: perl(Net::Cmd)
Requires: perl(Net::Config)
Requires: perl(Net::Domain)
Requires: perl(Net::FTP)
Requires: perl(Net::NNTP)
Requires: perl(Net::Netrc)
Requires: perl(Net::POP3)
Requires: perl(Net::Ping)
Requires: perl(Net::SMTP)
Requires: perl(Net::Time)
Requires: perl(Net::hostent)
Requires: perl(Net::netent)
Requires: perl(Net::protoent)
Requires: perl(Net::servent)
Requires: perl(O)
Requires: perl(Opcode)
Requires: perl(POSIX)
Requires: perl(PerlIO)
Requires: perl(PerlIO::encoding)
Requires: perl(PerlIO::scalar)
Requires: perl(PerlIO::via)
Requires: perl(PerlIO::via::QuotedPrint)
Requires: perl(Pod::Checker)
Requires: perl(Pod::Find)
Requires: perl(Pod::Functions)
Requires: perl(Pod::Html)
Requires: perl(Pod::InputObjects)
Requires: perl(Pod::LaTeX)
Requires: perl(Pod::Man)
Requires: perl(Pod::ParseLink)
Requires: perl(Pod::ParseUtils)
Requires: perl(Pod::Parser)
Requires: perl(Pod::Perldoc::ToChecker)
Requires: perl(Pod::Perldoc::ToMan)
Requires: perl(Pod::Perldoc::ToNroff)
Requires: perl(Pod::Perldoc::ToPod)
Requires: perl(Pod::Perldoc::ToText)
Requires: perl(Pod::PlainText)
Requires: perl(Pod::Plainer)
Requires: perl(Pod::Select)
Requires: perl(Pod::Text)
Requires: perl(Pod::Text::Color)
Requires: perl(Pod::Text::Overstrike)
Requires: perl(Pod::Text::Termcap)
Requires: perl(Pod::Usage)
Requires: perl(SDBM_File)
Requires: perl(Safe)
Requires: perl(Scalar::Util)
Requires: perl(Search::Dict)
Requires: perl(SelectSaver)
Requires: perl(SelfLoader)
# FIXME: Shell has been deprecated upstream by Perl and removed in 5.16.
# As of LSB 4.1, it is still a requirement.
#Requires: perl(Shell)
Requires: perl(Socket)
Requires: perl(Storable)
Requires: perl(Sys::Hostname)
Requires: perl(Sys::Syslog)
Requires: perl(Term::ANSIColor)
Requires: perl(Term::Complete)
Requires: perl(Term::ReadLine)
Requires: perl(Test::Builder)
Requires: perl(Test::Builder::Module)
Requires: perl(Test::Builder::Tester)
Requires: perl(Test::Builder::Tester::Color)
Requires: perl(Test::Harness)
Requires: perl(Test::More)
Requires: perl(Test::Simple)
Requires: perl(Text::Abbrev)
Requires: perl(Text::Balanced)
Requires: perl(Text::ParseWords)
Requires: perl(Text::Soundex)
Requires: perl(Text::Tabs)
Requires: perl(Text::Wrap)
Requires: perl(Tie::Array)
Requires: perl(Tie::File)
Requires: perl(Tie::Handle)
Requires: perl(Tie::Hash)
Requires: perl(Tie::Memoize)
Requires: perl(Tie::RefHash)
Requires: perl(Tie::Scalar)
Requires: perl(Tie::SubstrHash)
Requires: perl(Time::HiRes)
Requires: perl(Time::Local)
Requires: perl(Time::gmtime)
Requires: perl(Time::localtime)
Requires: perl(Time::tm)
Requires: perl(Unicode::Collate)
Requires: perl(Unicode::Normalize)
Requires: perl(Unicode::UCD)
Requires: perl(User::grent)
Requires: perl(User::pwent)
Requires: perl(attributes)
Requires: perl(autouse)
Requires: perl(base)
Requires: perl(bigint)
Requires: perl(bignum)
Requires: perl(bigrat)
Requires: perl(blib)
Requires: perl(bytes)
Requires: perl(charnames)
Requires: perl(constant)
Requires: perl(diagnostics)
Requires: perl(fields)
Requires: perl(filetest)
Requires: perl(if)
Requires: perl(integer)
Requires: perl(less)
Requires: perl(locale)
Requires: perl(open)
Requires: perl(overload)
Requires: perl(re)
Requires: perl(sigtrap)
Requires: perl(sort)
Requires: perl(strict)
Requires: perl(subs)
Requires: perl(utf8)
Requires: perl(warnings)
#
# Module LSB-Languages
# \ SubModule LSB_Python (LSB Python Module)
Requires: /usr/bin/python
Requires: python >= 2.4.2
#
## Licensing issues for the Java compliance test suite make it impossible to
## include Java as a language in the LSB.
## Therefore, Java has been removed from Trial Use status in LSB 4.1.
# Module LSB-Languages
# \ SubModule LSB_Java (LSB Java Module)
#Requires: /usr/bin/java
#Requires: Java Platform, Standard Edition 6
%description languages
The goal of the Linux Standards Base (LSB) is to develop and promote a set of binary standards that will increase compatibility among Linux systems (and other similar systems), and enable software applications to run on any conforming system.
This package provides an implementation of version %{version} of the Linux Standard Base Languages specification for %{_distrib_id}.
%package printing
Summary: Linux Standard Base Printing specifications (%{lsb_archname})
Group: System/Configuration
Provides: lsb-printing = %{version}
Obsoletes: lsb-printing < 4.1
Provides: lsb-printing-%{lsb_archname} = %{version}
Provides: lsb-printing-noarch = %{version}
#
Requires: %{name}-core = %{?epoch:epoch:}%{version}-%{release}
# See: <http://www.linuxbase.org/navigator/browse/module.php>
# Module LSB-Printing
# \ SubModule LSB_Printing (LSB Printing module)
# \ Commands
Requires: /usr/lib/cups/filter/foomatic-rip
Requires: /usr/bin/gs
# already provided by lsb-core
#Requires: /usr/bin/lp
#Requires: /usr/bin/lpr
# Module LSB-Printing
# \ SubModule LSB_Printing (LSB Printing module)
# \ Libraries
Requires: libcups.so.2%{qual}
Requires: libcupsimage.so.2%{qual}
%description printing
The goal of the Linux Standards Base (LSB) is to develop and promote a set of binary standards that will increase compatibility among Linux systems (and other similar systems), and enable software applications to run on any conforming system.
This package provides an implementation of version %{version} of the Linux Standard Base Printing specification for %{_distrib_id}.
%package tests
Group: System/Configuration
Summary: Linux Standard Base test files and requirements
Provides: lsb-tests = %{version}
Obsoletes: lsb-tests < 4.1
# Other requirements to run LSB tests, see: /opt/lsb/test/manager/README
Requires: /usr/bin/rpm
Requires: /usr/bin/lsb_release
Requires: /usr/bin/Xvfb
Requires: /usr/bin/ranlib
Requires: xorg-fonts-75dpi
Requires: xorg-fonts-100dpi
Requires: glibc-i18ndata
Requires: %{name}-core = %{?epoch:epoch:}%{version}-%{release}
Requires: %{name}-desktop = %{?epoch:epoch:}%{version}-%{release}
%description tests
The goal of the Linux Standards Base (LSB) is to develop and promote a set of binary standards that will increase compatibility among Linux systems (and other similar systems), and enable software applications to run on any conforming system.
This package contains requirements that will ensure that LSB tests will be performed correctly.
%prep
%setup -q -n lsb-release-%{lsbrelver}
%patch0 -p1
%patch1 -p1
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -d %{buildroot}/etc/
install -d %{buildroot}/sbin/
install -d %{buildroot}/var/cache/fonts
install -d %{buildroot}/var/games
install -d %{buildroot}/%{_lib}
install -d %{buildroot}%{_prefix}/lib/lsb
%makeoldinstall
cat << _EOF > %{buildroot}%{_sysconfdir}/lsb-release
DISTRIB_ID=%{_distrib_id}
DISTRIB_RELEASE=%{_distrib_release}
DISTRIB_CODENAME=%{_distrib_codename}
DISTRIB_DESCRIPTION="%{_distrib_description}"
LSB_VERSION=core-4.1-%{lsb_archname}:core-4.1-noarch
_EOF
install -d -m 755 %{buildroot}%{_sysconfdir}/lsb-release.d
for lsb_module in core desktop printing; do
touch %{buildroot}%{_sysconfdir}/lsb-release.d/${lsb_module}-%{version}-noarch
touch %{buildroot}%{_sysconfdir}/lsb-release.d/${lsb_module}-%{version}-%{lsb_archname}
done
install -m 644 %{S:1} %{buildroot}%{_prefix}/lib/lsb/init-functions
ln -snf ../../../sbin/chkconfig %{buildroot}%{_prefix}/lib/lsb/install_initd
ln -snf ../../../sbin/chkconfig %{buildroot}%{_prefix}/lib/lsb/remove_initd
for lsbver in %{lsbsover}; do
ln -s %{ldso} %{buildroot}%{lsb_proginterp}
done
# optional in FHS 2.3
cat << EOF > %{buildroot}/etc/networks
# sample networks file for LSB compliance. Database of network
# names and addresses, used by programs such as route.
# format: networkname networkaddress
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-, root, root)
%files core
%defattr(-, root, root)
%{_bindir}/lsb_release
%{lsb_proginterp}
%dir %{_prefix}/lib/lsb
%{_prefix}/lib/lsb/*
%{_sysconfdir}/lsb-release
%dir %{_sysconfdir}/lsb-release.d
%{_sysconfdir}/lsb-release.d/core-*
%attr(0644,root,root) %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/networks
%{_mandir}/man1/lsb_release.*
%files cxx
%defattr(-, root, root)
%files desktop
%defattr(-, root, root)
%{_sysconfdir}/lsb-release.d/desktop-*
%files languages
%defattr(-, root, root)
%files printing
%defattr(-, root, root)
%{_sysconfdir}/lsb-release.d/printing-*
%changelog
* Mon Apr 17 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-6mamba
- fixed deps with perl 5.36.0
* Thu Aug 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-5mamba
- move /lib/lsb to /usr/lib/lsb for usr merge
* Sun Nov 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-4mamba
- removed requirements for upstream obsoleted perl(CGI::Apache) and perl(CGI::Switch)
* Sun Dec 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-3mamba
- require /usr/lib/cups/filter/foomatic-rip instead of /usr/bin/foomatic-rip
- lsb-desktop: provide lsb-graphics-%{lsb_archname}
* Wed Mar 20 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-2mamba
- lsb: don't require -desktop, -languages and -printing for upgrade compatibility
- added build requirements
* Sat Mar 09 2013 Davide Madrisan <davide.madrisan@gmail.com> 4.1-1mamba
- update to 4.1
- update list of mandatory commands and libraries
- remove optional empty files
- package renamed to openmamba-lsb
- remove the subpackage security: is not part of the core specifications
- remove graphics and multimedia modules: they are part of the desktop module
- fix the LSB program interpreter for the x86_64 architecture (lsb_proginterp)
* Tue Apr 24 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2-6mamba
- added support for x86_64
- don't require /etc/rc.d/init.d for now because it causes a serious problem with upgrades
(lsb is removed after initscripts upgrade with all dependendent packages)
* Wed Nov 02 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2-5mamba
- require /etc/rc.d/init.d instead of /etc/init.d as a workaround for rpm not seeing it provided because /etc/init.d is a symlink
* Fri Mar 11 2011 Davide Madrisan <davide.madrisan@gmail.com> 3.2-4mamba
- lsb_init-functions.sh: fixes for dash compatibility
* Wed Jan 12 2011 Davide Madrisan <davide.madrisan@gmail.com> 3.2-3mamba
- rpm path has changed: fix requirement in %{name}-tests
- do not prepend %%config to %{_sysconfdir}/lsb-release
* Fri Dec 11 2009 Davide Madrisan <davide.madrisan@gmail.com> 3.2-2mamba
- add preliminary support for LSB 4.0 specifications (libraries and tools)
- splitted package into several subpackages to reflect the lsb module structure
- patched lsb_release script to fully work with openmamba
* Thu Jan 29 2009 Davide Madrisan <davide.madrisan@gmail.com> 3.2-1mamba
- update to LSB 3.2: updated list of required commands and shared libraries
- provide a complete /etc/lsb-release file
- own %{_sysconfdir}/lsb-release.d
- removed optional folders /var/cache/fonts, and /var/games
* Thu Feb 07 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1-4mamba
- added lsb-graphics subpackage with requirements for graphic environment
- added lsb-tests subpackage with requirements for performing LSB tests
* Mon Apr 02 2007 Davide Madrisan <davide.madrisan@gmail.com> 3.1-3mamba
- fixed typo in lsb init functions
- provides /lib/lsb/init-functions and /usr/bin/lsb_release
* Mon Mar 26 2007 Davide Madrisan <davide.madrisan@qilinux.it> 3.1-2qilnx
- added provides for install_initd and remove_initd
- /bin/login is required by FHS 2.3
- fuser moved to /bin
* Tue Mar 20 2007 Davide Madrisan <davide.madrisan@qilinux.it> 3.1-1qilnx
- package remamed to lsb for LSB 3.1 compliance
- updated to support LSB 3.1 libraries specification
- create and own the /etc/lsb-release.d directory
- updated lsb-release to version 2.0
- moved fuser to /sbin
- added a requirement for /usr/bin/time now needed for lsb compliance
* Mon Apr 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 3.0-2qilnx
- removed the requirement for /sbin/lilo
* Fri Oct 21 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.0-1qilnx
- updated to support LSB 3.0 specifications
* Thu Jul 28 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.0-6qilnx
- some specfile updates to conditionally support LSB 3.0 specifications
* Wed Jul 27 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.0-5qilnx
- provides `lsb-graphics-ia32'
- requires Xorg core fonts
* Thu Jul 07 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.0-4qilnx
- implemented LSB init script functions (/lib/lsb/init-functions)
* Fri Apr 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.0-3qilnx
- added requirement for packages needed to run the LSB test suite
* Wed Apr 06 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.0-2qilnx
- added missing requirements for binaries used by the LBS testing tools
- added requirements for LSB libraries
* Wed Mar 30 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.0-1qilnx
- first build