Copyright: distributable
Source: rh-glossary-en-%{version}.tbz
Release: 1
Name: rh-glossary-en
Group: Documentation
Version: 1.0
Summary: The Red Hat Glossary in HTML format
BuildArchitectures: noarch
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
Requires: htmlview
%description
The Red Hat Glossary provides definitions for common computer terms as
well as some Linux-specific terms. While reading any of the Red Hat
manuals, refer to this glossary when necessary.
It is also available from the Red Hat Docs webpage at
http://www.redhat.com/docs/.
%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/usr/share/applications/
cat > $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop <<'EOF'
[Desktop Entry]
Name=Glossary
Comment=Reference the Red Hat Glossary
Exec=htmlview file:%{_defaultdocdir}/%{name}-%{version}/index.html
Icon=/%{_defaultdocdir}/%{name}-%{version}/docs.png
Categories=Documentation;X-Red-Hat-Base;
Type=Application
Encoding=UTF-8
Terminal=false
EOF
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%{_datadir}/applications/%{name}.desktop
/%{_defaultdocdir}/%{name}-%{version}
%changelog
* Thu Feb 20 2003 Tammy Fox <
[email protected]>
- initial build