X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=tidy.spec;h=ff315c49fa8613a2e26529434e17835f1163bb78;hb=ea2db9d1b13732106ec1f9bf5a2e6ac4ad619d2f;hp=277c1822a1a5f9cb4366199c745d314652b1541a;hpb=c1dc7219f408ff0e38f6882b0792b165401b9f88;p=packages%2Ftidy.git diff --git a/tidy.spec b/tidy.spec index 277c182..ff315c4 100644 --- a/tidy.spec +++ b/tidy.spec @@ -1,15 +1,22 @@ -# $Revision: 1.13 $ $Date: 2001-08-16 08:25:19 $ -%define w3cver 4aug00 +%define _snap 20091119 Summary: Utility to clean up and pretty print HTML files -Summary(pl): Narzêdzie do porz±dkowania kodu HTML +Summary(pl.UTF-8): Narzędzie do porządkowania kodu HTML Name: tidy -Version: 20000804.%{w3cver} +Version: 0.%{_snap} Release: 1 -Group: Utilities/Text -Group(pl): Narzêdzia/Tekst -License: BSD -Source0: http://www.w3.org/People/Raggett/%{name}%{w3cver}.tgz -URL: http://www.w3.org/People/Raggett/tidy/ +Epoch: 1 +License: distributable +Group: Applications/Text +# tidy projects no longer releases tarballs. +# cvs -z3 -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy export -D 2009-11-19 tidy +# tar -cf tidy-20091119.tar tidy;xz -9 -e tidy-20091119.tar +Source0: tidy-%{_snap}.tar.xz +# Source0-md5: 0ca49cf79b4f3d25a080234a0bbf8eee +URL: http://tidy.sourceforge.net/ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: tar >= 1:1.22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -17,33 +24,72 @@ Tidy is utility for cleaning and pretty printing HTML files. It can help in keeping your WWW sources in unified format (case of tags) and proper encoding of different character sets. -%description -l pl -Tidy jest narzêdziem s³u¿±cym do czytelnego formatowania i -wy¶wietlania ¼ród³owego kodu HTML. U³atwia utrzymanie porz±dku w -¼ród³ach stron WWW, utrzymanie jednolitej konwecji (wielko¶æ liter w -tagach) oraz poprawnego kodowania ró¿nych standardów znaków. +%description -l pl.UTF-8 +Tidy jest narzędziem służącym do czytelnego formatowania i +wyświetlania źródłowego kodu HTML. Ułatwia utrzymanie porządku w +źródłach stron WWW, utrzymanie jednolitej konwencji (wielkość liter w +tagach) oraz poprawnego kodowania różnych standardów znaków. + +%package devel +Summary: Tidy header files +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla programu Tidy +Group: Development/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description devel +Tidy header files. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki dla programu Tidy. + +%package static +Summary: Static Tidy library +Summary(pl.UTF-8): Statyczna biblioteka Tidy +Group: Development/Libraries +Requires: %{name}-devel = %{epoch}:%{version}-%{release} + +%description static +Static Tidy library. + +%description static -l pl.UTF-8 +Statyczna biblioteka Tidy. %prep -%setup -q -n %{name}%{w3cver} +%setup -q -n %{name} %build -%{__make} CFLAGS="$RPM_OPT_FLAGS" -cp man_page.txt tidy.1 +sh build/gnuauto/setup.sh +%configure +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} -install -s tidy ${RPM_BUILD_ROOT}%{_bindir} -install tidy.1 ${RPM_BUILD_ROOT}%{_mandir}/man1 -gzip -9nf ${RPM_BUILD_ROOT}%{_mandir}/man1/* \ - Overview.html release-notes.html +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) -%doc Overview.html.gz release-notes.html.gz grid.gif tidy.gif -%{_mandir}/man1/* +%doc htmldoc/* +%attr(755,root,root) %{_bindir}/tab2space %attr(755,root,root) %{_bindir}/tidy +%attr(755,root,root) %{_libdir}/libtidy-0.99.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libtidy-0.99.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libtidy.so +%{_libdir}/libtidy.la +%{_includedir}/buffio.h +%{_includedir}/platform.h +%{_includedir}/tidy*.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/libtidy.a