]> git.pld-linux.org Git - packages/tidy.git/blame_incremental - tidy.spec
- switch to successor project (tidy-html5), updated to 5.6.0 (new soname; 0.99 left...
[packages/tidy.git] / tidy.spec
... / ...
CommitLineData
1Summary: Utility to clean up and pretty print HTML files
2Summary(pl.UTF-8): Narzędzie do porządkowania kodu HTML
3Name: tidy
4Version: 5.6.0
5Release: 1
6Epoch: 1
7License: distributable
8Group: Applications/Text
9#Source0Download: https://github.com/htacg/tidy-html5/releases
10Source0: https://github.com/htacg/tidy-html5/archive/5.6.0/tidy-html5-%{version}.tar.gz
11# Source0-md5: 85c8a163d9ece6a02fe12bc9bddbc455
12URL: http://www.html-tidy.org/
13BuildRequires: cmake >= 2.8.12
14BuildRequires: libxslt-progs
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
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.
21
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.
27
28%package devel
29Summary: Tidy header files
30Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla programu Tidy
31Group: Development/Libraries
32Requires: %{name} = %{epoch}:%{version}-%{release}
33
34%description devel
35Tidy header files.
36
37%description devel -l pl.UTF-8
38Pliki nagłówkowe biblioteki dla programu Tidy.
39
40%package static
41Summary: Static Tidy library
42Summary(pl.UTF-8): Statyczna biblioteka Tidy
43Group: Development/Libraries
44Requires: %{name}-devel = %{epoch}:%{version}-%{release}
45
46%description static
47Static Tidy library.
48
49%description static -l pl.UTF-8
50Statyczna biblioteka Tidy.
51
52%prep
53%setup -q -n tidy-html5-%{version}
54
55%build
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
66%{__make}
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
71%{__make} -C build install \
72 DESTDIR=$RPM_BUILD_ROOT
73
74# not installed
75install build/tab2space $RPM_BUILD_ROOT%{_bindir}
76
77%clean
78rm -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
This page took 0.053168 seconds and 4 git commands to generate.