Changeset 488


Ignore:
Timestamp:
Jan 1, 2015, 6:11:30 PM (11 years ago)
Author:
Yuri Dario
Message:

spec: rpm, updates for ticket#99.

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
    15%define with_sqlite 1
    26%undefine int_bdb
     
    2529Name: rpm
    2630Version: %{rpmver}
    27 Release: 18%{?dist}
     31Release: 19%{?dist}
    2832Group: System Environment/Base
    2933Url: 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
     34Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    3735
    3836# Partially GPL/LGPL dual-licensed and some bits with BSD
     
    5250Requires: cpio
    5351Requires: cube
     52Requires: urpo >= 20150101
    5453
    5554Provides: rpm-macros-warpin
     
    189188
    190189%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
     194svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     195rm -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
    194198
    195199%if %{with int_bdb}
    196200ln -s db-%{bdbver} db
    197201%endif
    198 
    199 # Official patches
    200 %patch001 -p1 -b .base~
    201202
    202203%build
     
    211212# Using configure macro has some unwanted side-effects on rpm platform
    212213# 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 ; \
     214export RPM_MKDIR="/@unixroot/usr/bin/mkdir.exe";
     215export CONFIG_SITE="/@unixroot/usr/share/config.legacy";
     216export CONFIG_SHELL="/@unixroot/usr/bin/sh";
     217export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp";
     218export LIBS="-lintl -lurpo -lmmap -lpoll";
    217219CFLAGS="%{optflags} -I/@unixroot/usr/include/nss3 -I/@unixroot/usr/include/nspr4" ; \
    218220%configure \
     
    220222    %{!?with_int_bdb: --with-external-db} \
    221223    %{?with_sqlite: --enable-sqlite3} \
    222     --enable-python \
    223     "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     224    --enable-python
    224225
    225226make %{?_smp_mflags}
     
    472473
    473474%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
    474485* Wed Apr 09 2014 yd
    475 - backported r409, popen() does not recognize unixroot, fixes macro expansion.
     486- r409, popen() does not recognize unixroot, fixes macro expansion.
    476487
    477488* Mon Apr 07 2014 yd
Note: See TracChangeset for help on using the changeset viewer.