Changeset 1091


Ignore:
Timestamp:
Sep 15, 2011, 11:03:31 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

Spec for release 4.7.3-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packaging/qt4.spec

    r1083 r1091  
    1919%define rpm_release 1
    2020
    21 %define svn_revision    1070
     21%define svn_url     http://svn.netlabs.org/repos/qt4/tags/%{version}
    2222
    2323%define descr_brief Qt is a software toolkit for developing applications.
     
    5959%if "%{?QT_SOURCE_TREE}" == ""
    6060%define QT_SOURCE_TREE .
    61 %endif
    62 
    63 # @todo temporary
     61%else
    6462%define skip_prep_export 1
     63%endif
    6564
    6665# installation paths
     
    595594%if !0%{?skip_prep}
    596595
    597 %if "%{?QT_SOURCE_TREE}" != ""
     596%if 0%{?master_mode}
    598597%if !0%{?skip_prep_export}
    599 # get clean source tree from SVN
     598# get clean source tree from SVN (both for building and for SRPM)
    600599%setup -n "%{name}-%{version}" -Tc
    601 svn export -r %{svn_revision} %{QT_SOURCE_TREE} .
     600svn export %{svn_url} . --force
     601rm -f "%{_sourcedir}/%{name}-%{version}.zip"
     602(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}.zip" "%{name}-%{version}")
    602603%else
    603 # use passed source tree as is (shadow build)
     604# use source tree in %{QT_SOURCE_TREE} (e.g. shadow build)
    604605%setup -n "%{name}-%{version}" -Tc%{?skip_prep_clean:D}
    605606%endif
     
    619620die() { echo "ERROR: $@"; exit 1; }
    620621check_var() { eval "[ -n \"\$$1\" ] || die \"$1 variable is not set.\""; }
     622
     623%if "%{?svn_revision}" == ""
     624QT_BUILD_ID=$(svn info %{svn_url} | sed -nre 's/^Last Changed Rev: ([0-9]+)$/\1/p')
     625[ -z "$QT_BUILD_ID" ] && die "Cannot determine SVN revision."
     626%else
     627QT_BUILD_ID=%{svn_revision}
     628%endif
    621629
    622630# Qt source tree (DOS format)
     
    630638check_var "PSQL_LIBS"
    631639
     640# Non-root UNIXROOT is not currently supported because of make install
     641# that will install to a subtree in such case (which is not expected
     642# by %install below). @todo One solution is to move everything from that
     643# subtree right to %{buildroot}/@unixroot after make install.
     644[ -z "$(echo "$UNIXROOT" | sed -re 's/^[a-bA-b]:$//')" ] || \
     645    die "UNIXROOT must be the root directory"
     646
    632647[ -z "$MAKE_JOBS" ] && MAKE_JOBS=1
    633648
     
    640655# Qt doesn't understand /@unixroot in library paths, replace it with $(UNIXROOT)
    641656library_paths=$(echo \
    642     --official-build-quiet %{svn_revision} \
     657    --official-build-quiet $QT_BUILD_ID \
    643658    -prefix "%{qt_prefix}" \
    644659    -datadir "%{qt_datadir}" \
     
    662677export BEGINLIBPATH="$BUILDDIR_D\\bin\;$BEGINLIBPATH"
    663678
    664 # temporarily reset UNIXROOT so that install targets will get only Qt prefixes
    665 # w/o the UNIXROOT directory chain (if it's not at root)
    666 UNIXROOT_OLD="$UNIXROOT"
    667 export UNIXROOT=/.
    668 
    669679cmd /c $QT_SOURCE_TREE_D\\configure.cmd $library_paths
    670680
    671681make -j$MAKE_JOBS
    672 
    673 # resture UNIXROOT
    674 export UNIXROOT="$UNIXROOT_OLD"
    675682
    676683%if !0%{?skip_build_docs}
     
    744751#------------------------------------------------------------------------------
    745752
    746 #rm -rf %{buildroot}
     753%if !0%{?skip_clean}
     754
     755%if 0%{?master_mode}
     756%if "%{?create_zips_script}" != ""
     757%{create_zips_script} %{buildroot}
     758%endif
     759%endif
     760
     761rm -rf %{buildroot}
     762
     763%endif # if !0%{?skip_clean}
    747764
    748765#------------------------------------------------------------------------------
    749766%changelog
     767* Thu Sep 15 2011 Dmitriy Kuminov <dmik/coding.org> 4.7.3-1
     768- New release 4.7.3. See %{pkg_docdir}/changes-4.7.3 and
     769  %{pkg_docdir}/CHANGES.OS2 for more information.
Note: See TracChangeset for help on using the changeset viewer.