-# $Revision: 1.2 $ $Date: 1999-12-09 19:40:09 $
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
-Source: http://www.w3.org/People/Raggett/%{name}%{version}.tgz
-URL: http://www.w3.org/People/Raggett/tidy/
-Patch: %{name}%{version}-html.patch.gz
-Buildroot: /tmp/%{name}-%{version}-root
+Version: 0.20030901
+Release: 2
+Epoch: 1
+License: distributable
+Group: Applications/Text
+Source0: http://tidy.sf.net/src/tidy_src.tgz
+# Source0-md5: c9356a292f48a0d1db9d726e95115b8a
+Source1: http://tidy.sf.net/docs/tidy_docs.tgz
+# Source1-md5: 54ab968e177bc92495fce324c18f8b52
+URL: http://tidy.sf.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Tidy is utility for cleaning and pretty printing HTML files. It can help
-in keeping your WWW sources in unified format (case of tags) and proper
-encoding of different character sets.
+Tidy is utility for cleaning and pretty printing HTML files. It can
+help in keeping your WWW sources in unified format (case of tags) and
+proper encoding of different character sets.
%description -l pl
-Tidy jest narzêdziem s³u¿±cym do czytelnego formatowania i wy¶wietlania
-¼ród³owego kodu HTML. U³atwia utrzymanie porz±dku w ¼ród³ach stron WWW,
-utrzymanie jednolitej konwecji (wielko¶æ liter w tagach) oraz poprawnego
-kodowania ró¿nych standardów znaków.
+Tidy jest narzêdziem s³u¿±cym do czytelnego formatowania i
+wy¶wietlania ¼ród³owego kodu HTML. U³atwia utrzymanie porz±dku w
+¼ród³ach stron WWW, utrzymanie jednolitej konwecji (wielko¶æ liter w
+tagach) oraz poprawnego kodowania ró¿nych standardów znaków.
+
+%package devel
+Summary: Tidy header files
+Summary(pl): Pliki nag³ówkowe biblioteki dla programu Tidy
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}
+
+%description devel
+Tidy header files.
+
+%description devel -l pl
+Pliki nag³ówkowe biblioteki dla programu Tidy.
+
+%package static
+Summary: Static Tidy library
+Summary(pl): Statyczna biblioteka Tidy
+Group: Development/Libraries
+Requires: %{name}-devel = %{epoch}:%{version}
+
+%description static
+Static Tidy library.
+
+%description static -l pl
+Statyczna biblioteka Tidy.
%prep
-%setup -q -n %{name}%{version}
-%patch
+%setup -q -n %{name} -b1
%build
-make CFLAGS="${RPM_OPT_FLAGS}"
-cp man_page.txt tidy.1
+cp -af build/gnuauto/* .
+%{__libtoolize}
+%{__aclocal}
+%{__automake}
+%{__autoconf}
+%configure
+%{__make}
%install
-install -d ${RPM_BUILD_ROOT}%{_bindir}
-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
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc Overview.html.gz release-notes.html.gz grid.gif tidy.gif
-%{_mandir}/man1/*
-%attr(755,root,root) %{_bindir}/tidy
+%doc htmldoc/*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_includedir}/*.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a