X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=tidy.spec;h=ff315c49fa8613a2e26529434e17835f1163bb78;hb=ea2db9d1b13732106ec1f9bf5a2e6ac4ad619d2f;hp=fde24f2020eec0ee086329639df291c5dcaab5ef;hpb=19c544cf1f8b8e1112b2d84d5694f340b36dfd7a;p=packages%2Ftidy.git diff --git a/tidy.spec b/tidy.spec index fde24f2..ff315c4 100644 --- a/tidy.spec +++ b/tidy.spec @@ -1,50 +1,95 @@ -# $Revision: 1.3 $ $Date: 1999-12-09 19:51:46 $ +%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: 30nov99 +Version: 0.%{_snap} Release: 1 -Group: Utilities/Text -Group(pl): Narzêdzia/Tekst -License: BSD -Source: http://www.w3.org/People/Raggett/%{name}%{version}.tgz -URL: http://www.w3.org/People/Raggett/tidy/ -Patch: %{name}%{version}-html.patch.gz -Buildroot: /tmp/%{name}-%{version}-root +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 -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. +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}%{version} -%patch +%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 htmldoc/* +%attr(755,root,root) %{_bindir}/tab2space %attr(755,root,root) %{_bindir}/tidy -%doc Overview.html.gz release-notes.html.gz grid.gif tidy.gif -%{_mandir}/man1/* -%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