Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 99a52109ece5b676e3c28737c665d9a0 > files > 4

lsb-3.0-6mdk.src.rpm

%define compat_version 2.0

Summary: The skeleton package defining packages needed for LSB compliance
Name: lsb
Version: 3.0
Release: 6mdk
License: GPL
Group: System/Base
URL: http://www.linuxbase.org
Source0: lsb-test-scripts-0.4.tar.bz2
Source1: lsb-init-functions
Source2: tmpdirlsb.sh
Source3: tjreport
Source4: waivers.txt
Source5: install_initd
Source6: remove_initd

BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires(pre):	rpm-helper
Exclusivearch: %{ix86} ppc x86_64

Requires: pax lsb-release make sendmail-command ed glibc_lsb
Requires: perl-DBI glibc-i18ndata binutils
Requires: vim-enhanced diffutils file gettext chkconfig
Requires: mtools /etc/sgml csh libstdc++.so.6
Requires: locales-de locales-en locales-es locales-fr locales-it
Requires: xorg-x11-Xvfb xorg-x11-100dpi-fonts xorg-x11-75dpi-fonts
Requires: bc nail

Provides: lsb-core-noarch = %{version} lsb-graphics-noarch = %{version}
Provides: lsb-core-noarch = %{compat_version} lsb-graphics-noarch = %{compat_version}
%ifarch %{ix86}
Provides: lsb-core-ia32 = %{version} lsb-graphics-ia32 = %{version}
Provides: lsb-core-ia32 = %{compat_version} lsb-graphics-ia32 = %{compat_version}
%endif
%ifarch x86_64
Provides: lsb-core-amd64 = %{version} lsb-graphics-amd64 = %{version}
Provides: lsb-core-amd64 = %{compat_version} lsb-graphics-amd64 = %{compat_version}
%endif
%ifarch ppc
Provides: lsb-core-ppc32 = %{version} lsb-graphics-ppc32 = %{version}
Provides: lsb-core-ppc32 = %{compat_version} lsb-graphics-ppc32 = %{compat_version}
%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 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 insure that the partitions containing /tmp and /home are mounted 
with the option 'atime', rather than 'noatime'. You should also use the
block special file /home/tet/test_sets/nonexistb, rather than /dev/sda. 

You should also note that using the fstab option 'acl' for Posix ACLs 
will generate 1 test failure.  This is normally not enabled by default.

%prep
%setup -q

%install
install -d $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -d $RPM_BUILD_ROOT/%{_datadir}/nls
install -d $RPM_BUILD_ROOT/%{_datadir}/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%{_sysconfigdir}
install -d $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT/lib/%{name}
install -d $RPM_BUILD_ROOT%{_prefix}/lib/%{name}
install -m 755 %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
install -m 755 %SOURCE3 $RPM_BUILD_ROOT%{_bindir}
install -m 755 lsb-runtime-test $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 755 lsb-test-vsw4 $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 755 lsb-test-lsbcmdchk $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 755 lsb-test-lsblibchk $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 755 qmtest_libstdcpp $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 644 common-functions $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 644 %SOURCE4 $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 755 %SOURCE5 $RPM_BUILD_ROOT%{_prefix}/lib/%{name}
install -m 755 %SOURCE6 $RPM_BUILD_ROOT%{_prefix}/lib/%{name}

cat << EOF > $RPM_BUILD_ROOT%{_bindir}/lsbinstall
#!/bin/sh
exit 0
EOF

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 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%{_bindir}/lsbinstall
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 "Note1: When prompted for the 'Block special filename' in the test"
echo "       interview, use /home/tet/test_sets/nonexistb, rather than"
echo "       /dev/sda. You may also need to manually 'modprobe loop'."
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."

%postun
%_postun_groupdel nobody

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README.test-scripts
%{_datadir}/nls
%{_datadir}/tmac
/var/cache/fonts
/var/games
/sbin/fasthalt
/sbin/fastboot
%{_bindir}/lsbinstall
%{_bindir}/tjreport
%dir %{_sysconfdir}/opt
%config(noreplace) %{_sysconfdir}/profile.d/tmpdirlsb.sh
%dir /srv
%dir /media
%dir /lib/%{name}
/lib/%{name}/init-functions
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/install_initd
%{_prefix}/lib/%{name}/remove_initd
%config(noreplace) %{_sysconfdir}/hosts.equiv
%config(noreplace) %{_sysconfdir}/hosts.lpd
%config(noreplace) %{_sysconfdir}/networks
%config(noreplace) %{_sysconfdir}/gateways
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

%changelog
* Wed Aug  3 2005 Stew Benedict <sbenedict@mandriva.com> 3.0-6mdk
- rework automated testing for released LSB-3.0 tests
  - lsb-test-pam no longer used - drop
  - rework lsb-runtime-test
  - rework lsb-test-vsw4
  - add lsb-cmdchk
  - update waivers file
  - rework common-functions
  - rework qmtest_libstdcpp
- some changes to make rpmlint happier

* Fri Jul  1 2005 Stew Benedict <sbenedict@mandriva.com> 3.0-5mdk
- requires s/smtpdaemon/sendmail-command/

* Thu Jun  2 2005 Stew Benedict <sbenedict@mandriva.com> 3.0-4mdk
- requires bc, nail(POSIX compatible mailx, per lsb-cmdchk)
- provide placeholder lsbinstall (still being debated in lsb group)
- requires libstd++.so.6 for LSB3

* Tue May 17 2005 Stew Benedict <sbenedict@mandriva.com> 3.0-3mdk
- re-fix provides on x86_64

* Fri Apr 29 2005 Stew Benedict <sbenedict@mandriva.com> 3.0-2mdk
- try to make LSB2/3 compatible

* Fri Apr 22 2005 Stew Benedict <sbenedict@mandriva.com> 3.0-1mdk
- LSB3.0
- fix install_initd, remove_initd, provides (Mats Wichmann)

* Wed Feb 16 2005 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-15mdk
- adapt test scripts to filter out TSDs from added waiver file
- move common code from test scripts to common-functions (new source0)
- minor patch to tjreport "excluding waived" output (LSB Bugzilla 698)

* Fri Feb  4 2005 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-14mdk
- add test scripts and a README for usage

* Thu Jan  6 2005 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-13mdk
- requires binutils for libstdcpp tests

* Tue Dec 28 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-12mdk
- add tjreport to facilitate automated testing

* Fri Oct 22 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.0-11mdk
- rebuild on x86_64

* Sat Oct  9 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-10mdk
- drop libc-extras requires

* Mon Sep 27 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-9mdk
- drop lpddaemon, expect requires

* Mon Sep 20 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-8mdk
- drop nscd requires

* Sat Sep  4 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-7mdk
- remove libxorg-x11-devel requires

* Tue Aug 24 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-6mdk
- add requires for vsw4 tests

* Mon Aug 23 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-5mdk
- locales requires for C++ tests, requires nscd, warning about modprobe loop
i
* Mon Jul 26 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-4mdk
- caveats change with switch from devfs -> udev, drop TMPDIR warning

* 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