File tidy.spec of Package tidy
#
# spec file for package tidy (Version 050517)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
# usedforbuild aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db diffutils doxygen e2fsprogs file filesystem fillup findutils flex gawk gcc gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc libgcrypt libgpg-error libnscd libpng libstdc++ libtool libxcrypt libxml2 libxslt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel
Name: tidy
BuildRequires: doxygen libxslt
URL: http://tidy.sourceforge.net/
Version: 050517
Release: 16.2
Summary: Utility to clean up and pretty-print HTML/XHTML/XML
License: distributable, Other License(s), see package
Group: Productivity/Publishing/HTML/Tools
Autoreqprov: on
Source0: http://tidy.sourceforge.net/src/tidy_src.tgz
Source1: http://tidy.sourceforge.net/docs/tidy_docs.tgz
Patch: tidy-fix-cast.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
When editing HTML it's easy to make mistakes. Wouldn't it be nice if
there was a simple way to fix these mistakes automatically and tidy up
sloppy editing into nicely layed out markup? Well now there is! Dave
Raggett's HTML TIDY is a free utility for doing just that. It also
works great on the atrociously hard to read markup generated by
specialized HTML editors and conversion tools, and can help you
identify where you need to pay further attention on making your pages
more accessible to people with disabilities.
Tidy is able to fix up a wide range of problems and to bring to your
attention things that you need to work on yourself. Each item found is
listed with the line number and column so that you can see where the
problem lies in your markup. Tidy won't generate a cleaned up version
when there are problems that it can't be sure of how to handle. These
are logged as "errors" rather than "warnings".
Authors:
--------
Tidy was written by Dave Raggett <dsr@w3.org> and is now maintained
and developed by the Tidy team at http://tidy.sourceforge.net/.
The Tidy team are:
Jelks Cabaniss
Arnaud Desitter
Bjoern Hoehrmann <bjoern@hoehrmann.de>
Pradeep Padala <ppadala@users.sourceforge.net>
Dave Raggett <dsr@w3.org>
Charles Reitzel
Terry Teague <terry_teague@users.sourceforge.net>
%debug_package
%package -n libtidy
Summary: A library to clean up and pretty-print HTML/XHTML/XML
Group: Productivity/Publishing/HTML/Tools
Autoreqprov: on
%description -n libtidy
When editing HTML it's easy to make mistakes. Wouldn't it be nice if
there was a simple way to fix these mistakes automatically and tidy up
sloppy editing into nicely layed out markup? Well now there is! Dave
Raggett's HTML TIDY is a free utility for doing just that. It also
works great on the atrociously hard to read markup generated by
specialized HTML editors and conversion tools, and can help you
identify where you need to pay further attention on making your pages
more accessible to people with disabilities.
Tidy is able to fix up a wide range of problems and to bring to your
attention things that you need to work on yourself. Each item found is
listed with the line number and column so that you can see where the
problem lies in your markup. Tidy won't generate a cleaned up version
when there are problems that it can't be sure of how to handle. These
are logged as "errors" rather than "warnings".
There is a standalone binary /usr/bin/tidy built on this library,
contained in the package "tidy".
Authors:
--------
Tidy was written by Dave Raggett <dsr@w3.org> and is now maintained
and developed by the Tidy team at http://tidy.sourceforge.net/.
The Tidy team are:
Jelks Cabaniss
Arnaud Desitter
Bjoern Hoehrmann <bjoern@hoehrmann.de>
Pradeep Padala <ppadala@users.sourceforge.net>
Dave Raggett <dsr@w3.org>
Charles Reitzel
Terry Teague <terry_teague@users.sourceforge.net>
%package -n libtidy-devel
Summary: Include Files and Libraries for Development.
Group: Productivity/Publishing/HTML/Tools
Requires: libtidy = %{version}
Autoreqprov: on
%description -n libtidy-devel
This package contains all necessary include files and libraries needed
to develop applications using functions provided by the tidy library.
Authors:
--------
Tidy was written by Dave Raggett <dsr@w3.org> and is now maintained
and developed by the Tidy team at http://tidy.sourceforge.net/.
The Tidy team are:
Jelks Cabaniss
Arnaud Desitter
Bjoern Hoehrmann <bjoern@hoehrmann.de>
Pradeep Padala <ppadala@users.sourceforge.net>
Dave Raggett <dsr@w3.org>
Charles Reitzel
Terry Teague <terry_teague@users.sourceforge.net>
%prep
%setup -n tidy -b 1
%patch -p 1
rm -rf htmldoc/api
mv htmldoc/doxygen.cfg Doxyfile
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
/bin/sh build/gnuauto/setup.sh
%configure
make
doxygen
%install
rm -rf $RPM_BUILD_ROOT
rm -rf _api
make DESTDIR=$RPM_BUILD_ROOT install
# create and install the man page manually, because the Makefile doesn't have a
# target yet:
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir} \
$RPM_BUILD_ROOT/%{_bindir}/tidy -xml-help \
> htmldoc/tidy-help.xml
# Generate a XML file from the output of `tidy -xml-config`
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir} \
$RPM_BUILD_ROOT/%{_bindir}/tidy -xml-config \
> htmldoc/tidy-config.xml
# Generate and install the `tidy.1` man page from parsing the XML files tidy-help.xml and tidy-config.xml
# and merging them into one file
xsltproc -o htmldoc/tidy.1 htmldoc/tidy1.xsl htmldoc/tidy-help.xml htmldoc/tidy-config.xml
install -Dpm 644 htmldoc/tidy.1 $RPM_BUILD_ROOT/%{_mandir}/man1/tidy.1
# Generate and install the `quickref.html` web page from parsing the XML file tidy-config.xml
xsltproc -o htmldoc/quickref.html htmldoc/quickref-html.xsl htmldoc/tidy-config.xml
install -Dpm 644 htmldoc/quickref.html $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/quickref.html
mv htmldoc/api _api
%clean
if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi
%post -n libtidy -p /sbin/ldconfig
%postun -n libtidy -p /sbin/ldconfig
%files
%defattr(-, root, root)
/usr/bin/tidy
/usr/bin/tab2space
%{_mandir}/man1/tidy.1.gz
%doc htmldoc/*
%files -n libtidy
%defattr(-, root, root)
%doc htmldoc/license.html
/%{_libdir}/libtidy-*.*.so.*
%files -n libtidy-devel
%defattr(-,root,root)
%{_prefix}/include/*.h
%{_libdir}/libtidy.a
%{_libdir}/libtidy.la
%{_libdir}/libtidy.so
%doc _api/*
%changelog -n tidy
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue May 31 2005 - poeml@suse.de
- improve generation and installation of documentation
(thanks to Sierk Bornemann who provided key assistance)
* Mon May 30 2005 - poeml@suse.de
- split libtidy subpackage, and rename tidy-devel to libtidy-devel
- install missing documentation
- run ldconfig in %%post/%%postun where needed
* Thu May 26 2005 - poeml@suse.de
- update to version 050517 + docs to 050502
- use gnuauto buildsystem to get the shared lib
- create and install man page (manually because the gnuauto
Makefile doesn't do it yet)
- package the license
- split -devel subpackage
* Thu May 12 2005 - ke@suse.de
- Update to version 050502.
- Add htmldoc.tgz (from tidy CVS).
- Remove obsolete files, which are now part of htmldoc.tgz.
- Install tab2space.
- Fix casting issue, by Marcus Meissner.
* Tue May 10 2005 - meissner@suse.de
- build with RPM_OPT_FLAGS.
* Thu Feb 26 2004 - hmacht@suse.de
- added option # norootforbuild in specfile
* Mon Jun 16 2003 - coolo@suse.de
- use BuildRoot
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Mon Apr 29 2002 - drahn@suse.de
- update to: tidy version 020428
* Mon Dec 04 2000 - mge@suse.de
- update to: tidy4aug00
* Tue Jun 27 2000 - mge@suse.de
- update to: tidy30apr00
* Thu Jan 27 2000 - ke@suse.de
- update to version 13jan00.
- translate the version string to make the update process happy.
- define version _after_ the Version header line.
- use the %%{version} and %%{name} macro.
- use %%{_mandir}.
- add a nice group tag.
- add %%defattr to the %%files section.
- Overview.html: use an sed trick to resolve remote references: insert the
<base> element.
* Mon Oct 25 1999 - mge@suse.de
- initial SuSE-RPM; Changed Overview.html to work "offline".