-# $Revision: 1.2 $ $Date: 1999-12-09 19:40:09 $
+# $Revision: 1.3 $ $Date: 1999-12-09 19:51:46 $
Summary: Utility to clean up and pretty print HTML files
-Summary(pl): Narzêdzie do porz±dkowania kodu HTML
+Summary(pl): Narzêdzie do porz±dkowania kodu HTML
Name: tidy
Version: 30nov99
Release: 1
Group: Utilities/Text
Group(pl): Narzêdzia/Tekst
-Copyright: BSD
+License: BSD
Source: http://www.w3.org/People/Raggett/%{name}%{version}.tgz
-URL: http://www.w3.org/People/Raggett/tidy/
-Patch: %{name}%{version}-html.patch.gz
+URL: http://www.w3.org/People/Raggett/tidy/
+Patch: %{name}%{version}-html.patch.gz
Buildroot: /tmp/%{name}-%{version}-root
%description
%patch
%build
-make CFLAGS="${RPM_OPT_FLAGS}"
+make CFLAGS="$RPM_OPT_FLAGS"
cp man_page.txt tidy.1
%install
-install -d ${RPM_BUILD_ROOT}%{_bindir}
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
install -s tidy ${RPM_BUILD_ROOT}%{_bindir}
-install -d ${RPM_BUILD_ROOT}%{_mandir}/man1
install tidy.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
-gzip -9nf ${RPM_BUILD_ROOT}%{_mandir}/man1/*
-gzip -9nf Overview.html release-notes.html
+gzip -9nf ${RPM_BUILD_ROOT}%{_mandir}/man1/* \
+ Overview.html release-notes.html
%clean
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
%files
-%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/tidy
%doc Overview.html.gz release-notes.html.gz grid.gif tidy.gif
%{_mandir}/man1/*
%attr(755,root,root) %{_bindir}/tidy