1# Script for Building tidy rpm packages 2 3 4# To build the RPM packages for tidy on Redhat and other distros which support rpm. 5# For making Debian packages, first create rpm package and then generate 6# debian package by command "rpm2deb filename" 7 8 9 10The steps are as follows: 11 12 131. Let's suppose TIDY_VERSION you are building is 02October2003 14 15 162. Unpack original source tree 17 tar zxvf tidy_src.tgz 18 This will extract to a directory called tidy 19 20 213. mv tidy tidy-02October2003 22 Edit the tidy.spec file inside directory tidy-02October2003 23 and make sure the Version variable is changed to 02October2003. 24 Also edit the Makefile and change prefix to "exactly" say this: 25 runinst_prefix=${RPMTMP} 26 devinst_prefix=${RPMTMP} 27 28 294. tar zcvf tidy-02October2003.tgz tidy-02October2003 30 31 325. rpmbuild -ta tidy-02October2003.tgz 33 34 356. rm tidy-02October2003.tgz 36 37 387. To derive Debian package for tidy run command on created rpm packages 39 rpm2deb tidy-02October2003-1.rpm 40 41