[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.3 and 1.19

version 1.3, 2000/03/09 09:26:26 version 1.19, 2000/09/25 09:51:21
Line 1 
Line 1 
 # $OpenXM: OpenXM/misc/packages/Linux/RPM/Makefile,v 1.2 2000/03/09 08:35:43 takayama Exp $  # $OpenXM: OpenXM/misc/packages/Linux/RPM/Makefile,v 1.18 2000/09/05 08:45:06 takayama Exp $
   
   #Edit this.  VERSION number must be compatible between Generic/openxm/Makefile
   # and *.spec.in
   VERSION=1.1.3
   
   ## configuration only for committers
   WHO=taka@orange
   FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION}
   
 # *If you do not like to use /usr/src/redhat area to put *rpm files,  # *If you do not like to use /usr/src/redhat area to put *rpm files,
 #  do as follows.  #  do as follows.
 # 0. Generate ~/.rpmrc and set the TopDir for the work.  # 0. If your rpm version is less than 3,
 #    Here is my .rpmrc  #      Generate ~/.rpmrc and set the TopDir for the work.
   #      Here is my .rpmrc
 #  #
 #    TopDir: home/taka/OpenXM/misc/packages/Linux/RPM/work  #      TopDir: home/taka/OpenXM/misc/packages/Linux/RPM/work
   #    If you rpm version is more than or equal to 3,
   #      Generate ~/.rpmmacros and set the %_topdir for the work.
   #      Here is my .rpmmacros
 #  #
   #      %_topdir  /home/taka/OpenXM/misc/packages/Linux/RPM/work
   #
 #  [ 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" ]
 #  #
Line 13 
Line 28 
 # 1. Make ole by make ole at  $(OpenXM_HOME)/src/kan96xx/Doc.  # 1. Make ole by make ole at  $(OpenXM_HOME)/src/kan96xx/Doc.
 #    [ ole.c will be moved to somewhere else in a future. ]  #    [ ole.c will be moved to somewhere else in a future. ]
 # 2. Make a directory ~/tmp if you do not have.  # 2. Make a directory ~/tmp if you do not have.
 # 3. Generate a source tar ball openxm-1.1.2.tar.gz by  # 3. Generate a source tar ball openxm-$(VERSION).tar.gz by
 #     cd $(OpenXM_HOME)/misc/packages/FreeBSD/openxm-1.1.2 ; make make-tar-ball  #     cd $(OpenXM_HOME)/misc/packages/Generic/openxm ; 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  (for test)  # 5. Type in make build-binary-rpm  (for test)
 # REAL 5. Edit openxm.spec.in and remove the line BuildRoot.  # REAL 5. Edit openxm.spec.in and remove the line BuildRoot.
Line 23 
Line 38 
 # 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
 #  cd $(OpenXM_HOME)/misc/packages/FreeBSD/openxm-1.1.2 ; make fake-openxm  #  cd $(OpenXM_HOME)/misc/packages/FreeBSD/openxm-$(VERSION) ; make fake-openxm
 #  make link-for-debug  #  make link-for-debug
 #  make build-binary-rpm  #  make build-binary-rpm
 #  #
 # *To check the file names in the package  # *To check the file names in the package
 #  rpm2cpio openxm-1.1.2-test.i386.rpm | cpio -tv | more  #  rpm2cpio openxm-$(VERSION)-test.i386.rpm | cpio -tv | more
 # or  # or
 #  rpm -qvlp openxm-1.1.2-test.i386.rpm  #  rpm -qvlp openxm-$(VERSION)-test.i386.rpm
 #  #
 #  -ivh : Install,  -e openxm-1.1.2-test : remove,  #  -ivh : Install,  -e openxm-$(VERSION)-test : remove,
 #  -qvl openxm-1.1.2-test : list.  #  -qvl openxm-$(VERSION)-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 "build-source-rpm "
           @echo "make-directory"
           @echo "link-for-real-openxm "
           @echo "link-for-fake-openxm "
           @echo "copy-to-ftp-area "
           @echo "clean"
   
 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
           rm -f /tmp/tmp-rpm-version.t
           rpm --version | awk '{print $$3}' >/tmp/tmp-rpm-version.t
           if test "2.5.5" = `cat /tmp/tmp-rpm-version.t` ; then \
           echo "for rpm 2.x on FreeBSD 3.x" ; \
           (cd work/SPECS ; rpm --buildarch noarch --buildos Linux -bb openxm-shared.spec ) ; \
           else \
           echo "for  rpm 3.x" ; \
           (cd work/SPECS ; rpm --target noarch-OpenXM-Linux -bb openxm-shared.spec ) ; \
           fi
   
   build-source-rpm:  openxm-binary-spec openxm-shared-spec
           (cd work/SPECS ; rpm -ba openxm-binary.spec )
           rm -f /tmp/tmp-rpm-version.t
           rpm --version | awk '{print $$3}' >/tmp/tmp-rpm-version.t
           if test "2.5.5" = `cat /tmp/tmp-rpm-version.t` ; then \
           echo " for rpm 2.x on FreeBSD 3.x" ; \
           (cd work/SPECS ; rpm --buildarch noarch --buildos Linux -ba openxm-shared.spec ) ; \
           else \
           echo " for rpm 3.x " ; \
           (cd work/SPECS ; rpm --target noarch-OpenXM-Linux -ba openxm-shared.spec ) ; \
           fi
   
   ## 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 work/SRPMS
         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
         (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)          (cd work/SOURCES ; rm -rf openxm-$(VERSION).tar.gz ; ln -s $(HOME)/tmp/openxm-fake.tar.gz ./openxm-$(VERSION).tar.gz)
   
 link-for-real-openxm: make-directory clean  link-for-real-openxm: make-directory clean
         (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)          (cd work/SOURCES ; rm -rf openxm-$(VERSION).tar.gz ; ln -s $(HOME)/tmp/openxm-$(VERSION).tar.gz ./openxm-$(VERSION).tar.gz)
   
   link-for-fake-openxm: make-directory clean
           (cd work/SOURCES ; rm -rf openxm-$(VERSION).tar.gz ; ln -s $(HOME)/tmp/openxm-fake.tar.gz ./openxm-$(VERSION).tar.gz)
   
   copy-to-ftp-area:
           -scp work/RPMS/i386/openxm-*.rpm ${WHO}:${FTP_AREA}
           -scp work/RPMS/noarch/openxm-*.rpm ${WHO}:${FTP_AREA}
           -scp work/SRPMS/openxm-*.rpm ${WHO}:${FTP_AREA}
   
   
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.19

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