Changeset 1091
- Timestamp:
- Sep 15, 2011, 11:03:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
packaging/qt4.spec
r1083 r1091 19 19 %define rpm_release 1 20 20 21 %define svn_ revision 107021 %define svn_url http://svn.netlabs.org/repos/qt4/tags/%{version} 22 22 23 23 %define descr_brief Qt is a software toolkit for developing applications. … … 59 59 %if "%{?QT_SOURCE_TREE}" == "" 60 60 %define QT_SOURCE_TREE . 61 %endif 62 63 # @todo temporary 61 %else 64 62 %define skip_prep_export 1 63 %endif 65 64 66 65 # installation paths … … 595 594 %if !0%{?skip_prep} 596 595 597 %if "%{?QT_SOURCE_TREE}" != ""596 %if 0%{?master_mode} 598 597 %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) 600 599 %setup -n "%{name}-%{version}" -Tc 601 svn export -r %{svn_revision} %{QT_SOURCE_TREE} . 600 svn export %{svn_url} . --force 601 rm -f "%{_sourcedir}/%{name}-%{version}.zip" 602 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}.zip" "%{name}-%{version}") 602 603 %else 603 # use passed source tree as is (shadow build)604 # use source tree in %{QT_SOURCE_TREE} (e.g. shadow build) 604 605 %setup -n "%{name}-%{version}" -Tc%{?skip_prep_clean:D} 605 606 %endif … … 619 620 die() { echo "ERROR: $@"; exit 1; } 620 621 check_var() { eval "[ -n \"\$$1\" ] || die \"$1 variable is not set.\""; } 622 623 %if "%{?svn_revision}" == "" 624 QT_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 627 QT_BUILD_ID=%{svn_revision} 628 %endif 621 629 622 630 # Qt source tree (DOS format) … … 630 638 check_var "PSQL_LIBS" 631 639 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 632 647 [ -z "$MAKE_JOBS" ] && MAKE_JOBS=1 633 648 … … 640 655 # Qt doesn't understand /@unixroot in library paths, replace it with $(UNIXROOT) 641 656 library_paths=$(echo \ 642 --official-build-quiet %{svn_revision}\657 --official-build-quiet $QT_BUILD_ID \ 643 658 -prefix "%{qt_prefix}" \ 644 659 -datadir "%{qt_datadir}" \ … … 662 677 export BEGINLIBPATH="$BUILDDIR_D\\bin\;$BEGINLIBPATH" 663 678 664 # temporarily reset UNIXROOT so that install targets will get only Qt prefixes665 # w/o the UNIXROOT directory chain (if it's not at root)666 UNIXROOT_OLD="$UNIXROOT"667 export UNIXROOT=/.668 669 679 cmd /c $QT_SOURCE_TREE_D\\configure.cmd $library_paths 670 680 671 681 make -j$MAKE_JOBS 672 673 # resture UNIXROOT674 export UNIXROOT="$UNIXROOT_OLD"675 682 676 683 %if !0%{?skip_build_docs} … … 744 751 #------------------------------------------------------------------------------ 745 752 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 761 rm -rf %{buildroot} 762 763 %endif # if !0%{?skip_clean} 747 764 748 765 #------------------------------------------------------------------------------ 749 766 %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.