[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / Linux / RPM

Annotation of OpenXM/misc/packages/Linux/RPM/Makefile, Revision 1.2

1.2     ! takayama    1: # $OpenXM: OpenXM/misc/packages/Linux/RPM/Makefile,v 1.1 2000/03/09 03:09:21 takayama Exp $
        !             2: # *Preparation for debugging this Makefile and openxm.spec.in
        !             3: # 0. Generate ~/.rpmrc and set the TopDir for the work.
        !             4: #    Here is my .rpmrc
1.1       takayama    5: #
                      6: #    TopDir: home/taka/OpenXM/misc/packages/Linux/RPM/work
1.2     ! takayama    7: #
1.1       takayama    8: #  [ To extract a source from *src.rpm to SOURCES dir,
                      9: #    type in "make make-directory" and "rpm -i your.src.rpm" ]
1.2     ! takayama   10: # *Preparations to use this redhat-package builder for OpenXM
        !            11: #  and make a binary distribution.
        !            12: # 0. You must be a root to execute 5 and later.
        !            13: #    rm TopDir: in your ~/.rpmrc
        !            14: #
        !            15: # *How to build a binary package.
        !            16: # 1. Make ole by make ole at  $(OpenXM_HOME)/src/kan96xx/Doc.
        !            17: #    [ ole.c will be moved to somewhere else in a future. ]
        !            18: # 2. Make a directory ~/tmp if you do not have.
        !            19: # 3. Generate a source tar ball openxm-1.1.2.tar.gz by
        !            20: #     cd $(OpenXM_HOME)/misc/packages/FreeBSD/openxm-1.1.2 ; make make-tar-ball
        !            21: # 4. Type in make link-for-real-openxm
        !            22: # 5. Type in make build-binary-rpm
        !            23: # The binary package will be generated at  work/RPMS/i386.
        !            24: #
        !            25: # Example 1 :  debug this Makefile and openxm.spec.in
        !            26: #  cd $(OpenXM_HOME)/misc/packages/FreeBSD/openxm-1.1.2 ; make fake-openxm
        !            27: #  make link-for-debug
        !            28: #  make build-binary-rpm
        !            29: #
        !            30: # *To check the file names in the package
        !            31: #  rpm2cpio openxm-1.1.2-test.i386.rpm | cpio -tv | more
        !            32: # or
        !            33: #  rpm -qvlp openxm-1.1.2-test.i386.rpm
        !            34: #
        !            35: #  -ivh : Install,  -e openxm-1.1.2-test : remove,
        !            36: #  -qvl openxm-1.1.2-test : list.
        !            37:
        !            38: OLE=$(HOME)/OpenXM/src/kan96xx/Doc/ole -q
        !            39: RPM_BUILD_BINARY_ROOT=/var/tmp/openxm-root
1.1       takayama   40:
                     41: usage :
                     42:
1.2     ! takayama   43: build-binary-rpm: openxm-spec
        !            44:        (cd work/SPECS ; rpm -bb openxm.spec )
        !            45:
1.1       takayama   46: make-directory: clean
                     47:        mkdir work
                     48:        mkdir work/SOURCES work/SPECS work/BUILD work/RPMS
                     49:        mkdir work/RPMS/i386 work/SPRMS
1.2     ! takayama   50:        mkdir ${RPM_BUILD_BINARY_ROOT}
        !            51:        mkdir ${RPM_BUILD_BINARY_ROOT}/usr
        !            52:        mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local
        !            53:        mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/bin
        !            54:        mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/man
        !            55:        mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/man/man1
        !            56:
        !            57:
        !            58: openxm-spec:
        !            59:        rm -rf work/SPECS/openxm.spec
        !            60:        ${OLE} <openxm.spec.in >work/SPECS/openxm.spec
1.1       takayama   61:
                     62: clean :
1.2     ! takayama   63:        -/bin/rm -rf work ${RPM_BUILD_BINARY_ROOT}
        !            64:
        !            65:
        !            66: link-for-debug: make-directory clean
        !            67:        (cd work/SOURCES ; rm -rf openxm-1.1.2.tar.gz ; ln -s $(HOME)/tmp/openxm-fake.tar.gz ./openxm-1.1.2.tar.gz)
        !            68:
        !            69: link-for-real-openxm: make-directory clean
        !            70:        (cd work/SOURCES ; rm -rf openxm-1.1.2.tar.gz ; ln -s $(HOME)/tmp/openxm-1.1.2.tar.gz ./openxm-1.1.2.tar.gz)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>