Changeset 488
- Timestamp:
- Jan 1, 2015, 6:11:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/rpm48.spec
r410 r488 1 #define svn_url F:/rd/ports/rpm/rpm/branches/rpm-4.8.1 2 %define svn_url http://svn.netlabs.org/repos/rpm/rpm/branches/rpm-4.8.1 3 %define svn_rev 486 4 1 5 %define with_sqlite 1 2 6 %undefine int_bdb … … 25 29 Name: rpm 26 30 Version: %{rpmver} 27 Release: 1 8%{?dist}31 Release: 19%{?dist} 28 32 Group: System Environment/Base 29 33 Url: http://www.rpm.org/ 30 Source0: http://rpm.org/releases/rpm-4.8.x/%{name}-%{srcver}.tar.bz2 31 %if %{with int_bdb} 32 Source1: db-%{bdbver}.tar.gz 33 %endif 34 Source2: %{name}-%{srcver}-os2-src2.tar 35 36 Patch1: %{name}-%{srcver}-os2.diff 34 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 37 35 38 36 # Partially GPL/LGPL dual-licensed and some bits with BSD … … 52 50 Requires: cpio 53 51 Requires: cube 52 Requires: urpo >= 20150101 54 53 55 54 Provides: rpm-macros-warpin … … 189 188 190 189 %prep 191 # -D Do not delete the directory before unpacking. 192 # -T Disable the automatic unpacking of the archives. 193 %setup -q -n %{name}-%{srcver} %{?with_int_bdb:-a 1} -a 2 190 %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} 191 %setup -q 192 %else 193 %setup -n "%{name}-%{version}" -Tc 194 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 195 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 196 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 197 %endif 194 198 195 199 %if %{with int_bdb} 196 200 ln -s db-%{bdbver} db 197 201 %endif 198 199 # Official patches200 %patch001 -p1 -b .base~201 202 202 203 %build … … 211 212 # Using configure macro has some unwanted side-effects on rpm platform 212 213 # setup, use the old-fashioned way for now only defining minimal paths. 213 RPM_MKDIR="/@unixroot/usr/bin/mkdir.exe" ; export RPM_MKDIR ; \ 214 CONFIG_SHELL="/@unixroot/usr/bin/sh" ; export CONFIG_SHELL ; \ 215 LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; export LDFLAGS ; \ 216 LIBS="-lintl -lurpo -lmmap" ; export LIBS ; \ 214 export RPM_MKDIR="/@unixroot/usr/bin/mkdir.exe"; 215 export CONFIG_SITE="/@unixroot/usr/share/config.legacy"; 216 export CONFIG_SHELL="/@unixroot/usr/bin/sh"; 217 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"; 218 export LIBS="-lintl -lurpo -lmmap -lpoll"; 217 219 CFLAGS="%{optflags} -I/@unixroot/usr/include/nss3 -I/@unixroot/usr/include/nspr4" ; \ 218 220 %configure \ … … 220 222 %{!?with_int_bdb: --with-external-db} \ 221 223 %{?with_sqlite: --enable-sqlite3} \ 222 --enable-python \ 223 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 224 --enable-python 224 225 225 226 make %{?_smp_mflags} … … 472 473 473 474 %changelog 475 * Thu Jan 01 2015 yd 476 - r486, use urpo renameForce() to rename locked databases. ticket#99. 477 - implement subversion sources checkout. 478 479 * Wed Dec 24 2014 yd 480 - r484, r485, ticket#99. 481 482 * Wed Sep 24 2014 yd 483 - r461, sideport r409, popen() does not recognize unixroot, fixes macro expansion. 484 474 485 * Wed Apr 09 2014 yd 475 - backportedr409, popen() does not recognize unixroot, fixes macro expansion.486 - r409, popen() does not recognize unixroot, fixes macro expansion. 476 487 477 488 * Mon Apr 07 2014 yd
Note:
See TracChangeset
for help on using the changeset viewer.