%define base_name tidy %define name hack%{base_name} %define version 20011103 %define release 2mdk %define prefix %{_prefix} Name: %{name} Version: %{version} Release: %{release} Group: Text tools Source: %{base_name}-%{version}-cvs.tar.bz2 URL: http://tidy.sourceforge.net License: MIT Summary: Program for tidying up messy HTML (unstable bersion) BuildRoot: %{_tmppath}/%{name}-buildroot %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. This is an unstable version. %prep rm -rf $RPM_BUILD_ROOT %setup -n %{base_name} # remove all CVS files for dir in `find . -type d -name CVS`; do rm -rf $dir; done for file in `find . -type f -name .cvsignore`; do rm -f $file; done perl -pi -e 's/CFLAGS=(.*)/CFLAGS=\1 \$(RPM_OPT_FLAGS)/' Makefile %build %make %install install -d -m 755 $RPM_BUILD_ROOT%{_bindir} install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1 install -m 755 tidy $RPM_BUILD_ROOT%{_bindir}/hacktidy install -m 644 man_page.txt $RPM_BUILD_ROOT%{_mandir}/man1/hacktidy.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc htmldoc/* %{_bindir}/* %{_mandir}/man1/* %changelog * Sat Nov 03 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 20011103-2mdk - resolve conflict with standard version * Sat Nov 03 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 20011103-1mdk - first unstable Mandrake release - used correct compilation flags - spec cleanup