File lsb.spec of Package lsb
#
# spec file for package lsb (Version 3.2)
#
# Copyright (c) 2008 SUSE LINUX Products 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/
#
# norootforbuild
Name: lsb
BuildRequires: glibc-devel-32bit libstdc++
Summary: Linux Standard Base Core
Version: 3.2
Release: 1
Obsoletes: lsb-desktop
Requires: pax cpio grep gzip
Requires: glibc-i18ndata
Requires: /usr/bin/ar /usr/bin/at /usr/bin/awk
Requires: /usr/bin/basename /usr/bin/batch /usr/bin/bc
Requires: /bin/cat /usr/bin/chfn /bin/chgrp /bin/chmod /bin/chown
Requires: /usr/bin/chsh /usr/bin/cksum /usr/bin/cmp /usr/bin/col
Requires: /usr/bin/comm /bin/cp /usr/bin/crontab /usr/bin/csplit
Requires: /usr/bin/cut
Requires: /bin/dd /bin/df /usr/bin/diff /usr/bin/dirname /usr/bin/du
Requires: /bin/echo /bin/ed /usr/bin/env /usr/bin/expand /usr/bin/expr
Requires: /bin/false /usr/bin/file /usr/bin/find /usr/bin/fold /bin/fuser
Requires: /usr/bin/gencat /usr/bin/getconf /usr/bin/gettext
Requires: /usr/sbin/groupadd /usr/sbin/groupdel
Requires: /usr/sbin/groupmod /usr/bin/groups
Requires: /usr/bin/head /bin/hostname
Requires: /usr/bin/iconv /usr/bin/id /usr/bin/install
Requires: /usr/bin/ipcrm /usr/bin/ipcs
Requires: /usr/bin/join /bin/kill /usr/bin/killall
Requires: /bin/ln /usr/bin/locale /usr/bin/localedef /bin/logger
Requires: /usr/bin/logname /usr/bin/lp /usr/bin/lpr /bin/ls
Requires: /usr/bin/m4 /usr/bin/make /usr/bin/mailx /usr/bin/man
Requires: /usr/bin/md5sum /bin/mkdir /usr/bin/mkfifo /bin/mknod
Requires: /bin/more /bin/mount /usr/bin/msgfmt /bin/mv
Requires: /usr/bin/newgrp /usr/bin/nice /usr/bin/nl /usr/bin/nohup
Requires: /usr/bin/od
Requires: /usr/bin/passwd /usr/bin/paste /usr/bin/patch /usr/bin/pathchk
Requires: /sbin/pidof /usr/bin/pr /usr/bin/printf /bin/ps /bin/pwd
Requires: /usr/bin/renice /bin/rm /bin/rmdir /usr/bin/rsync
Requires: /bin/sed /usr/sbin/sendmail /bin/sh /sbin/shutdown /bin/sleep
Requires: /bin/sort /usr/bin/split
Requires: /usr/bin/strip /bin/stty /bin/su /usr/bin/sum /bin/sync
Requires: /usr/bin/tail /bin/tar /usr/bin/tee /usr/bin/test /usr/bin/time
Requires: /bin/touch /usr/bin/tr /bin/true /usr/bin/tsort /usr/bin/tty
Requires: /bin/umount /bin/uname /usr/bin/unexpand /usr/bin/uniq
Requires: /usr/sbin/useradd /usr/sbin/userdel /usr/sbin/usermod
Requires: /usr/bin/wc /usr/bin/xargs
Obsoletes: lsb-runtime
Provides: lsb = 2.0
Provides: lsb-core-noarch = 2.0 lsb-core-noarch = 3.2
%ifarch %ix86
Provides: lsb-core-ia32 = 2.0 lsb-core-ia32 = 3.2
%else
%ifarch x86_64
Provides: lsb-core-ia32 = 2.0 lsb-core-ia32 = 3.2
Provides: lsb-core-amd64 = 2.0 lsb-core-amd64 = 3.2
%else
%ifarch s390x
Provides: lsb-core-s390 = 2.0 lsb-core-s390 = 3.2
%endif
%ifarch ppc64 ppc
Provides: lsb-core-ppc32 = 2.0 lsb-core-ppc32 = 3.2
%ifarch ppc64
Provides: lsb-core-ppc64 = 2.0 lsb-core-ppc64 = 3.2
%endif
%else
Provides: lsb-core-%{_target_cpu} = 2.0
Provides: lsb-core-%{_target_cpu} = 3.2
%endif
%endif
%endif
Provides: lsb-graphics-noarch = 2.0 lsb-graphics-noarch = 3.2
%ifarch %ix86
Provides: lsb-graphics-ia32 = 2.0 lsb-graphics-ia32 = 3.2
%else
%ifarch x86_64
Provides: lsb-graphics-ia32 = 2.0 lsb-graphics-ia32 = 3.2
Provides: lsb-graphics-amd64 = 2.0 lsb-graphics-amd64 = 3.2
%else
%ifarch s390x
Provides: lsb-graphics-s390 = 2.0 lsb-graphics-s390 = 3.2
%endif
%ifarch ppc64 ppc
Provides: lsb-graphics-ppc32 = 2.0 lsb-graphics-ppc32 = 3.2
%ifarch ppc64
Provides: lsb-graphics-ppc64 = 2.0
Provides: lsb-graphics-ppc64 = 3.2
%endif
%else
Provides: lsb-graphics-%{_target_cpu} = 2.0
Provides: lsb-graphics-%{_target_cpu} = 3.2
%endif
%endif
%endif
Requires: xorg-x11-libs Mesa
Requires: fontconfig
Requires: libpng >= 1.2
Requires: glib2 >= 2.8
Requires: atk >= 1.10
Requires: pango >= 1.10
Requires: gtk2 >= 2.8
Requires: qt3 >= 3.3.5
Recommends: libqt4 >= 4.4.0
Requires: libxml2 >= 2.6.20
Requires: perl-base >= 5.8.8
Requires: python >= 2.4.2
Prefix: /usr
License: GPL v2 or later
Source: lsb-release-2.0.tar.bz2
Patch: lsb-release-2.0.dif
Group: System/Fhs
Url: http://www.linuxbase.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Necessary files and dependencies for the Linux Standard Base (LSB)
Core.
%prep
%setup -n lsb-release-2.0
%patch
%build
rm -rf $RPM_BUILD_ROOT
make
%install
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_lib}
mkdir -p $RPM_BUILD_ROOT/dev
mkdir -p $RPM_BUILD_ROOT/etc/lsb-release.d
install -m644 lsb_release.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/ # install place
install -m755 lsb_release $RPM_BUILD_ROOT%{_bindir}
echo -n "LSB_VERSION=\"core-2.0-noarch:core-3.2-noarch:" > $RPM_BUILD_ROOT/etc/lsb-release
%ifarch %ix86
echo -n "core-2.0-ia32:core-3.2-ia32" >> $RPM_BUILD_ROOT/etc/lsb-release
%else
echo -n "core-2.0-%{_target_cpu}:core-3.2-%{_target_cpu}" >> $RPM_BUILD_ROOT/etc/lsb-release
%endif
echo "\"" >> $RPM_BUILD_ROOT/etc/lsb-release
%ifarch x86_64
mkdir -p $RPM_BUILD_ROOT/lib
ln -sf /lib64/ld-linux-x86-64.so.2 $RPM_BUILD_ROOT/lib64/ld-lsb-x86-64.so.2
ln -sf /lib64/ld-linux-x86-64.so.2 $RPM_BUILD_ROOT/lib64/ld-lsb-x86-64.so.3
%endif
%ifarch %ix86 x86_64
ln -sf /lib/ld-linux.so.2 $RPM_BUILD_ROOT/lib/ld-lsb.so.2
ln -sf /lib/ld-linux.so.2 $RPM_BUILD_ROOT/lib/ld-lsb.so.3
%endif
%ifarch ppc64
mkdir -p $RPM_BUILD_ROOT/lib
ln -s /lib64/ld64.so.1 $RPM_BUILD_ROOT/lib64/ld-lsb-ppc64.so.2
ln -s /lib64/ld64.so.1 $RPM_BUILD_ROOT/lib64/ld-lsb-ppc64.so.3
%endif
%ifarch ppc ppc64
ln -s /lib/ld.so.1 $RPM_BUILD_ROOT/lib/ld-lsb-ppc32.so.2
ln -s /lib/ld.so.1 $RPM_BUILD_ROOT/lib/ld-lsb-ppc32.so.3
%endif
%ifarch ia64
ln -s /lib/ld-linux-ia64.so.2 $RPM_BUILD_ROOT/lib/ld-lsb-ia64.so.2
ln -s /lib/ld-linux-ia64.so.2 $RPM_BUILD_ROOT/lib/ld-lsb-ia64.so.3
%endif
%ifarch s390x
mkdir -p $RPM_BUILD_ROOT/lib
ln -sf /lib64/ld64.so.1 $RPM_BUILD_ROOT/lib64/ld-lsb-s390x.so.2
ln -sf /lib64/ld64.so.1 $RPM_BUILD_ROOT/lib64/ld-lsb-s390x.so.3
%endif
%ifarch s390 s390x
ln -sf /lib/ld.so.1 $RPM_BUILD_ROOT/lib/ld-lsb-s390.so.2
ln -sf /lib/ld.so.1 $RPM_BUILD_ROOT/lib/ld-lsb-s390.so.3
%endif
%ifarch sparc
ln -sf /lib/ld-linux.so.2 $RPM_BUILD_ROOT/lib/ld-lsb-sparc.so.2
ln -sf /lib/ld-linux.so.2 $RPM_BUILD_ROOT/lib/ld-lsb-sparc.so.3
%endif
# These platforms do not have a LSB, just add something to make it compile
%ifarch axp mips
ln -sf /lib/ld-linux.so.2 $RPM_BUILD_ROOT/lib/ld-lsb-%{_target_cpu}.so.2
ln -sf /lib/ld-linux.so.2 $RPM_BUILD_ROOT/lib/ld-lsb-%{_target_cpu}.so.3
%endif
mkdir -p $RPM_BUILD_ROOT/etc/lsb-release.d
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-2.0-noarch
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-%{version}-noarch
touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-%{version}-noarch
%ifarch %ix86
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-2.0-ia32
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-%{version}-ia32
touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-%{version}-ia32
%else
%ifarch x86_64
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-2.0-amd64
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-%{version}-amd64
touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-%{version}-amd64
%else
%ifarch s390x
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-2.0-s390
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-%{version}-s390
touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-%{version}-s390
%endif
%ifarch ppc64 ppc
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-2.0-ppc32
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-%{version}-ppc32
touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-%{version}-ppc32
%ifarch ppc64
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-2.0-ppc64
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-%{version}-ppc64
touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-%{version}-ppc64
%endif
%else
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-2.0-%{_target_cpu}
touch $RPM_BUILD_ROOT/etc/lsb-release.d/graphics-%{version}-%{_target_cpu}
touch $RPM_BUILD_ROOT/etc/lsb-release.d/desktop-%{version}-%{_target_cpu}
%endif
%endif
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /etc/lsb-release.d
/etc/lsb-release.d/*
/etc/lsb-release
%{_bindir}/lsb_release
%{_mandir}/man1/lsb_release.1.gz
%ifarch %ix86 x86_64
/lib/ld-lsb.so.2
/lib/ld-lsb.so.3
%endif
%ifarch ppc ppc64
/lib/ld-lsb-ppc32.so.2
/lib/ld-lsb-ppc32.so.3
%endif
%ifarch x86_64
/lib64/ld-lsb-x86-64.so.2
/lib64/ld-lsb-x86-64.so.3
%endif
%ifarch s390 s390x
/lib/ld-lsb-s390.so.2
/lib/ld-lsb-s390.so.3
%endif
%ifarch ppc64 s390x ia64
/%{_lib}/ld-lsb-%{_target_cpu}.so.2
/%{_lib}/ld-lsb-%{_target_cpu}.so.3
%endif
%changelog
* Sun Jul 29 2007 jdluhos@suse.cz
- Adapted to LSB 3.2
* Sat Jun 10 2006 kukuk@suse.de
- Merge back wth lsb-desktop and set version of provides to 3.0
* Thu May 18 2006 kukuk@suse.de
- Move lsb-graphics part to lsb-desktop
* Tue May 16 2006 kukuk@suse.de
- Bump version number for LSB 3.1
* Wed Apr 26 2006 ro@suse.de
- requires xorg-x11-Mesa -> Mesa
* Fri Feb 10 2006 kukuk@suse.de
- Remove obsolete insserv call
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 kukuk@suse.de
- Fix typo in Requires list
* Wed Nov 02 2005 kukuk@suse.de
- Add ed and mailx to requires [#131283]
* Fri Sep 09 2005 aj@suse.de
- s/target_arch/target_cpu/g; since the first is not defined
[#115915].
* Thu Jun 09 2005 kukuk@suse.de
- Fix specfile to work on SLES9
* Thu Apr 14 2005 kukuk@suse.de
- Adjust to current LSB 3.0 draft
* Mon Feb 28 2005 kukuk@suse.de
- Remove makedev requirement and compatibility link
* Fri Jan 07 2005 kukuk@suse.de
- Fix provides on PPC32
* Wed Dec 15 2004 kukuk@suse.de
- Fix bi-arch provides on x86-64 and PPC64
* Mon Sep 13 2004 kukuk@suse.de
- Use "amd64" instead of "x86_64"
* Mon Sep 06 2004 kukuk@suse.de
- Fix macro names
* Tue Aug 31 2004 kukuk@suse.de
- Replace XFree86 -> xorg-x11
* Tue Jul 20 2004 kukuk@suse.de
- Implement LSB 2.0 requirements
* Mon May 24 2004 kukuk@suse.de
- Fix including of ld-lsb links on ppc64, s390x and x86-64
* Wed May 05 2004 kukuk@suse.de
- Rewrote handling of /etc/lsb-release and /etc/SuSE-release
* Thu Mar 25 2004 kukuk@suse.de
- Add X11 Libraries to Requires
* Wed Mar 24 2004 kukuk@suse.de
- Add init script to set NGROUPS_MAX LSB 1.3 conform
* Sat Mar 13 2004 kukuk@suse.de
- Fix requirements
* Wed Feb 25 2004 hmacht@suse.de
- building as nonroot-user
* Mon Sep 01 2003 kukuk@suse.de
- Use head -n 1 instead of head -1 [Bug #29624]
* Mon Jun 16 2003 kukuk@suse.de
- Make last change working
* Thu May 22 2003 meissner@suse.de
- on ppc64, include both ppc and ppc64 symlinks.
* Wed May 21 2003 kukuk@suse.de
- fix version number in release file
* Wed May 07 2003 kukuk@suse.de
- Change xdevel -> XFree86-devel
* Wed Apr 23 2003 aj@suse.de
- Add more missing ld-lsb-* links, create correct libdir.
* Thu Mar 20 2003 kukuk@suse.de
- Add missing ld-lsb-* links
* Tue Feb 25 2003 kukuk@suse.de
- Obsoletes lsb-runtime
* Wed Jan 15 2003 meissner@suse.de
- Changed ppc and ia6r4 ld.so symlinks to wanted look.
* Sat Jan 11 2003 kukuk@suse.de
- Add gettext to Requires for LSB 1.3
* Fri Jan 10 2003 kukuk@suse.de
- Don't require lsb-runtime, instead include symlink for ld-lsb
for ix86
- Remove mh from requires
* Wed Oct 30 2002 meissner@suse.de
- Added support for ppc32. Specify symlink for ld-lsb.so.1 for ppc.
* Sat Jul 27 2002 kukuk@suse.de
- Check for UnitedLinux if no SuSE-release file found
* Fri Jul 05 2002 kukuk@suse.de
- Create LSB entry in etc/lsb-release
- Bump version number to 1.2
* Tue Mar 05 2002 kukuk@suse.de
- Remove ld-lsb.so.1 link
- Add requires for lsb-runtime
* Sun Feb 24 2002 kukuk@suse.de
- Add xdevel to requires
* Wed Feb 06 2002 kukuk@suse.de
- Add MAKEDEV compatibility link
* Sat Jan 19 2002 kukuk@suse.de
- Add glibc-i18ndata to requires to pass testsuite
- Increase version number to 1.1
* Fri Jan 04 2002 kukuk@suse.de
- Require all commands needed for LSB
* Fri Dec 14 2001 kukuk@suse.de
- Increase version number to 1.0
- Add pax to requires
* Tue Sep 18 2001 kukuk@suse.de
- Add expect to requires (not fixed in LSB-FHS 2.2)
* Wed Jan 17 2001 kukuk@suse.de
- Remove tclx from requires (should be fixed in FHS 2.2)
* Fri Jan 12 2001 kukuk@suse.de
- Add requires for FHS 2.1
- Update to lsb_release 1.4
* Mon Nov 27 2000 kukuk@suse.de
- Remove /etc/init.d symlink
* Wed Nov 01 2000 kukuk@suse.de
- Update to lsb_release 1.3
* Mon Sep 18 2000 kukuk@suse.de
- Initial version