tidy/tidy.spec

127 lines
4.0 KiB
RPMSpec
Raw Permalink Normal View History

Name: tidy
Version: 20080811
Release: 4mamba
Summary: A program for tidying up messy HTML files
Group: Applications/Web
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://%{name}.sourceforge.net/
Source0: http://tidy.sourceforge.net/src/tidy_src.tgz
Source1: http://tidy.sourceforge.net/docs/tidy_docs.tgz
License: W3C License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: cvs
BuildRequires: doxygen
BuildRequires: libtool
BuildRequires: libxslt
Requires: lib%{name} = %{version}-%{release}
%description
The tidy is a program for tidying up messy HTML files.
When editing HTML its easy to make mistakes.
Would not it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup? Dave Raggetts 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.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared library for tidy
%description -n lib%{name}
TidyLib is a library version of Dave Raggett's popular HTML Tidy.
In fact, one of the motivations for starting the Source Forge project was to refactor HTML Tidy as a callable library.
Although the command line tool is great, it is difficult and inefficient to integrate into other software.
This package contains the library needed to run programs dynamically linked with tidy.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: lib%{name} = %{version}-%{release}
%description -n lib%{name}-devel
This package contains the headers, the shared libraries and the API documentation which programmers will need to develop applications based on tidy.
%debug_package
%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} \
--enable-access \
--enable-utf16 \
--enable-asian \
--enable-shared
%make all
%make -j1 -C build/gmake/ doc
doxygen
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{buildroot} _api
%makeinstall DESTDIR="%{buildroot}"
# Manpage
install -Dpm 644 htmldoc/tidy.1 %{buildroot}%{_mandir}/man1/tidy.1
# Quick Reference
install -Dpm 644 htmldoc/quickref.html %{buildroot}%{_defaultdocdir}/%{name}/quickref.html
# Move API directory out of the way
mv htmldoc/api _api
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_datadir}/doc/tidy/quickref.html
%{_bindir}/tidy
%{_bindir}/tab2space
%{_mandir}/man1/tidy.1*
%doc htmldoc/*
%files -n lib%{name}
%defattr(-, root, root)
%{_libdir}/libtidy*.so.*
%doc htmldoc/license.html
%files -n lib%{name}-devel
%defattr(-, root, root)
%{_includedir}/%{name}/*.h
%{_libdir}/libtidy.so
%{_libdir}/libtidy.a
%doc _api/*
%changelog
* Mon Oct 30 2023 Automatic Build System <autodist@mambasoft.it> 20080811-4mamba
- automatic rebuild by autodist
* Sun Oct 29 2023 Automatic Build System <autodist@mambasoft.it> 20080811-3mamba
- automatic rebuild by autodist
* Mon Oct 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 20080811-2mamba
- fixed maintainer
- removed some unused definitions
* Sun Oct 05 2008 Tiziana Ferro <tiziana.ferro@email.it> 20080109-1mamba
- update to 20080109
- switch to cvs
* Fri Jan 13 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 20051026-1qilnx
- update to version 20051026 by autospec
- moved tools to tidy package
* Thu Oct 21 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.99.0-1qilnx
- package created by autospec