]> git.pld-linux.org Git - packages/tidy.git/blame - tidy.spec
- updated to 5.8.0 (new soname)
[packages/tidy.git] / tidy.spec
CommitLineData
bd10bebf 1Summary: Utility to clean up and pretty print HTML files
63037b52 2Summary(pl.UTF-8): Narzędzie do porządkowania kodu HTML
bd10bebf 3Name: tidy
82ebbcf5 4Version: 5.8.0
edb05c47 5Release: 1
ebbb6aea 6Epoch: 1
9d2f849d 7License: distributable
6a43e31a 8Group: Applications/Text
edb05c47 9#Source0Download: https://github.com/htacg/tidy-html5/releases
82ebbcf5
JB
10Source0: https://github.com/htacg/tidy-html5/archive/%{version}/tidy-html5-%{version}.tar.gz
11# Source0-md5: 0f6c55ef651e258adbe5750f555af50f
edb05c47
JB
12URL: http://www.html-tidy.org/
13BuildRequires: cmake >= 2.8.12
14BuildRequires: libxslt-progs
48397551 15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
bd10bebf 16
17%description
e60405c2 18Tidy is utility for cleaning and pretty printing HTML files. It can
19help in keeping your WWW sources in unified format (case of tags) and
20proper encoding of different character sets.
bd10bebf 21
4b5a1aab
JR
22%description -l pl.UTF-8
23Tidy jest narzędziem służącym do czytelnego formatowania i
24wyświetlania źródłowego kodu HTML. Ułatwia utrzymanie porządku w
25źródłach stron WWW, utrzymanie jednolitej konwencji (wielkość liter w
26tagach) oraz poprawnego kodowania różnych standardów znaków.
bd10bebf 27
9d2f849d 28%package devel
39c4f628 29Summary: Tidy header files
63037b52 30Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla programu Tidy
39c4f628 31Group: Development/Libraries
e891f6af 32Requires: %{name} = %{epoch}:%{version}-%{release}
9d2f849d
MK
33
34%description devel
e67a84ac
JB
35Tidy header files.
36
4b5a1aab
JR
37%description devel -l pl.UTF-8
38Pliki nagłówkowe biblioteki dla programu Tidy.
e67a84ac
JB
39
40%package static
41Summary: Static Tidy library
63037b52 42Summary(pl.UTF-8): Statyczna biblioteka Tidy
e67a84ac 43Group: Development/Libraries
e891f6af 44Requires: %{name}-devel = %{epoch}:%{version}-%{release}
e67a84ac
JB
45
46%description static
47Static Tidy library.
9d2f849d 48
4b5a1aab 49%description static -l pl.UTF-8
e67a84ac 50Statyczna biblioteka Tidy.
9d2f849d 51
bd10bebf 52%prep
edb05c47 53%setup -q -n tidy-html5-%{version}
bd10bebf 54
55%build
edb05c47
JB
56install -d build
57cd 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 69rm -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
75install build/tab2space $RPM_BUILD_ROOT%{_bindir}
76
bd10bebf 77%clean
19c544cf 78rm -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
This page took 0.093137 seconds and 4 git commands to generate.