nsprpub/pkg/linux/Makefile.in

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 #
michael@0 2 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
michael@0 3 # Use is subject to license terms.
michael@0 4 #
michael@0 5 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 6 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 8 #
michael@0 9 #ident "$Id$"
michael@0 10 #
michael@0 11
michael@0 12 MOD_DEPTH = ../..
michael@0 13 topsrcdir = @top_srcdir@
michael@0 14 srcdir = @srcdir@
michael@0 15 VPATH = @srcdir@
michael@0 16
michael@0 17 NAME = sun-nspr
michael@0 18 ifndef RPM_RELEASE
michael@0 19 RPM_RELEASE = 1
michael@0 20 endif
michael@0 21 TOPDIR = /usr/src/redhat
michael@0 22 VERSION = `grep PR_VERSION $(dist_includedir)/prinit.h \
michael@0 23 | sed -e 's/"$$//' -e 's/.*"//' -e 's/ .*//'`
michael@0 24
michael@0 25 SPECFILE = $(NAME).spec
michael@0 26
michael@0 27 include $(MOD_DEPTH)/config/autoconf.mk
michael@0 28
michael@0 29 # Force i386 for non 64 bit build
michael@0 30 ifneq ($(USE_64),1)
michael@0 31 RPMTARGET = "--target=i386"
michael@0 32 RPMLIBDIR = lib
michael@0 33 else
michael@0 34 RPMLIBDIR = lib64
michael@0 35 endif
michael@0 36
michael@0 37 publish:
michael@0 38 $(MAKE) clean
michael@0 39 mkdir -p SOURCES SRPMS RPMS BUILD
michael@0 40 (cd $(dist_libdir) && tar cphf - libnspr4.so libplds4.so libplc4.so) \
michael@0 41 | (mkdir -p opt/sun/private/$(RPMLIBDIR) && cd opt/sun/private/$(RPMLIBDIR) && tar xvfBp -)
michael@0 42 (cd $(dist_includedir) && tar cphf - .) \
michael@0 43 | (mkdir -p opt/sun/private/include/nspr && cd opt/sun/private/include/nspr && tar xvfBp -)
michael@0 44 (cd opt/sun/private/include/nspr && \
michael@0 45 rm -rf md)
michael@0 46 tar czvf SOURCES/$(NAME)-$(VERSION).tar.gz opt
michael@0 47 echo "%define name $(NAME)" >$(SPECFILE)
michael@0 48 echo "%define version $(VERSION)" >>$(SPECFILE)
michael@0 49 echo "%define release $(RPM_RELEASE)" >>$(SPECFILE)
michael@0 50 echo "%define buildroot `pwd`/$(NAME)-root" >>$(SPECFILE)
michael@0 51 echo "%define _topdir `pwd`" >>$(SPECFILE)
michael@0 52 echo "%define _unpackaged_files_terminate_build 0" >>$(SPECFILE)
michael@0 53 cat $(srcdir)/$(NAME).spec >>$(SPECFILE)
michael@0 54 echo "" >>$(SPECFILE)
michael@0 55 echo "%files" >>$(SPECFILE)
michael@0 56 echo "%defattr(-,root,root)" >>$(SPECFILE)
michael@0 57 echo "%dir /opt" >>$(SPECFILE)
michael@0 58 echo "%dir /opt/sun" >>$(SPECFILE)
michael@0 59 echo "%dir /opt/sun/private" >>$(SPECFILE)
michael@0 60 echo "%dir /opt/sun/private/$(RPMLIBDIR)" >>$(SPECFILE)
michael@0 61 find opt \( -name "*.so" \) | sed -e "s-^-/-" >>$(SPECFILE)
michael@0 62 echo "" >>$(SPECFILE)
michael@0 63 echo "%files devel" >>$(SPECFILE)
michael@0 64 echo "%defattr(-,root,root)" >>$(SPECFILE)
michael@0 65 echo "%dir /opt" >>$(SPECFILE)
michael@0 66 echo "%dir /opt/sun" >>$(SPECFILE)
michael@0 67 echo "%dir /opt/sun/private" >>$(SPECFILE)
michael@0 68 echo "%dir /opt/sun/private/include" >>$(SPECFILE)
michael@0 69 echo "%dir /opt/sun/private/include/nspr" >>$(SPECFILE)
michael@0 70 echo "%dir /opt/sun/private/include/nspr/obsolete" >>$(SPECFILE)
michael@0 71 echo "%dir /opt/sun/private/include/nspr/private" >>$(SPECFILE)
michael@0 72 find opt -type f \( -name "*.h" \) \
michael@0 73 | sed -e "s-^-/-" >>$(SPECFILE)
michael@0 74 rpmbuild $(RPMTARGET) -bb $(SPECFILE)
michael@0 75
michael@0 76 clean:
michael@0 77 rm -rf $(TOPDIR)/BUILD/$(NAME)
michael@0 78 rm -rf SOURCES SRPMS RPMS BUILD
michael@0 79 rm -rf RPMS SRPMS opt
michael@0 80 rm -f $(NAME)-$(VERSION).tar.gz

mercurial