File tidy.spec of Package tidy
#
# spec file for package tidy (Version 1.0)
#
# Copyright (c) 2007 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
Name: tidy
BuildRequires: doxygen libtool libxslt
Version: 1.0
Release: 33
%define docrelease 22.051021
Summary: Utility to clean up and pretty-print HTML/XHTML/XML
Group: Productivity/Publishing/HTML/Tools
License: Other uncritical OpenSource License
Autoreqprov: on
URL: http://tidy.sourceforge.net/
Source0: http://tidy.sourceforge.net/src/tidy_src.tgz
Source1: http://tidy.sourceforge.net/docs/tidy_docs.tgz
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>
%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:
--------
Dave Raggett <dsr@w3.org>
%package -n libtidy-devel
Summary: Include Files and Libraries for Development.
Group: Development/Libraries/C and C++
Requires: libtidy = %{version}-%{release}
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:
--------
Dave Raggett <dsr@w3.org>
%prep
%setup -q -n %{name} -b 1
mv htmldoc/doxygen.cfg Doxyfile
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
/bin/sh build/gnuauto/setup.sh
%configure --disable-dependency-tracking \
--includedir=%{_includedir}/%{name}
make %{?_smp_mflags} all
make -C build/gmake/ doc
doxygen
%install
rm -rf $RPM_BUILD_ROOT _api
make install DESTDIR=$RPM_BUILD_ROOT
# Manpage
install -Dpm 644 htmldoc/tidy.1 $RPM_BUILD_ROOT%{_mandir}/man1/tidy.1
# Quick Reference
install -Dpm 644 htmldoc/quickref.html $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/quickref.html
# Move API directory out of the way
mv htmldoc/api _api
%clean
if ! test -f /.buildenv; then
rm -rf $RPM_BUILD_ROOT;
fi
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc htmldoc/*
%{_bindir}/tidy
%{_bindir}/tab2space
%{_mandir}/man1/tidy.1*
%files -n libtidy
%defattr(-, root, root)
%doc htmldoc/license.html
%{_libdir}/libtidy*.so.*
%files -n libtidy-devel
%defattr(-, root, root)
%doc _api/*
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/libtidy.so
%{_libdir}/libtidy.a
%exclude %{_libdir}/libtidy.la
%changelog
* Thu Jun 21 2007 - adrian@suse.de
- fix changelog entry order
* Mon Nov 13 2006 - ro@suse.de
- added directory to filelist
* Mon Nov 13 2006 - poeml@suse.de
- copying package from buildservice package to autobuild
(adding .changes file)
* Tue Oct 24 2006 - sierkb@gmx.de
- Updated tidy from CVS snapshot 061023.
* Fri Oct 06 2006 - sierkb@gmx.de
- Updated tidy from CVS snapshot 061006.
* Tue Sep 19 2006 - sierkb@gmx.de
- Updated tidy from CVS snapshot 060919.
* Thu Jun 15 2006 - sierkb@gmx.de
- Rebuild for SUSE Linux 10.1
* Wed Feb 22 2006 - sierkb@gmx.de
- Updated tidy from CVS snapshot 060222.
- Spec file clean-ups:
- Removed libmxl2 from BuildRequires.
- Removed authors due to anti-spam strategy.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 29 2005 - sierkb@gmx.de
- Generating also a debug information sub-package.
* Wed Nov 23 2005 - sierkb@gmx.de
- Rebuild for SUSE Linux 10.0 OSS (GCC 4.0.2)
* Tue Nov 01 2005 - sierkb@gmx.de
- Updated tidy to 051027.
- Updated docs to 051021.
* Thu Oct 27 2005 - sierkb@gmx.de
- New destination for tidy's header files: /usr/include/tidy rather than /usr/include.
- Spec file clean-up.
* Mon Oct 17 2005 - sierkb@gmx.de
- Updated tidy to 051014.
* Wed Sep 28 2005 - sierkb@gmx.de
- Removed extra patch for fixing casting issue,
because the issue now is fixed.
* Thu Sep 22 2005 - sierkb@gmx.de
- To reflect the fact that the Quick Reference and the Manpage can be autogenerated
through the Tidy Makefile, all instructions to reproduce this manually
now are removed from the Spec file and are replaced by the much shorter equivalent
'make doc'.
* Tue Sep 20 2005 - sierkb@gmx.de
- Updated tidy to 050913.
- Updated docs to 050706.
* Sat Jul 23 2005 - sierkb@gmx.de
- Updated tidy to 050723.
* Thu Jun 23 2005 - sierkb@gmx.de
- Updated tidy to 050623.
- Fixed casting issue, by Marcus Meissner.
- Adjusted authors list to tidy's project member list on Sourceforge.net.
* Tue Jun 21 2005 - sierkb@gmx.de
- Corrected prep options.
* Fri Jun 17 2005 - sierkb@gmx.de
- Updated tidy to 050616.
- Updated docs to 050616.
- Corrected version number to 1.0.
* Tue Jun 07 2005 - sierkb@gmx.de
- Added license to libtidy package.
- Improved Spec file according to the SUSE Package conventions.
* Fri Jun 03 2005 - sierkb@gmx.de
- Cleaned up spec file;
fixed some email addresses;
corrected version number.
- Build with RPM_OPT_FLAGS.
* 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
* Sat May 28 2005 - sierkb@gmx.de
- Updated docs to 050503.
- Create and install Quickref and man page (manually because the gnuauto
Makefile doesn't do it yet).
* 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 26 2005 - sierkb@gmx.de
- Updated tidy to 050518 and docs to 050311.
- Initial build for SuSE Linux.
* 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".