1 Summary: Utility to clean up and pretty print HTML files
2 Summary(pl.UTF-8): Narzędzie do porządkowania kodu HTML
8 Group: Applications/Text
9 #Source0Download: https://github.com/htacg/tidy-html5/releases
10 Source0: https://github.com/htacg/tidy-html5/archive/5.6.0/tidy-html5-%{version}.tar.gz
11 # Source0-md5: 85c8a163d9ece6a02fe12bc9bddbc455
12 URL: http://www.html-tidy.org/
13 BuildRequires: cmake >= 2.8.12
14 BuildRequires: libxslt-progs
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Tidy is utility for cleaning and pretty printing HTML files. It can
19 help in keeping your WWW sources in unified format (case of tags) and
20 proper encoding of different character sets.
22 %description -l pl.UTF-8
23 Tidy jest narzędziem służącym do czytelnego formatowania i
24 wyświetlania źródłowego kodu HTML. Ułatwia utrzymanie porządku w
25 źródłach stron WWW, utrzymanie jednolitej konwencji (wielkość liter w
26 tagach) oraz poprawnego kodowania różnych standardów znaków.
29 Summary: Tidy header files
30 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla programu Tidy
31 Group: Development/Libraries
32 Requires: %{name} = %{epoch}:%{version}-%{release}
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki dla programu Tidy.
41 Summary: Static Tidy library
42 Summary(pl.UTF-8): Statyczna biblioteka Tidy
43 Group: Development/Libraries
44 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
49 %description static -l pl.UTF-8
50 Statyczna biblioteka Tidy.
53 %setup -q -n tidy-html5-%{version}
58 # .pc file template expects relative {INCLUDE,LIB}_INSTALL_DIR
60 -DBUILD_TAB2SPACE=ON \
61 -DINCLUDE_INSTALL_DIR=include/tidy \
62 -DLIB_INSTALL_DIR=%{_lib} \
63 -DTIDY_COMPAT_HEADERS=ON \
64 -DTIDY_CONSOLE_SHARED=ON
69 rm -rf $RPM_BUILD_ROOT
71 %{__make} -C build install \
72 DESTDIR=$RPM_BUILD_ROOT
75 install build/tab2space $RPM_BUILD_ROOT%{_bindir}
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 %defattr(644,root,root,755)
85 %doc README.md README/{API_AND_NAMESPACE.md,ATTRIBUTES.md,LICENSE.md,MESSAGES.md,OPTIONS.md,TAGS.md}
86 %attr(755,root,root) %{_bindir}/tab2space
87 %attr(755,root,root) %{_bindir}/tidy
88 %attr(755,root,root) %{_libdir}/libtidy.so.%{version}
89 %attr(755,root,root) %ghost %{_libdir}/libtidy.so.5
90 %{_mandir}/man1/tidy.1*
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/libtidy.so
96 %{_pkgconfigdir}/tidy.pc
99 %defattr(644,root,root,755)
100 %{_libdir}/libtidys.a