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