]>
Commit | Line | Data |
---|---|---|
1 | Summary: Utility to clean up and pretty print HTML files | |
2 | Summary(pl.UTF-8): Narzędzie do porządkowania kodu HTML | |
3 | Name: tidy | |
4 | Version: 5.6.0 | |
5 | Release: 1 | |
6 | Epoch: 1 | |
7 | License: distributable | |
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) | |
16 | ||
17 | %description | |
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. | |
21 | ||
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. | |
27 | ||
28 | %package devel | |
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} | |
33 | ||
34 | %description devel | |
35 | Tidy header files. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki dla programu Tidy. | |
39 | ||
40 | %package static | |
41 | Summary: Static Tidy library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka Tidy | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static Tidy library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka Tidy. | |
51 | ||
52 | %prep | |
53 | %setup -q -n tidy-html5-%{version} | |
54 | ||
55 | %build | |
56 | install -d build | |
57 | cd build | |
58 | # .pc file template expects relative {INCLUDE,LIB}_INSTALL_DIR | |
59 | %cmake .. \ | |
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 | |
65 | ||
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} -C build install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | # not installed | |
75 | install build/tab2space $RPM_BUILD_ROOT%{_bindir} | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
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* | |
91 | ||
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %attr(755,root,root) %{_libdir}/libtidy.so | |
95 | %{_includedir}/tidy | |
96 | %{_pkgconfigdir}/tidy.pc | |
97 | ||
98 | %files static | |
99 | %defattr(644,root,root,755) | |
100 | %{_libdir}/libtidys.a |