]>
Commit | Line | Data |
---|---|---|
1 | %define _snap 20091119 | |
2 | Summary: Utility to clean up and pretty print HTML files | |
3 | Summary(pl.UTF-8): Narzędzie do porządkowania kodu HTML | |
4 | Name: tidy | |
5 | Version: 0.%{_snap} | |
6 | Release: 1 | |
7 | Epoch: 1 | |
8 | License: distributable | |
9 | Group: Applications/Text | |
10 | # tidy projects no longer releases tarballs. | |
11 | # cvs -z3 -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy export -D 2009-11-19 tidy | |
12 | # tar -cf tidy-20091119.tar tidy;xz -9 -e tidy-20091119.tar | |
13 | Source0: tidy-%{_snap}.tar.xz | |
14 | # Source0-md5: 0ca49cf79b4f3d25a080234a0bbf8eee | |
15 | URL: http://tidy.sourceforge.net/ | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: libtool | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Tidy is utility for cleaning and pretty printing HTML files. It can | |
23 | help in keeping your WWW sources in unified format (case of tags) and | |
24 | proper encoding of different character sets. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Tidy jest narzędziem służącym do czytelnego formatowania i | |
28 | wyświetlania źródłowego kodu HTML. Ułatwia utrzymanie porządku w | |
29 | źródłach stron WWW, utrzymanie jednolitej konwencji (wielkość liter w | |
30 | tagach) oraz poprawnego kodowania różnych standardów znaków. | |
31 | ||
32 | %package devel | |
33 | Summary: Tidy header files | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla programu Tidy | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Tidy header files. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki dla programu Tidy. | |
43 | ||
44 | %package static | |
45 | Summary: Static Tidy library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka Tidy | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static Tidy library. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka Tidy. | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{name} | |
58 | ||
59 | %build | |
60 | sh build/gnuauto/setup.sh | |
61 | %configure | |
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc htmldoc/* | |
79 | %attr(755,root,root) %{_bindir}/tab2space | |
80 | %attr(755,root,root) %{_bindir}/tidy | |
81 | %attr(755,root,root) %{_libdir}/libtidy-0.99.so.*.*.* | |
82 | %attr(755,root,root) %ghost %{_libdir}/libtidy-0.99.so.0 | |
83 | ||
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_libdir}/libtidy.so | |
87 | %{_libdir}/libtidy.la | |
88 | %{_includedir}/buffio.h | |
89 | %{_includedir}/platform.h | |
90 | %{_includedir}/tidy*.h | |
91 | ||
92 | %files static | |
93 | %defattr(644,root,root,755) | |
94 | %{_libdir}/libtidy.a |