X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=tidy.spec;h=96a7261a32bca157a8d8b9a12a3b87d5a5ea1420;hb=ef8f72f19ef10a4cef3f368d718500fbdfa8f45c;hp=277c1822a1a5f9cb4366199c745d314652b1541a;hpb=c1dc7219f408ff0e38f6882b0792b165401b9f88;p=packages%2Ftidy.git diff --git a/tidy.spec b/tidy.spec index 277c182..96a7261 100644 --- a/tidy.spec +++ b/tidy.spec @@ -1,15 +1,19 @@ -# $Revision: 1.13 $ $Date: 2001-08-16 08:25:19 $ -%define w3cver 4aug00 Summary: Utility to clean up and pretty print HTML files Summary(pl): Narzêdzie do porz±dkowania kodu HTML Name: tidy -Version: 20000804.%{w3cver} +Version: 0.20041025 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 +Source0: http://tidy.sf.net/src/tidy_src.tgz +# Source0-md5: bf6cd062ed43babdba5ade9378be2db3 +Source1: http://tidy.sf.net/docs/tidy_docs.tgz +# Source1-md5: 04338149bdd3e10753101bc5dff8acd8 +URL: http://tidy.sf.net/ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -20,30 +24,73 @@ 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 +¼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): Pliki nag³ówkowe biblioteki dla programu Tidy +Group: Development/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description devel +Tidy header files. + +%description devel -l pl +Pliki nag³ówkowe biblioteki dla programu Tidy. + +%package static +Summary: Static Tidy library +Summary(pl): Statyczna biblioteka Tidy +Group: Development/Libraries +Requires: %{name}-devel = %{epoch}:%{version}-%{release} + +%description static +Static Tidy library. + +%description static -l pl +Statyczna biblioteka Tidy. + %prep -%setup -q -n %{name}%{w3cver} +%setup -q -n %{name} -b1 %build -%{__make} CFLAGS="$RPM_OPT_FLAGS" -cp man_page.txt tidy.1 +cp -af build/gnuauto/* . +%{__libtoolize} +%{__aclocal} +%{__automake} +%{__autoconf} +%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 + +install -d $RPM_BUILD_ROOT%{_mandir}/man1 +mv -f htmldoc/man_page.txt $RPM_BUILD_ROOT%{_mandir}/man1/tidy.1 %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 +%doc htmldoc/* +%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_libdir}/lib*.so.*.*.* %{_mandir}/man1/* -%attr(755,root,root) %{_bindir}/tidy + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so +%{_libdir}/lib*.la +%{_includedir}/*.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/lib*.a