Changeset 970


Ignore:
Timestamp:
Feb 8, 2017, 6:35:46 PM (9 years ago)
Author:
Yuri Dario
Message:

spec: db4, build updates for libcx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/db4.spec

    r278 r970  
     1#define svn_url     F:/rd/ports/bdb/trunk
     2%define svn_url     http://svn.netlabs.org/repos/ports/bdb/trunk
     3%define svn_rev     1981
     4
    15# the set of arches on which libgcj provides gcj and libgcj-javac-placeholder.sh
    26#%define java_arches __%{ix86} alpha ia64 ppc sparc sparcv9 x86_64 s390 s390x
     
    1216Name: db4
    1317Version: 4.8.30
    14 Release: 6%{?dist}
    15 Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz
    16 
    17 Patch0: db-os2.diff
     18Release: 7%{?dist}
     19
     20Vendor:  bww bitwise works GmbH
     21Source:  %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1822
    1923URL: http://www.oracle.com/database/berkeley-db/
     
    117121#for building programs which use the Berkeley DB in Java.
    118122
     123%debug_package
     124
    119125%prep
    120 %setup -q -n db-%{version}
    121 %patch0 -p1 -b .os2~
     126%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
     127%setup -q
     128%else
     129%setup -n "%{name}-%{version}" -Tc
     130svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     131rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
     132(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
     133%endif
    122134
    123135# avoid hpfs386 unpacking issues (see http://svn.netlabs.org/libc/ticket/230)
     
    169181export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
    170182export LDFLAGS="-Zexe -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    171 export LIBS="-lurpo -lmmap -lpthread"
     183export LIBS="-lurpo -lcx -lpthread"
    172184export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
    173185
     
    175187#make -C db.1.85/PORT/%{_os} OORG="$CFLAGS"
    176188
    177 cd dist/os2
    178 ln -sf ../configure .
     189cd dist
     190s_config
     191
     192cd os2
     193#ln -sf ../configure .
     194cp ../configure .
    179195
    180196        # XXX --enable-diagnostic should be disabled for production (but is
    181197        # useful).
    182198        # XXX --enable-debug_{r,w}op should be disabled for production.
     199
    183200%configure -C \
    184     --enable-tcl --with-tcl=/@unixroot/usr/lib \
    185201    --disable-shared --enable-static \
    186202    --enable-cxx \
     203    --disable-tcl \
    187204    --disable-java \
    188205%ifarch %{java_arches}
     
    191208                --disable-java \
    192209%endif
    193     "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" \
    194210                # --enable-diagnostic \
    195211                # --enable-debug --enable-debug_rop --enable-debug_wop \
     
    306322%files devel
    307323%defattr(-,root,root)
    308 %doc    docs/*
    309 %doc    examples_c examples_cxx
     324#%doc   docs/*
     325#%doc   examples_c examples_cxx
    310326%{_libdir}/db*.dll
    311327%{_libdir}/libdb-%{__soversion}.a
     
    344360
    345361%changelog
     362* Wed Feb 08 2017 yd <yd@os2power.com> 4.8.30-7
     363- r1981, disable docs.
     364- r1980, remove mmap hack.
     365- build with libcx memory mapping.
     366- update build scripts.
     367
    346368* Wed Jan 11 2012 yd
    347369- avoid hpfs386 unpacking issues.
Note: See TracChangeset for help on using the changeset viewer.