-# $Revision: 1.8 $ $Date: 2000-06-06 14:44:16 $
Summary: Utility to clean up and pretty print HTML files
Summary(pl): Narzêdzie do porz±dkowania kodu HTML
Name: tidy
-Version: 30apr00
+Version: 0.20030901
Release: 2
-Group: Utilities/Text
-Group(pl): Narzêdzia/Tekst
-License: BSD
-Source0: http://www.w3.org/People/Raggett/%{name}%{version}.tgz
-URL: http://www.w3.org/People/Raggett/tidy/
-Patch0: %{name}%{version}-html.patch
+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
¼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
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install -s tidy ${RPM_BUILD_ROOT}%{_bindir}
-install tidy.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
-gzip -9nf ${RPM_BUILD_ROOT}%{_mandir}/man1/* \
- Overview.html release-notes.html
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
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