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

Diff for /OpenXM/misc/packages/Linux/RPM/Makefile between version 1.2 and 1.12

version 1.2, 2000/03/09 08:35:43 version 1.12, 2000/03/24 08:48:15
Line 1 
Line 1 
 # $OpenXM: OpenXM/misc/packages/Linux/RPM/Makefile,v 1.1 2000/03/09 03:09:21 takayama Exp $  # $OpenXM: OpenXM/misc/packages/Linux/RPM/Makefile,v 1.11 2000/03/24 08:44:18 takayama Exp $
 # *Preparation for debugging this Makefile and openxm.spec.in  # *If you do not like to use /usr/src/redhat area to put *rpm files,
   #  do as follows.
 # 0. Generate ~/.rpmrc and set the TopDir for the work.  # 0. Generate ~/.rpmrc and set the TopDir for the work.
 #    Here is my .rpmrc  #    Here is my .rpmrc
 #  #
Line 7 
Line 8 
 #  #
 #  [ To extract a source from *src.rpm to SOURCES dir,  #  [ To extract a source from *src.rpm to SOURCES dir,
 #    type in "make make-directory" and "rpm -i your.src.rpm" ]  #    type in "make make-directory" and "rpm -i your.src.rpm" ]
 # *Preparations to use this redhat-package builder for OpenXM  
 #  and make a binary distribution.  
 # 0. You must be a root to execute 5 and later.  
 #    rm TopDir: in your ~/.rpmrc  
 #  #
 # *How to build a binary package.  # *How to build a binary package.
 # 1. Make ole by make ole at  $(OpenXM_HOME)/src/kan96xx/Doc.  # 1. Make ole by make ole at  $(OpenXM_HOME)/src/kan96xx/Doc.
Line 19 
Line 16 
 # 3. Generate a source tar ball openxm-1.1.2.tar.gz by  # 3. Generate a source tar ball openxm-1.1.2.tar.gz by
 #     cd $(OpenXM_HOME)/misc/packages/FreeBSD/openxm-1.1.2 ; make make-tar-ball  #     cd $(OpenXM_HOME)/misc/packages/FreeBSD/openxm-1.1.2 ; make make-tar-ball
 # 4. Type in make link-for-real-openxm  # 4. Type in make link-for-real-openxm
 # 5. Type in make build-binary-rpm  # 5. Type in make build-binary-rpm  (for test)
   # REAL 5. Edit openxm.spec.in and remove the line BuildRoot.
   #          Su and type in make build-binary-rpm
   #         work should be removed by the super user.
 # The binary package will be generated at  work/RPMS/i386.  # The binary package will be generated at  work/RPMS/i386.
 #  #
 # Example 1 :  debug this Makefile and openxm.spec.in  # Example 1 :  debug this Makefile and openxm.spec.in
Line 34 
Line 34 
 #  #
 #  -ivh : Install,  -e openxm-1.1.2-test : remove,  #  -ivh : Install,  -e openxm-1.1.2-test : remove,
 #  -qvl openxm-1.1.2-test : list.  #  -qvl openxm-1.1.2-test : list.
   #
   #  The maximum rpm at http://rpm.redhat.com is the most comprehensive source
   #  to use rpm to build redhat packages.
   
 OLE=$(HOME)/OpenXM/src/kan96xx/Doc/ole -q  OLE_DIR=../../../../../OpenXM/src/kan96xx/Doc
 RPM_BUILD_BINARY_ROOT=/var/tmp/openxm-root  OLE=${OLE_DIR}/ole -q
   RPM_BUILD_BINARY_ROOT=/var/tmp/openxm-binary-root
   RPM_BUILD_SHARED_ROOT=/var/tmp/openxm-shared-root
   
 usage :  usage :
           @echo "Usage:"
           @echo "build-binary-rpm "
           @echo "build-shared-rpm "
           @echo "make-directory"
           @echo "link-for-real-openxm "
   
 build-binary-rpm: openxm-spec  build-binary-rpm: openxm-binary-spec
           (cd work/SPECS ; rpm -bb openxm-binary.spec )
   
   build-shared-rpm: openxm-shared-spec
           (cd work/SPECS ; rpm --buildarch noarch --buildos Linux -bb openxm-shared.spec )
   
   ## This is obsolete
   build-rpm: openxm-spec
         (cd work/SPECS ; rpm -bb openxm.spec )          (cd work/SPECS ; rpm -bb openxm.spec )
   
 make-directory: clean  make-directory: clean
         mkdir work          mkdir work
         mkdir work/SOURCES work/SPECS work/BUILD work/RPMS          mkdir work/SOURCES work/SPECS work/BUILD work/RPMS
         mkdir work/RPMS/i386 work/SPRMS          mkdir work/RPMS/i386 work/RPMS/noarch work/SPRMS work/RPMS/ppc work/RPMS/sparc work/RPMS/alpha
         mkdir ${RPM_BUILD_BINARY_ROOT}          mkdir ${RPM_BUILD_BINARY_ROOT}
         mkdir ${RPM_BUILD_BINARY_ROOT}/usr          mkdir ${RPM_BUILD_BINARY_ROOT}/usr
         mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local          mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local
         mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/bin          mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/bin
         mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/man          mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/man
         mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/man/man1          mkdir ${RPM_BUILD_BINARY_ROOT}/usr/local/man/man1
           mkdir ${RPM_BUILD_SHARED_ROOT}
           mkdir ${RPM_BUILD_SHARED_ROOT}/usr
           mkdir ${RPM_BUILD_SHARED_ROOT}/usr/local
           mkdir ${RPM_BUILD_SHARED_ROOT}/usr/local/bin
           mkdir ${RPM_BUILD_SHARED_ROOT}/usr/local/man
           mkdir ${RPM_BUILD_SHARED_ROOT}/usr/local/man/man1
   
   
 openxm-spec:  openxm-spec:  make-ole
         rm -rf work/SPECS/openxm.spec          rm -rf work/SPECS/openxm.spec
         ${OLE} <openxm.spec.in >work/SPECS/openxm.spec          ${OLE} <openxm.spec.in >work/SPECS/openxm.spec
   
   openxm-binary-spec: make-ole
           rm -rf work/SPECS/openxm-binary.spec
           ${OLE} <openxm-binary.spec.in >work/SPECS/openxm-binary.spec
   
   openxm-shared-spec: make-ole
           rm -rf work/SPECS/openxm-shared.spec
           ${OLE} <openxm-shared.spec.in >work/SPECS/openxm-shared.spec
   
   make-ole :
           @if test ! -f ${OLE_DIR}/ole ; \
           then \
                   (cd $(OLE_DIR) ; make ole) ;  \
           fi
   
 clean :  clean :
         -/bin/rm -rf work ${RPM_BUILD_BINARY_ROOT}          -/bin/rm -rf work ${RPM_BUILD_BINARY_ROOT} ${RPM_BUILD_SHARED_ROOT}
   
   
 link-for-debug: make-directory clean  link-for-debug: make-directory clean

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.12

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