1
# Script for Building tidy rpm packages
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"
10
The steps are as follows:
13
1. Let's suppose TIDY_VERSION you are building is 02October2003
16
2. Unpack original source tree
18
This will extract to a directory called tidy
21
3. 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}
29
4. tar zcvf tidy-02October2003.tgz tidy-02October2003
32
5. rpmbuild -ta tidy-02October2003.tgz
35
6. rm tidy-02October2003.tgz
38
7. To derive Debian package for tidy run command on created rpm packages
39
rpm2deb tidy-02October2003-1.rpm