]> git.pld-linux.org Git - packages/tidy.git/blob - tidy.spec
45ce86d343b1c81acfeaad858ab3b7fde3382082
[packages/tidy.git] / tidy.spec
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:        2
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 Patch0:         format-security.patch
16 URL:            http://tidy.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  libtool
20 BuildRequires:  tar >= 1:1.22
21 BuildRequires:  xz
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Tidy is utility for cleaning and pretty printing HTML files. It can
26 help in keeping your WWW sources in unified format (case of tags) and
27 proper encoding of different character sets.
28
29 %description -l pl.UTF-8
30 Tidy jest narzędziem służącym do czytelnego formatowania i
31 wyświetlania źródłowego kodu HTML. Ułatwia utrzymanie porządku w
32 źródłach stron WWW, utrzymanie jednolitej konwencji (wielkość liter w
33 tagach) oraz poprawnego kodowania różnych standardów znaków.
34
35 %package devel
36 Summary:        Tidy header files
37 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki dla programu Tidy
38 Group:          Development/Libraries
39 Requires:       %{name} = %{epoch}:%{version}-%{release}
40
41 %description devel
42 Tidy header files.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki dla programu Tidy.
46
47 %package static
48 Summary:        Static Tidy library
49 Summary(pl.UTF-8):      Statyczna biblioteka Tidy
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
52
53 %description static
54 Static Tidy library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka Tidy.
58
59 %prep
60 %setup -q -n %{name}
61 %patch0 -p1
62
63 %build
64 sh build/gnuauto/setup.sh
65 %configure
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc htmldoc/*
83 %attr(755,root,root) %{_bindir}/tab2space
84 %attr(755,root,root) %{_bindir}/tidy
85 %attr(755,root,root) %{_libdir}/libtidy-0.99.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libtidy-0.99.so.0
87
88 %files devel
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libtidy.so
91 %{_libdir}/libtidy.la
92 %{_includedir}/buffio.h
93 %{_includedir}/platform.h
94 %{_includedir}/tidy*.h
95
96 %files static
97 %defattr(644,root,root,755)
98 %{_libdir}/libtidy.a
This page took 0.066105 seconds and 2 git commands to generate.