Copyright: distributable
Source: rhl-cg-en-%{version}.tbz
Release: 1
Name: rhl-cg-en
Group: Documentation
Version: 7.3
Summary: The Red Hat Linux %{version} Customization Guide in HTML format.
BuildArchitectures: noarch
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot

%description
The %{name} package contains the Red Hat Linux %{version}
Customization Guide in HTML format.  An online copy of the Red Hat
Linux %{version} Customization Guide is available from the Red Hat
Docs web page at http://www.redhat.com/docs/.

Install the %{name} package if you would like to use
an HTML version of the Customization Guide from your own machine.

%prep
%define _builddir %(mkdir -p %{buildroot}%{_defaultdocdir} ; echo %{buildroot}%{_defaultdocdir})
%setup -q -c
for i in *
do
if [ -d $i ]; then
  cd $i
  mv -f * ../
  cd ..
  rmdir $i
fi
done

%build

%install

mkdir -p $RPM_BUILD_ROOT/etc/X11/applnk/Documentation/"Official Red Hat Linux"
cat > $RPM_BUILD_ROOT/etc/X11/applnk/Documentation/"Official Red Hat Linux"/%{name}.desktop <<'EOF'
[Desktop Entry]
Name=Red Hat Linux Customization Guide (en)
Comment=The manual for customizing Red Hat Linux (in English)
Exec=/usr/bin/netscape file:%{_defaultdocdir}/%{name}-%{version}/index.html
Icon=/usr/share/pixmaps/redhat/shadowman-round-mini.xpm
Terminal=0
Type=Application
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%dir /etc/X11/applnk/Documentation
%dir "/etc/X11/applnk/Documentation/Official Red Hat Linux"
"/etc/X11/applnk/Documentation/Official Red Hat Linux/%{name}.desktop"
/%{_defaultdocdir}/%{name}-%{version}

%changelog
* Mon Apr 08 2002 Tammy Fox <[email protected]>
- Updated version

* Wed Sep 5 2001 Tammy Fox <[email protected]>
- Added version to name of source file

* Thu Aug 30 2001 Edward C. Bailey <[email protected]>
- Respin for 7.2

* Mon Aug 27 2001 Edward C. Bailey <[email protected]>
- Freshen for next beta

* Thu Aug  9 2001 Edward C. Bailey <[email protected]>
- Respun for 7.1.94

* Thu Jul 26 2001 Edward C. Bailey <[email protected]>
- Migrated over to internally-generated .desktop file

* Wed Mar 14 2001 Edward C. Bailey <[email protected]>
- Final build

* Fri Mar 09 2001 Edward C. Bailey <[email protected]>
- Build w/updated content

* Thu Mar 01 2001 Edward C. Bailey <[email protected]>
- Updated for another beta

* Thu Feb 15 2001 Edward C. Bailey <[email protected]>
- Updated for second public beta

* Tue Jan 16 2001 Tammy Fox <[email protected]>
- created spec file, built for beta cycle after beta2