Group :: Sistema/Base
RPM: lsb
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# TODO: graphics?
# Note: do not use rpmcs for this spec
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
Name: lsb
Summary: Linux Standard Base Tools
Version: 3.0
Release: alt0.1
Packager: Vitaly Lipatov <lav at altlinux.ru>
BuildRequires: altlinux-release
Requires: altlinux-release
Requires: pax cpio grep gzip
Requires: glibc-i18ndata
# do not req X client libs
#Requires: xorg-x11-libs xorg-x11-Mesa
Requires: /usr/bin/ar /usr/bin/at /usr/bin/awk
# Check /usr/bin/basename in suse
Requires: /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 /usr/bin/env /usr/bin/expand /usr/bin/expr /bin/false
# Check: /bin/fuser in suse
Requires: /usr/bin/file /usr/bin/find /usr/bin/fold /sbin/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/install /usr/bin/ipcrm /usr/bin/ipcs
Requires: /usr/bin/join /bin/kill /usr/bin/killall
Requires: /bin/ln /usr/bin/locale /usr/bin/localedef /usr/bin/logname
Requires: /usr/bin/lpr /bin/ls
Requires: /usr/bin/m4 /usr/bin/make /usr/bin/man /usr/bin/md5sum /bin/mkdir
Requires: /usr/bin/mkfifo /bin/mknod /bin/more /bin/mount
Requires: /usr/bin/msgfmt /bin/mv
# Check: /usr/bin/nice in suse
Requires: /usr/bin/newgrp /bin/nice /usr/bin/nl /usr/bin/nohup /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 /bin/sleep /bin/sort /usr/bin/split
Requires: /usr/bin/strip /bin/stty /bin/sh /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
Provides: lsb = 2.0
Provides: lsb-core-noarch = 2.0 lsb-core-noarch = %{version}
# TODO: separate package
#Provides: lsb-graphics-noarch = 2.0 lsb-graphics-noarch = %{version}
ExclusiveArch: i586
# Note: will broken if the package packing on one platform only
%ifarch %ix86
Provides: lsb-core-ia32 = 2.0 lsb-core-ia32 = %{version}
#Provides: lsb-graphics-ia32 = 2.0 lsb-graphics-ia32 = %{version}
#%else
#%ifarch x86_64
#Provides: lsb-core-ia32 = 2.0 lsb-core-ia32 = %{version}
#Provides: lsb-graphics-ia32 = 2.0 lsb-graphics-ia32 = %{version}
#Provides: lsb-core-amd64 = 2.0 lsb-core-amd64 = %{version}
#Provides: lsb-graphics-amd64 = 2.0 lsb-graphics-amd64 = %{version}
%endif
License: GPL
Source: lsb-release-2.0.tar.bz2
Patch: lsb-release-2.0.dif
Patch1: %name-%version-alt.patch
Group: System/Base
URL: http://www.linuxbase.org/
%description
Necessary tools, links, and dependencies for the Linux Standard Base
(LSB).
The Linux Standard Base (http://www.linuxbase.org/) is a standard core
system that third-party applications written for Linux can depend
upon.
The lsb_release command is a simple tool to help identify the Linux
distribution being used and its compliance with the Linux Standard
Base. LSB conformance will not be reported unless the required
metapackages are installed.
While it is intended for use by LSB packages, this command may also be
useful for programmatically distinguishing between a original one and
derived distributions.
%prep
%setup -n lsb-release-2.0
%patch
%patch1
%__subst "s|SuSE-release|altlinux-release|" lsb_release
%build
make
%install
mkdir -p %buildroot{%_man1dir,%_bindir}
%define lsbdir %buildroot%_sysconfdir/lsb-release.d
%define lsbrel %buildroot%_sysconfdir/lsb-release
mkdir -p %lsbdir
install -m644 lsb_release.1.gz %buildroot%_man1dir/
install -m755 lsb_release %buildroot%_bindir/
echo -n "LSB_VERSION=\"core-2.0-noarch:core-%version-noarch:" > %lsbrel
# TODO
#touch %lsbdir/graphics-2.0-noarch %lsbdir/graphics-%version-noarch
%ifarch %ix86
echo -n "core-2.0-ia32:core-%{version}-ia32" >> %lsbrel
# TODO
#touch %lsbdir/graphics-2.0-ia32 %lsbdir/graphics-%version-ia32
# FIXME
#%else
#echo -n "core-2.0-%{_target_cpu}:core-%{version}-%{_target_cpu}" >> %buildroot/etc/lsb-release
#touch %lsbdir/graphics-2.0-%{_target_cpu}
#touch %lsbdir/graphics-%{version}-%{_target_cpu}
%endif
echo "\"" >>%lsbrel
cat <<EOF >>%lsbrel
DISTRIB_ID="ALT LINUX"
DISTRIB_CODENAME="Sisyphus"
EOF
# FIXME: CODENAME for prev. distributions
%files
/etc/lsb-release
/etc/lsb-release.d/
%_bindir/lsb_release
%_man1dir/*
%changelog
…
Todas as alterações você pod ver aqui
# Note: do not use rpmcs for this spec
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
Name: lsb
Summary: Linux Standard Base Tools
Version: 3.0
Release: alt0.1
Packager: Vitaly Lipatov <lav at altlinux.ru>
BuildRequires: altlinux-release
Requires: altlinux-release
Requires: pax cpio grep gzip
Requires: glibc-i18ndata
# do not req X client libs
#Requires: xorg-x11-libs xorg-x11-Mesa
Requires: /usr/bin/ar /usr/bin/at /usr/bin/awk
# Check /usr/bin/basename in suse
Requires: /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 /usr/bin/env /usr/bin/expand /usr/bin/expr /bin/false
# Check: /bin/fuser in suse
Requires: /usr/bin/file /usr/bin/find /usr/bin/fold /sbin/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/install /usr/bin/ipcrm /usr/bin/ipcs
Requires: /usr/bin/join /bin/kill /usr/bin/killall
Requires: /bin/ln /usr/bin/locale /usr/bin/localedef /usr/bin/logname
Requires: /usr/bin/lpr /bin/ls
Requires: /usr/bin/m4 /usr/bin/make /usr/bin/man /usr/bin/md5sum /bin/mkdir
Requires: /usr/bin/mkfifo /bin/mknod /bin/more /bin/mount
Requires: /usr/bin/msgfmt /bin/mv
# Check: /usr/bin/nice in suse
Requires: /usr/bin/newgrp /bin/nice /usr/bin/nl /usr/bin/nohup /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 /bin/sleep /bin/sort /usr/bin/split
Requires: /usr/bin/strip /bin/stty /bin/sh /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
Provides: lsb = 2.0
Provides: lsb-core-noarch = 2.0 lsb-core-noarch = %{version}
# TODO: separate package
#Provides: lsb-graphics-noarch = 2.0 lsb-graphics-noarch = %{version}
ExclusiveArch: i586
# Note: will broken if the package packing on one platform only
%ifarch %ix86
Provides: lsb-core-ia32 = 2.0 lsb-core-ia32 = %{version}
#Provides: lsb-graphics-ia32 = 2.0 lsb-graphics-ia32 = %{version}
#%else
#%ifarch x86_64
#Provides: lsb-core-ia32 = 2.0 lsb-core-ia32 = %{version}
#Provides: lsb-graphics-ia32 = 2.0 lsb-graphics-ia32 = %{version}
#Provides: lsb-core-amd64 = 2.0 lsb-core-amd64 = %{version}
#Provides: lsb-graphics-amd64 = 2.0 lsb-graphics-amd64 = %{version}
%endif
License: GPL
Source: lsb-release-2.0.tar.bz2
Patch: lsb-release-2.0.dif
Patch1: %name-%version-alt.patch
Group: System/Base
URL: http://www.linuxbase.org/
%description
Necessary tools, links, and dependencies for the Linux Standard Base
(LSB).
The Linux Standard Base (http://www.linuxbase.org/) is a standard core
system that third-party applications written for Linux can depend
upon.
The lsb_release command is a simple tool to help identify the Linux
distribution being used and its compliance with the Linux Standard
Base. LSB conformance will not be reported unless the required
metapackages are installed.
While it is intended for use by LSB packages, this command may also be
useful for programmatically distinguishing between a original one and
derived distributions.
%prep
%setup -n lsb-release-2.0
%patch
%patch1
%__subst "s|SuSE-release|altlinux-release|" lsb_release
%build
make
%install
mkdir -p %buildroot{%_man1dir,%_bindir}
%define lsbdir %buildroot%_sysconfdir/lsb-release.d
%define lsbrel %buildroot%_sysconfdir/lsb-release
mkdir -p %lsbdir
install -m644 lsb_release.1.gz %buildroot%_man1dir/
install -m755 lsb_release %buildroot%_bindir/
echo -n "LSB_VERSION=\"core-2.0-noarch:core-%version-noarch:" > %lsbrel
# TODO
#touch %lsbdir/graphics-2.0-noarch %lsbdir/graphics-%version-noarch
%ifarch %ix86
echo -n "core-2.0-ia32:core-%{version}-ia32" >> %lsbrel
# TODO
#touch %lsbdir/graphics-2.0-ia32 %lsbdir/graphics-%version-ia32
# FIXME
#%else
#echo -n "core-2.0-%{_target_cpu}:core-%{version}-%{_target_cpu}" >> %buildroot/etc/lsb-release
#touch %lsbdir/graphics-2.0-%{_target_cpu}
#touch %lsbdir/graphics-%{version}-%{_target_cpu}
%endif
echo "\"" >>%lsbrel
cat <<EOF >>%lsbrel
DISTRIB_ID="ALT LINUX"
DISTRIB_CODENAME="Sisyphus"
EOF
# FIXME: CODENAME for prev. distributions
%files
/etc/lsb-release
/etc/lsb-release.d/
%_bindir/lsb_release
%_man1dir/*
%changelog
…
Todas as alterações você pod ver aqui