version 1.11, 2000/03/24 08:44:18 |
version 1.14, 2000/08/29 06:48:48 |
|
|
# $OpenXM: OpenXM/misc/packages/Linux/RPM/Makefile,v 1.10 2000/03/16 09:36:13 takayama Exp $ |
# $OpenXM: OpenXM/misc/packages/Linux/RPM/Makefile,v 1.13 2000/04/17 04:30:59 takayama Exp $ |
# *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" ] |
# |
# |
|
|
@echo "Usage:" |
@echo "Usage:" |
@echo "build-binary-rpm " |
@echo "build-binary-rpm " |
@echo "build-shared-rpm " |
@echo "build-shared-rpm " |
|
@echo "build-source-rpm " |
@echo "make-directory" |
@echo "make-directory" |
@echo "link-for-real-openxm " |
@echo "link-for-real-openxm " |
|
|
Line 56 build-binary-rpm: openxm-binary-spec |
|
Line 63 build-binary-rpm: 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 ) |
(cd work/SPECS ; rpm --buildarch noarch --buildos Linux -bb openxm-shared.spec ) |
|
|
|
build-source-rpm: |
|
(cd work/SPECS ; rpm -ba openxm-binary.spec ) |
|
(cd work/SPECS ; rpm --buildarch noarch --buildos Linux -ba openxm-shared.spec ) |
|
|
## This is obsolete |
## This is obsolete |
build-rpm: openxm-spec |
build-rpm: openxm-spec |
(cd work/SPECS ; rpm -bb openxm.spec ) |
(cd work/SPECS ; rpm -bb openxm.spec ) |
Line 63 build-rpm: openxm-spec |
|
Line 74 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 |
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 |