~ubuntu-branches/ubuntu/precise/tidy/precise-security

« back to all changes in this revision

Viewing changes to build/rpm/readme.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2005-04-20 11:22:49 UTC
  • mfrom: (0.2.1 upstream) (1.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050420112249-mygnr5vcrutwsen3
Tags: 20050415-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
10
The steps are as follows:
 
11
 
 
12
 
 
13
1. Let's suppose TIDY_VERSION you are building is 02October2003
 
14
 
 
15
 
 
16
2. Unpack original source tree
 
17
        tar zxvf tidy_src.tgz
 
18
   This will extract to a directory called tidy
 
19
 
 
20
 
 
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}
 
27
 
 
28
 
 
29
4. tar zcvf tidy-02October2003.tgz tidy-02October2003
 
30
 
 
31
 
 
32
5. rpmbuild -ta tidy-02October2003.tgz
 
33
 
 
34
 
 
35
6. rm tidy-02October2003.tgz
 
36
 
 
37
 
 
38
7. To derive Debian package for tidy run command on created rpm packages
 
39
        rpm2deb tidy-02October2003-1.rpm
 
40