# # spec file for package tidy # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define regression_tests 00f1e38 %define documentation 0ed35c6 Name: tidy Version: 5.8.0 Release: 1.2 Summary: Utility to Clean Up and Pretty-print HTML, XHTML or XML Markup License: W3C Group: Productivity/Publishing/HTML/Tools URL: https://github.com/htacg/tidy-html5 Source0: https://github.com/htacg/tidy-html5/archive/%{version}.tar.gz # Latest version of unit tests Source1: https://github.com/htacg/tidy-html5-tests/archive/%{regression_tests}.tar.gz # Documentation generation files, extracted from # https://github.com/htacg/html-tidy.org.api.git/archive/%%{documentation}.tar.gz # using tidy_fetch_docs.sh Source2: tidy-html5-doxygen-%{documentation}.tar.gz Source10: tidy_fetch_docs.sh Patch0: dynamic_library_build.diff Patch1: test_fixes.diff Patch2: fix_doxygen_paths.diff BuildRequires: cmake BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: libxslt BuildRequires: pkgconfig %description Tidy is a command line frontend to TidyLib which allows for cleaning up and pretty printing HTML, XHTML and XML markup in a variety of file encodings. For HTML variants, it can detect and report proprietary elements as well as many common coding errors, correct them and produce visually equivalent markup which is both compliant with W3C standards and works on most browsers. Furthermore, it can convert plain HTML to XHTML. For generic XML files, Tidy is limited to correcting basic well-formedness errors and pretty printing. %package doc Summary: Documentation for tidy and libtidy Group: Documentation/HTML BuildArch: noarch %description doc This package contains the documentation for both tidy and libtidy. %package -n libtidy58 Summary: Library to Clean Up and Pretty-print HTML, XHTML or XML Markup Group: System/Libraries %description -n libtidy58 TidyLib is a library for cleaning up and pretty printing HTML, XHTML and XML markup in a variety of file encodings. For HTML variants, it can detect and report proprietary elements as well as many common coding errors, correct them and produce visually equivalent markup which is both compliant with W3C standards and works on most browsers. Furthermore, it can convert plain HTML into XHTML. For generic XML files, Tidy is limited to correcting basic well-formedness errors and pretty printing. There is a command line frontend for this library, contained in the package "tidy". %package -n libtidy-devel Summary: Development files for libtidy Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libtidy58 = %{version} Conflicts: libtidy-0_99-0-devel Conflicts: tidy-html5-devel Obsoletes: libtidy-0_99-0-devel < %{version} %description -n libtidy-devel This package contains all necessary include files and libraries needed to develop applications using functions provided by the TidyLib library. %prep %setup -q -a 1 -a 2 -n tidy-html5-%{version} mv tidy-html5-tests-* tests %autopatch -p1 %build %cmake \ -DCMAKE_SKIP_RPATH:BOOL=OFF \ -DINCLUDE_INSTALL_DIR:PATH=include/%{name} \ -DTIDY_COMPAT_HEADERS:BOOL=ON -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O0 -ggdb3" %cmake_build ../tidy-html5-doxygen/build_docs.sh %install %cmake_install %post -n libtidy58 -p /sbin/ldconfig %postun -n libtidy58 -p /sbin/ldconfig %files %{_bindir}/tidy %{_mandir}/man1/tidy.1%{?ext_man} %files -n tidy-doc %doc build/docs/api/ %files -n libtidy58 %{_libdir}/libtidy*.so.* %files -n libtidy-devel %dir %{_includedir}/%{name} %{_includedir}/%{name}/tidy.h %{_includedir}/%{name}/tidybuffio.h %{_includedir}/%{name}/tidyenum.h %{_includedir}/%{name}/tidyplatform.h %{_includedir}/%{name}/buffio.h %{_includedir}/%{name}/platform.h %{_libdir}/libtidy.so %{_libdir}/pkgconfig/*.pc %changelog * Sun Aug 15 2021 Jan Engelhardt - Update to release 5.8.0 * Only a version bump; no changes were conveyed. - New SONAME, so there is a bit of cleaning possible against old Obsoletes/Conflicts. * Mon Mar 16 2020 Martin Pluskal - Cleanup spec file with spec-cleaner - Fix previous changelog entry (missing patch removal) * Sat Mar 14 2020 Matej Cepl - Update to the versoin 5.7.28: - Change "tidyLocalMapItem" to "tidyLocaleMapItem" - added OS __ANDROID__ to tidyplatform.h - Is. #781, PR #782 - Bump to 5.7.24, for nl -h removal - PR #769 - Dump to 5.7.23, add 'data' tag - closes #649 - Switch 32-bit build to 'next' - Is #797 - use 'TidyRealloc' in place of raw 'realloc' - Update BRANCHES.md - Is. #746 PR #747 - fix other dup 'const' modifier - PR #762 - bump to 5.7.19 for BUILD.md fix - Is. #791 - free some allocations - Is. #770 #780 maybe #790 - remove 'setlocal' from lib! - Is. #783 - Fix language detection - Is. #781 - Drop redundant blank lines in -help - Issue#649: added tag - PHP >= 7.1.0 recognizes tidy-html5 - Is #752 - Replace _MSC_VER with _WIN32 - Is #752 - Slightly enhance the API doxy docs - Is #752 - Chg TC_MAIN_ERROR_LOAD_CONFIG to 'problems' - Is #752 - Try STRING_MUTING_TYPE to TidyInfo - Is #741 - add RELEASE.md document - Is #752 - Add windows tilde expansion - Fix extra const modifier - Is #726 #185 - HTML5 is case sensitive for anchors. - Is #718 PR #727 - Update to CONTRIBUTING.md.2.txt - Is #726 #185 - HTML5 is case sensitive for anchors. - Is #719 - Set 'muted' before any callback - Is #713 - show-filename to errout when no warnings - PR #712 - Bump to 5.7.11 for this merge, and fix - PR #712 - Only allow 'auto' on 'dir' for HTML5 - Is 697 PR #708 - Bump to 5.7.10 for this merge - Is #721 - cast away some gcc warnings - fix spelling mistake - add --show-filename option to show the input filename on output messages - update --gnu-emacs option documentation - Is #679 PR #695 - To 5.7.5 for this merge - Is #684 - To 5.7.4 for this 'docs' change - Update language_en.h - jidanni and geoffmcl - Is #709 - Improve message if 'implict' - Make global attribute `dir` accept auto as well. - Is #700 - change script parsing if in html5 mode - Is #698 - Mention need for ':' in config file - Is #697 - Add NOWRAP to print of pre tag - Is #698 - Mention colon in 'man' text - Is #686 - Add attr COLOR to W3CAttrsFor_LINK - Is #679 - add 'priority-attributes' to -show-config - Is #679 - some fixes for -export-config - Is #663 - Reduce static alloc to as required - Is #663 - Open context for gcc 2.95 port - Is #663 - Add language limit for 'Haiku' gcc 2.95 - Is #663 - Add 'Haiku' port, '__HAIKU__' - Is #663 - Remove UTF-8 BOM from 6 lang. headers - Is #663 - Small change for MSVC10 - Issue #655 - Fix unsafe use of output buffer as input param - Issue #656 - protect against NULL node set in loop - Drop no longer needed patch: 0001-Issue-656-protect-against-NULL-node-set-in-loop.diff * Thu May 31 2018 jengelh@inai.de - Drop unmaintained Debian files - Update to new upstream release 5.6.0 * handle in
* Add support for 's "as" attribute * Add support for the "integrity" attribute (on and