-# TODO:
-# - Add docs from http://tidy.sourceforge.net/docs/tidy_docs.tgz
-# - Make all ac/am stuff. (Now only oryginal make is used)
-
Summary: Utility to clean up and pretty print HTML files
Summary(pl): Narzêdzie do porz±dkowania kodu HTML
Name: tidy
-Version: 20030205
-Release: 0.9
+Version: 0.20030702
+Release: 1
License: distributable
Group: Applications/Text
-Source0: http://tidy.sourceforge.net/src/tidy_src.tgz
-# Source0-md5: 3b1fae60e199e548ee0f2d33c9b0a3dd
-URL: http://tidy.sourceforge.net/
+Source0: http://tidy.sf.net/src/tidy_src.tgz
+# Source0-md5: 09e048c9aec1b72bc05bef97d1d28a89
+Source1: http://tidy.sf.net/docs/tidy_docs.tgz
+# Source1-md5: 54ab968e177bc92495fce324c18f8b52
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+URL: http://tidy.sf.net/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q -n %{name}
+%setup -q -b1 -n %{name}
%build
-#%%{__make} CFLAGS="%{rpmcflags}"
+cp -af build/gnuauto/* .
+%{__libtoolize}
+%{__aclocal}
+%{__automake}
+%{__autoconf}
+%configure
%{__make}
-
%install
rm -rf $RPM_BUILD_ROOT
-# %%{__make} install \
-# DESTDIR=$RPM_BUILD_ROOT
-# Above doesn't work so:
-
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/%{name},%{_libdir}}
-install bin/* ${RPM_BUILD_ROOT}%{_bindir}
-install include/* ${RPM_BUILD_ROOT}%{_includedir}/%{name}
-install lib/* ${RPM_BUILD_ROOT}%{_libdir}
-
-#install tidy ${RPM_BUILD_ROOT}%{_bindir}
-#install tidy.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-#%%doc Overview.html release-notes.html grid.gif tidy.gif
-#%%{_mandir}/man1/*
-%%attr(755,root,root) %{_bindir}/*
+%doc htmldoc/*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/*.so.*
%files devel
%defattr(644,root,root,755)
-%{_includedir}/%{name}/*.h
+%{_includedir}/*.h
%{_libdir}/*.a
+%{_libdir}/*.la
+%attr(755,root,root) %{_libdir}/*.so