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

version 1.15, 2000/09/02 01:37:21 version 1.19, 2000/09/25 09:51:21
Line 1 
Line 1 
 # $OpenXM: OpenXM/misc/packages/Linux/RPM/Makefile,v 1.14 2000/08/29 06:48:48 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  #Edit this.  VERSION number must be compatible between Generic/openxm/Makefile
 # and *.spec.in  # and *.spec.in
 VERSION=1.1.3  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. If your rpm version is less than 3,  # 0. If your rpm version is less than 3,
Line 15  VERSION=1.1.3
Line 19  VERSION=1.1.3
 #      Generate ~/.rpmmacros and set the %_topdir for the work.  #      Generate ~/.rpmmacros and set the %_topdir for the work.
 #      Here is my .rpmmacros  #      Here is my .rpmmacros
 #  #
 #      %_topdir  home/taka/OpenXM/misc/packages/Linux/RPM/work  #      %_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 61  usage :
Line 65  usage :
         @echo "build-source-rpm "          @echo "build-source-rpm "
         @echo "make-directory"          @echo "make-directory"
         @echo "link-for-real-openxm "          @echo "link-for-real-openxm "
           @echo "link-for-fake-openxm "
           @echo "copy-to-ftp-area "
           @echo "clean"
   
 build-binary-rpm: openxm-binary-spec  build-binary-rpm: openxm-binary-spec
         (cd work/SPECS ; rpm -bb openxm-binary.spec )          (cd work/SPECS ; rpm -bb openxm-binary.spec )
   
 build-shared-rpm: openxm-shared-spec  build-shared-rpm: openxm-shared-spec
         (cd work/SPECS ; rpm --buildarch noarch --buildos Linux -bb 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:  build-source-rpm:  openxm-binary-spec openxm-shared-spec
         (cd work/SPECS ; rpm -ba openxm-binary.spec )          (cd work/SPECS ; rpm -ba openxm-binary.spec )
         (cd work/SPECS ; rpm --buildarch noarch --buildos Linux -ba 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 -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  ## This is obsolete
 build-rpm: openxm-spec  build-rpm: openxm-spec
Line 79  build-rpm: openxm-spec
Line 102  build-rpm: 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/RPMS/noarch work/SPRMS work/RPMS/ppc work/RPMS/sparc work/RPMS/alpha          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
Line 121  link-for-debug: make-directory clean
Line 144  link-for-debug: make-directory clean
   
 link-for-real-openxm: make-directory clean  link-for-real-openxm: make-directory clean
         (cd work/SOURCES ; rm -rf openxm-$(VERSION).tar.gz ; ln -s $(HOME)/tmp/openxm-$(VERSION).tar.gz ./openxm-$(VERSION).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.15  
changed lines
  Added in v.1.19

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