Changeset 970
- Timestamp:
- Feb 8, 2017, 6:35:46 PM (9 years ago)
- 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 1 5 # the set of arches on which libgcj provides gcj and libgcj-javac-placeholder.sh 2 6 #%define java_arches __%{ix86} alpha ia64 ppc sparc sparcv9 x86_64 s390 s390x … … 12 16 Name: db4 13 17 Version: 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 18 Release: 7%{?dist} 19 20 Vendor: bww bitwise works GmbH 21 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 18 22 19 23 URL: http://www.oracle.com/database/berkeley-db/ … … 117 121 #for building programs which use the Berkeley DB in Java. 118 122 123 %debug_package 124 119 125 %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 130 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 131 rm -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 122 134 123 135 # avoid hpfs386 unpacking issues (see http://svn.netlabs.org/libc/ticket/230) … … 169 181 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" 170 182 export LDFLAGS="-Zexe -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 171 export LIBS="-lurpo -l mmap-lpthread"183 export LIBS="-lurpo -lcx -lpthread" 172 184 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" 173 185 … … 175 187 #make -C db.1.85/PORT/%{_os} OORG="$CFLAGS" 176 188 177 cd dist/os2 178 ln -sf ../configure . 189 cd dist 190 s_config 191 192 cd os2 193 #ln -sf ../configure . 194 cp ../configure . 179 195 180 196 # XXX --enable-diagnostic should be disabled for production (but is 181 197 # useful). 182 198 # XXX --enable-debug_{r,w}op should be disabled for production. 199 183 200 %configure -C \ 184 --enable-tcl --with-tcl=/@unixroot/usr/lib \185 201 --disable-shared --enable-static \ 186 202 --enable-cxx \ 203 --disable-tcl \ 187 204 --disable-java \ 188 205 %ifarch %{java_arches} … … 191 208 --disable-java \ 192 209 %endif 193 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" \194 210 # --enable-diagnostic \ 195 211 # --enable-debug --enable-debug_rop --enable-debug_wop \ … … 306 322 %files devel 307 323 %defattr(-,root,root) 308 %doc docs/*309 %doc examples_c examples_cxx324 #%doc docs/* 325 #%doc examples_c examples_cxx 310 326 %{_libdir}/db*.dll 311 327 %{_libdir}/libdb-%{__soversion}.a … … 344 360 345 361 %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 346 368 * Wed Jan 11 2012 yd 347 369 - avoid hpfs386 unpacking issues.
Note:
See TracChangeset
for help on using the changeset viewer.