代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/tidy 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global libname libtidy
%global upname tidy-html5
Name: tidy
Version: 5.6.0
Release: 4
Summary: Utility to clean up and pretty print HTML/XHTML/XML
License: W3C
URL: http://www.html-tidy.org/
Source0: https://github.com/htacg/%{upname}/archive/%{version}.tar.gz#/%{upname}-%{version}.tar.gz
Patch0001: 0002-Issue-656-protect-against-NULL-node-set-in-loop.patch
Patch0002: fix-memleak-in-GetTokenFromStream.patch
Patch0003: free-attributes-before-return-NULL.patch
BuildRequires: gcc-c++ cmake gcc libxslt pkgconfig
Provides: tidy-html5 = %{version}-%{release}
Requires: %{libname}%{?_isa} = %{version}-%{release}
%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 laid 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.
%package -n %{libname}
Summary: Runtime library for %{name}
%description -n %{libname}
%{summary}.
%package -n %{libname}-devel
Summary: Development files for %{name}
Obsoletes: tidy-devel < 0.99.0-10
Provides: tidy-devel = %{version}-%{release}
Requires: %{libname}%{?_isa} = %{version}-%{release}
%description -n %{libname}-devel
%{summary}.
%package_help
%prep
%autosetup -n %{upname}-%{version} -p1
ln -s tidy build/cmake/tidy5
%build
pushd build/cmake
%cmake ../../ \
-DCMAKE_BUILD_TYPE:STRING=Release
popd
%make_build -C build/cmake
%install
%make_install -C build/cmake
ln -s tidybuffio.h $RPM_BUILD_ROOT%{_includedir}/buffio.h
ln -s tidyplatform.h $RPM_BUILD_ROOT%{_includedir}/platform.h
%delete_la_and_a
%ldconfig_scriptlets -n %{libname}
%files
%defattr(-,root,root,-)
%license README/LICENSE.md
%{_bindir}/tidy
%files -n %{libname}
%defattr(-,root,root,-)
%license README/LICENSE.md
%{_libdir}/libtidy.so.5*
%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libtidy.so
%{_libdir}/pkgconfig/tidy.pc
%files help
%defattr(-,root,root)
%{_mandir}/*
%changelog
* Thu Nov 26 2020 yuboyun <[email protected]> - 5.6.0-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix memleak in tidyParseBuffer
* Fri Nov 20 2020 lunankun <[email protected]> - 5.6.0-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix memleak
* Wed Sep 02 2020 gaihuiying <[email protected]> - 5.6.0-2
- Type:bugfix
- DESC:change Source0 to correct URL
* Wed Feb 12 2020 openEuler Buildteam <[email protected]> - 5.6.0-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。