]>
Commit | Line | Data |
---|---|---|
bd10bebf | 1 | Summary: Utility to clean up and pretty print HTML files |
63037b52 | 2 | Summary(pl.UTF-8): Narzędzie do porządkowania kodu HTML |
bd10bebf | 3 | Name: tidy |
82ebbcf5 | 4 | Version: 5.8.0 |
edb05c47 | 5 | Release: 1 |
ebbb6aea | 6 | Epoch: 1 |
9d2f849d | 7 | License: distributable |
6a43e31a | 8 | Group: Applications/Text |
edb05c47 | 9 | #Source0Download: https://github.com/htacg/tidy-html5/releases |
82ebbcf5 JB |
10 | Source0: https://github.com/htacg/tidy-html5/archive/%{version}/tidy-html5-%{version}.tar.gz |
11 | # Source0-md5: 0f6c55ef651e258adbe5750f555af50f | |
edb05c47 JB |
12 | URL: http://www.html-tidy.org/ |
13 | BuildRequires: cmake >= 2.8.12 | |
14 | BuildRequires: libxslt-progs | |
48397551 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
bd10bebf | 16 | |
17 | %description | |
e60405c2 | 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. | |
bd10bebf | 21 | |
4b5a1aab JR |
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. | |
bd10bebf | 27 | |
9d2f849d | 28 | %package devel |
39c4f628 | 29 | Summary: Tidy header files |
63037b52 | 30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla programu Tidy |
39c4f628 | 31 | Group: Development/Libraries |
e891f6af | 32 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9d2f849d MK |
33 | |
34 | %description devel | |
e67a84ac JB |
35 | Tidy header files. |
36 | ||
4b5a1aab JR |
37 | %description devel -l pl.UTF-8 |
38 | Pliki nagłówkowe biblioteki dla programu Tidy. | |
e67a84ac JB |
39 | |
40 | %package static | |
41 | Summary: Static Tidy library | |
63037b52 | 42 | Summary(pl.UTF-8): Statyczna biblioteka Tidy |
e67a84ac | 43 | Group: Development/Libraries |
e891f6af | 44 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
e67a84ac JB |
45 | |
46 | %description static | |
47 | Static Tidy library. | |
9d2f849d | 48 | |
4b5a1aab | 49 | %description static -l pl.UTF-8 |
e67a84ac | 50 | Statyczna biblioteka Tidy. |
9d2f849d | 51 | |
bd10bebf | 52 | %prep |
edb05c47 | 53 | %setup -q -n tidy-html5-%{version} |
bd10bebf | 54 | |
55 | %build | |
edb05c47 JB |
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 | ||
9d2f849d MK |
66 | %{__make} |
67 | ||
bd10bebf | 68 | %install |
19c544cf | 69 | rm -rf $RPM_BUILD_ROOT |
e67a84ac | 70 | |
edb05c47 | 71 | %{__make} -C build install \ |
e67a84ac | 72 | DESTDIR=$RPM_BUILD_ROOT |
6a43e31a | 73 | |
edb05c47 JB |
74 | # not installed |
75 | install build/tab2space $RPM_BUILD_ROOT%{_bindir} | |
76 | ||
bd10bebf | 77 | %clean |
19c544cf | 78 | rm -rf $RPM_BUILD_ROOT |
bd10bebf | 79 | |
e67a84ac JB |
80 | %post -p /sbin/ldconfig |
81 | %postun -p /sbin/ldconfig | |
82 | ||
bd10bebf | 83 | %files |
638a6fe6 | 84 | %defattr(644,root,root,755) |
82ebbcf5 | 85 | %doc README.md README/{API_AND_NAMESPACE.md,ATTRIBUTES.md,CHANGELOG.md,LICENSE.md,MESSAGES.md,OPTIONS.md,TAGS.md} |
9347d748 JB |
86 | %attr(755,root,root) %{_bindir}/tab2space |
87 | %attr(755,root,root) %{_bindir}/tidy | |
edb05c47 | 88 | %attr(755,root,root) %{_libdir}/libtidy.so.%{version} |
82ebbcf5 | 89 | %attr(755,root,root) %ghost %{_libdir}/libtidy.so.58 |
edb05c47 | 90 | %{_mandir}/man1/tidy.1* |
9d2f849d MK |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
9347d748 | 94 | %attr(755,root,root) %{_libdir}/libtidy.so |
edb05c47 JB |
95 | %{_includedir}/tidy |
96 | %{_pkgconfigdir}/tidy.pc | |
e67a84ac JB |
97 | |
98 | %files static | |
99 | %defattr(644,root,root,755) | |
82ebbcf5 | 100 | %{_libdir}/libtidy.a |