Summary: The skeleton package defining packages needed for LSB compliance. Name: lsb Version: 2.0 Release: 3.5mdk License: GPL Group: System/Base URL: http://www.linuxbase.org Source1: lsb-init-functions Source2: tmpdirlsb.sh BuildRoot: %{_tmppath}/%{name}-%{version}-root PreReq: rpm-helper Exclusivearch: %{ix86} ppc x86_64 Requires: pax lsb-release make smtpdaemon ed glibc_lsb Requires: perl-DBI glibc-i18ndata Requires: vim-enhanced diffutils file gettext chkconfig Requires: mtools /etc/sgml csh libstdc++5 Requires: XFree86-Xvfb Requires: XFree86-100dpi-fonts XFree86-75dpi-fonts Requires: locales-de locales-en locales-es locales-fr locales-it %ifarch %{ix86} Provides: lsb-core-ia32 = 2.0 lsb-graphics-ia32 = 2.0 %endif %ifarch x86_64 Provides: lsb-core-amd64 = 2.0 lsb-graphics-amd64 = 2.0 %endif %ifarch ppc Provides: lsb-core-ppc32 = 2.0 lsb-graphics-ppc32 = 2.0 %endif %description The skeleton package defining packages needed for LSB compliance. Also contains some directories LSB tests look for that aren't owned by other Mandrakelinux packages, and scripts to re-create the old /sbin/fasthalt and /sbin/fastboot. Currently, to be able to run the LSB binary test suit successfully, you need to boot with devfs=nomount, as well as insure that the partitions containing /tmp and /home are mounted with the option 'atime', rather than 'noatime'. You should also note that using the fstab option 'acl' for Posix ACLs will generate 1 test failure. This is not enabled by default on Mandrake Linux. The user vsx0 needs to unset TMPDIR before running the tests. Nscd should also be running for the lsb-runtime-test. %install install -d $RPM_BUILD_ROOT/usr/share/nls install -d $RPM_BUILD_ROOT/usr/share/tmac install -d $RPM_BUILD_ROOT/var/cache/fonts install -d $RPM_BUILD_ROOT/var/games install -d $RPM_BUILD_ROOT/sbin install -d $RPM_BUILD_ROOT/etc install -d $RPM_BUILD_ROOT/lib/%{name} install -d $RPM_BUILD_ROOT%{_libdir}/%{name} install -m 644 %SOURCE1 $RPM_BUILD_ROOT/lib/%{name}/init-functions install -d $RPM_BUILD_ROOT/srv install -d $RPM_BUILD_ROOT/media install -d $RPM_BUILD_ROOT%{_sysconfdir}/opt install -d $RPM_BUILD_ROOT%{_sysconfdir}/profile.d install -m 755 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d ln -snf /sbin/chkconfig $RPM_BUILD_ROOT%{_libdir}/lsb/install_initd ln -snf /sbin/chkconfig $RPM_BUILD_ROOT%{_libdir}/lsb/remove_initd cat << EOF > $RPM_BUILD_ROOT/sbin/fasthalt #!/bin/sh #start fasthalt /sbin/halt -f #end fasthalt EOF cat << EOF > $RPM_BUILD_ROOT/sbin/fastboot #!/bin/sh #start fastboot /sbin/reboot -f #end fastboot EOF cat << EOF > $RPM_BUILD_ROOT/etc/hosts.equiv # Sample hosts.equiv file for LSB compliance # see man hosts.equiv for usage. EOF cat << EOF > $RPM_BUILD_ROOT/etc/hosts.lpd # # hosts.lpd This file describes the names of the hosts which are # allowed to use the remote printer services of this # host. This file is used by the LPD subsystem. # Added to Mandrake Linux for LSB compiance. EOF cat << EOF > $RPM_BUILD_ROOT/etc/networks # Sample networks file for LSB compliance. Database of network # names and addresses, used by programs such as route. # format: networkname networkaddress EOF cat << EOF > $RPM_BUILD_ROOT/etc/gateways # sample gateways file for LSB compliance. Database of gateways # used by routed. Sample format shown below. # [ net | host ] name1 gateway name2 metric value [ passive | active | external ] EOF chmod 0755 $RPM_BUILD_ROOT/sbin/fastboot chmod 0755 $RPM_BUILD_ROOT/sbin/fasthalt chmod 0644 $RPM_BUILD_ROOT/etc/hosts.equiv chmod 0644 $RPM_BUILD_ROOT/etc/hosts.lpd chmod 0644 $RPM_BUILD_ROOT/etc/networks chmod 0644 $RPM_BUILD_ROOT/etc/gateways # (sb) concession for lsb-apache to run %pre %_pre_groupadd nobody %post echo "To run the LSB binary test suite, download the latest version from" echo "ftp://ftp.freestandards.org/pub/lsb/test_suites/released/binary/runtime/" echo "and install the rpm. You need to create a password for user vsx0." echo "Log in as user vsx0 and use the command 'run_tests'." echo "" echo "Note: Currently you must boot with devfs=nomount to be able to" echo " successfully run the LSB binary test suite." echo "" echo "Note2: Additionally, if you have partitions containing /tmp or /home" echo " that are mounted with 'noatime', this option should be changed" echo " to 'atime' or you will see additional test failures." echo "" echo "Note3: You should also note that using the fstab option 'acl' for" echo " Posix ACLs will generate 1 test failure. This is not enabled" echo " by default on Mandrakelinux." echo "" echo "Note4: Nscd should be running for lsb-runtime-test" %postun %_postun_groupdel nobody %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %{_datadir}/nls %{_datadir}/tmac /var/cache/fonts /var/games /sbin/fasthalt /sbin/fastboot %dir %{_sysconfdir}/opt %{_sysconfdir}/profile.d/tmpdirlsb.sh %dir /srv %dir /media %dir /lib/%{name} /lib/%{name}/init-functions %dir %{_libdir}/%{name} %{_libdir}/%{name}/* %config(noreplace) %{_sysconfdir}/hosts.equiv %config(noreplace) %{_sysconfdir}/hosts.lpd %config(noreplace) %{_sysconfdir}/networks %config(noreplace) %{_sysconfdir}/gateways %changelog * Mon Sep 27 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-3.5mdk - drop nscd, lpddaemon, expect requires * Sat Sep 4 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-3.4mdk - drop XFree86-devel requires * Wed Aug 25 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-3.3mdk - requires nscd * Fri Aug 20 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-3.2mdk - add needed locales requires for LSB C++ tests * Thu Jul 29 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-3.1mdk - rebuild for CS3.0 * Mon Jul 26 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-3mdk - change provides yet again * Fri Jul 16 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-2mdk - change provides to agree with what app-batt expects * Mon Jun 21 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-1mdk - LSB2.0 - new requires, provides - drop groupdel caveat - fixed in test-suite * Tue Mar 9 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-10mdk - fix issue with init-functions (Bugzilla #9718) * Tue Mar 9 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-9mdk - add %{_sysconfdir}/opt, change some dirs to macros - insure TMPDIR is unset for vsx0 * Mon Feb 2 2004 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-8mdk - more test suite warnings, new FHS-2.3 directories * Mon Jul 28 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-7mdk - remove rwho requires * Fri May 23 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-6mdk - requires gettext, add /lib/%{name}/init-functions - install_initd, remove_initd, use groupadd/del macros * Tue Feb 18 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-5mdk - keep glibc_lsb, symlinking done there * Wed Feb 12 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-4mdk - conflicts glibc_lsb, use symlinks to system ld-linux.so.2 - arch specific again now * Fri Jan 17 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-3mdk - remove getty_ps requirement - removed from distribution * Thu Jan 10 2003 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-2mdk - requires file * Mon Dec 9 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.3-1mdk - Move to LSB v1.3, Provides lsb-1.3, Requires csh * Sat Nov 16 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-11mdk - Requires s/diff/diffutils/ * Sat Nov 16 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-10mdk - update Requires in preparation for upcoming LI18NUX/LSB v1.3 * Tue Sep 10 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-9mdk - warning on Posix ACLs * Sat Aug 17 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-8mdk - requires mtools * Wed Aug 7 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-7mdk - remove conflicts and /etc/ftpusers * Tue Aug 6 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-6mdk - Conflicts: wu-ftpd * Fri Jul 26 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-5mdk - make pkg noarch, provide our own /etc/ftpusers * Wed Jul 24 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-4mdk - add glibc-i18ndata requires * Tue Jul 23 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-3mdk - add perl-DBI requires for tjreport results * Wed Jul 17 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.2-2mdk - lsb version 1.2 * Wed Jul 17 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.1-8mdk - bump version to supercede 8.2 update * Tue Jun 11 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.1-7mdk - add creation/removal of group nobody for lsb-apache tests * Wed May 29 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.1-6mdk - add /etc/gateways, fix typo * Tue May 28 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.1-5mdk - add /sbin/fasthalt, /sbin/fastboot scripts - add dummy /etc/hosts.equiv, /etc/hosts.lpd, /etc/networks files - add additional note about "noatime" in /etc/fstab - change requires from sgml-common, rwho, wu-ftpd to specific files * Tue May 21 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.1-4mdk - create some directories LSB tests look for that aren't owned by any - current Mandrake package, add sgml-common, rwho, wu-ftpd to Requires - inform installer how to retrieve/run LSB tests about devfs=nomount * Tue Feb 12 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.1-3mdk - change summary too - thx Pixel * Mon Feb 11 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.1-2mdk - change description * Sat Feb 9 2002 Stew Benedict <sbenedict@mandrakesoft.com> 1.1-1mdk - first release