%define name tidy %define version 20051026 %define release %mkrel 3 %define epoch 1 %define apiver 0.99 %define major 0 %define libname %mklibname %{name} %{apiver} %{major} %define develname %mklibname %name -d Summary: Program for tidying up messy HTML Name: %{name} Version: %{version} Release: %{release} Epoch: %{epoch} Group: Text tools License: W3C License URL: http://tidy.sourceforge.net/ Source0: http://tidy.sourceforge.net/src/tidy_src.tar.bz2 Source1: http://tidy.sourceforge.net/docs/tidy_docs.tar.bz2 Patch0: tidy-fi-str-fmt.patch Requires: %{libname} = %{epoch}:%{version} BuildRequires: autoconf BuildRequires: automake BuildRoot: %{_tmppath}/%{name}-%{version} %description tidy is a program for tidying up messy html, for example, when we do html in vi, and we make the text italic with the <i> </i> tag some of us may forget to end the italic text with </i>. tidy fixes this. Install this if you need a program to help you tidy up your HTML. %package -n %{libname} Summary: Main library for %{name} Group: System/Libraries Obsoletes: %mklibname tidy 0.99 %description -n %{libname} This package contains the library needed to run programs dynamically linked with %{name}. %package -n %{develname} Summary: Headers for developing programs that will use %{name} Group: Development/Other Requires: %{libname} = %{epoch}:%{version} Provides: lib%{name}-devel = %{epoch}:%{version} Provides: %{name}-devel = %{epoch}:%{version} Obsoletes: %mklibname -d tidy 0 Obsoletes: %mklibname -d tidy 0.99 %description -n %{develname} This package contains the headers that programmers will need to develop applications which will use %{name}. %prep %setup -q -n %{name} %setup -q -n %{name} -T -D -b1 %patch0 -p0 %build sh build/gnuauto/setup.sh %configure2_5x %make %install %__rm -rf %{buildroot} %makeinstall install -d -m 755 %{buildroot}%{_mandir}/man1 install -m 644 htmldoc/man_page.txt %{buildroot}%{_mandir}/man1/%{name}.1 %clean %__rm -rf %{buildroot} %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %files %defattr(-,root,root) %doc htmldoc/* %{_bindir}/* %{_mandir}/man1/* %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %files -n %{develname} %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/*.so %changelog * Sat Apr 11 2009 Funda Wang <fundawang@mandriva.org> 1:20051026-3mdv2009.1 + Revision: 366368 - fix str fmt * Wed Jun 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 1:20051026-3mdv2009.0 + Revision: 225691 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Fri Feb 01 2008 Funda Wang <fundawang@mandriva.org> 1:20051026-2mdv2008.1 + Revision: 160978 - New devel package policy + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Tue Oct 31 2006 Oden Eriksson <oeriksson@mandriva.com> 20051026-1mdv2007.0 + Revision: 74471 - Import tidy * Fri Jan 20 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1:20051026-1mdk - new version - %%mkrel * Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 20050415-2mdk - Rebuild * Tue Apr 26 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1:20050415-1mdk - New release 20050415 - spec cleanup * Sat Jan 22 2005 David Walluck <walluck@mandrake.org> 1:20050120-1mdk - 20050120 - fix src URL * Tue Jan 04 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 20041025-2mdk - it builds perfectly fine with automake1.7 (on 10.0 too, that has no automake1.9) - fix deps * Sun Dec 05 2004 Guillaume Rousse <guillomovitch@mandrake.org> 20041025-1mdk - new version - fix license spelling - fix main package requires instead of lib package provides - switch to automake 1.9 * Sat Jul 17 2004 Charles A Edwards <eslrahc@bellsouth.net> 20040713-2mdk - rm obsoletes/provides for hacktidy - enforce versioing for automake - fix provides for lib pkg * Wed Jul 14 2004 Guillaume Rousse <guillomovitch@mandrake.org> 20040713-1mdk - new version - revert to a sane versioning * Tue Jun 15 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1:0.99-0.20040318.2mdk - use the %%configure2_5x macro - fix deps * Mon Apr 26 2004 David Walluck <walluck@mandrake.org> 1:0.99-0.20040318.1mdk - 20040318 - add epochs to all Provides/Requires * Sun Feb 29 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.99-0.20040228.1mdk - 20040228 - fixed dependencies * Wed Dec 03 2003 Guillaume Rousse <guillomovitch@mandrake.org> 0.99-0.20031101.1mdk - 20031101 - fixed lib package name