зеркало из https://github.com/mozilla/pjs.git
238319: Sun packages changes
Change rpm packaging for RHEL3 i386 and x86_64.
This commit is contained in:
Родитель
4760d2dfe2
Коммит
1ad56bbc2a
|
@ -38,7 +38,7 @@
|
|||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
#ident "$Id: Makefile.in,v 1.5 2005-06-01 20:51:33 christophe.ravel.bugs%sun.com Exp $"
|
||||
#ident "$Id: Makefile.in,v 1.6 2005-07-22 15:32:39 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
|
||||
MOD_DEPTH = ../..
|
||||
|
@ -56,12 +56,17 @@ SPECFILE = $(NAME).spec
|
|||
|
||||
include $(MOD_DEPTH)/config/autoconf.mk
|
||||
|
||||
# Force i386 for non 64 bit build
|
||||
ifneq ($(USE_64),1)
|
||||
RPMTARGET = "--target=i386"
|
||||
endif
|
||||
|
||||
publish:
|
||||
$(MAKE) clean
|
||||
mkdir -p SOURCES SRPMS RPMS BUILD
|
||||
(cd $(MOD_DEPTH)/../../dist/$(RELEASE_OBJDIR_NAME)/lib && tar cphf - .) \
|
||||
(cd $(dist_libdir) && tar cphf - .) \
|
||||
| (mkdir -p opt/sun/private/lib && cd opt/sun/private/lib && tar xvfBp -)
|
||||
(cd $(MOD_DEPTH)/../../dist/$(RELEASE_OBJDIR_NAME)/include && tar cphf - .) \
|
||||
(cd $(dist_includedir) && tar cphf - .) \
|
||||
| (mkdir -p opt/sun/private/include/nspr && cd opt/sun/private/include/nspr && tar xvfBp -)
|
||||
tar czvf SOURCES/$(NAME)-$(VERSION).tar.gz opt
|
||||
echo "%define name $(NAME)" >$(SPECFILE)
|
||||
|
@ -69,8 +74,9 @@ publish:
|
|||
echo "%define release $(RELEASE)" >>$(SPECFILE)
|
||||
echo "%define buildroot `pwd`/$(NAME)-root" >>$(SPECFILE)
|
||||
echo "%define _topdir `pwd`" >>$(SPECFILE)
|
||||
echo "%define _unpackaged_files_terminate_build 0" >>$(SPECFILE)
|
||||
cat $(srcdir)/$(NAME).spec >>$(SPECFILE)
|
||||
rpm -ba $(SPECFILE)
|
||||
rpmbuild $(RPMTARGET) -bb $(SPECFILE)
|
||||
|
||||
clean:
|
||||
rm -rf $(TOPDIR)/BUILD/$(NAME)
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
#ident "$Id: Makefile,v 1.17 2005-04-27 20:28:26 christophe.ravel.bugs%sun.com Exp $"
|
||||
#ident "$Id: Makefile,v 1.18 2005-07-22 15:32:49 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
|
||||
CORE_DEPTH = ../../..
|
||||
|
@ -52,6 +52,11 @@ BUILDROOT = $(PWD)\/$(NAME)-root
|
|||
|
||||
include $(CORE_DEPTH)/coreconf/config.mk
|
||||
|
||||
# Force i386 for non 64 bit build
|
||||
ifneq ($(USE_64),1)
|
||||
RPMTARGET = "--target=i386"
|
||||
endif
|
||||
|
||||
publish:
|
||||
$(MAKE) clean
|
||||
mkdir -p SOURCES SRPMS RPMS BUILD
|
||||
|
@ -101,7 +106,7 @@ endif
|
|||
find opt -type f ! \( -name "*.so" -o -name "*.jar" \) \
|
||||
| sed -e "s-^-/-" >>temp.spec
|
||||
cp $(NAME)-$(VERSION).tar.gz SOURCES
|
||||
rpm -ba temp.spec
|
||||
rpmbuild $(RPMTARGET) -bb temp.spec
|
||||
|
||||
clean::
|
||||
rm -rf SOURCES SRPMS RPMS BUILD
|
||||
|
|
|
@ -62,6 +62,8 @@ Summary: Development Libraries for Network Security Services for Java
|
|||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%define _unpackaged_files_terminate_build 0
|
||||
|
||||
%description devel
|
||||
Header files for doing development with Network Security Services for Java.
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
#
|
||||
#ident "$Id: Makefile,v 1.11 2005-06-27 18:22:02 christophe.ravel.bugs%sun.com Exp $"
|
||||
#ident "$Id: Makefile,v 1.12 2005-07-22 15:32:50 christophe.ravel.bugs%sun.com Exp $"
|
||||
#
|
||||
|
||||
CORE_DEPTH = ../../..
|
||||
|
@ -52,6 +52,11 @@ BUILDROOT = $(PWD)\/$(NAME)-root
|
|||
|
||||
include $(CORE_DEPTH)/coreconf/config.mk
|
||||
|
||||
# Force i386 for non 64 bit build
|
||||
ifneq ($(USE_64),1)
|
||||
RPMTARGET = "--target=i386"
|
||||
endif
|
||||
|
||||
publish:
|
||||
$(MAKE) clean
|
||||
mkdir -p SOURCES SRPMS RPMS BUILD
|
||||
|
@ -99,7 +104,7 @@ publish:
|
|||
find opt -type f \( -name "*.h" \) \
|
||||
| sed -e "s-^-/-" >>temp.spec
|
||||
cp $(NAME)-$(VERSION).tar.gz SOURCES
|
||||
rpm -ba temp.spec
|
||||
rpmbuild $(RPMTARGET) -bb temp.spec
|
||||
|
||||
clean::
|
||||
rm -rf SOURCES SRPMS RPMS BUILD
|
||||
|
|
|
@ -62,6 +62,8 @@ Summary: Development Libraries for Network Security Services
|
|||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%define _unpackaged_files_terminate_build 0
|
||||
|
||||
%description devel
|
||||
Header files for doing development with Network Security Services.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче