Changeset 1094


Ignore:
Timestamp:
Sep 15, 2011, 8:21:37 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

packaging. qt4.spec: Restore deleted .sym after packing to RPMs.

.sym are already necessary for CreateZIPs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packaging/qt4.spec

    r1091 r1094  
    5050#BuildRequires: psql-devel (when available)
    5151
    52 # @todo add wrc support to Qt!
     52# @todo add wrc support to Qt
     53# @todo add proper %attr for .exe files
    5354
    5455#------------------------------------------------------------------------------
     
    470471BuildArch:  noarch
    471472
     473Requires:   lib%{name} = %{version}-%{release}
    472474Requires:   %{name}-assistant = %{version}-%{release}
    473475
     
    480482%files doc
    481483%defattr(-,root,root,-)
    482 %{qt_docdir}/qch/*.qch
     484%doc %{qt_docdir}/qch/*.qch
    483485
    484486%post doc
     
    740742mv "%{buildroot}/%{qt_bindir}/qmake.exe" "%{buildroot}/%{_bindir}/"
    741743ln -s "%{_bindir}/qmake.exe" "%{buildroot}/%{qt_bindir}/qmake.exe"
    742 %endif
    743 
    744 # @todo temporarily delete .sym files (until we generate -debuginfo packages)
    745 find "%{buildroot}/" -type f -name "*.sym" -exec rm -f "{}" \;
     744mv "%{buildroot}/%{qt_bindir}/qmake.sym" "%{buildroot}/%{_bindir}/"
     745%endif
     746
     747# @todo temporarily split out .sym files (until we generate -debuginfo packages)
     748for f in $(cd "%{buildroot}" && find -type f -name "*.sym"); do
     749    fd="${f%/*}"/
     750    [ "$fp" = "$f/" ] && fd=
     751    [ -d "%{buildroot}.sym/$fd" ] || mkdir -p "%{buildroot}.sym/$fd"
     752    mv "%{buildroot}/$f" "%{buildroot}.sym/$fd"
     753done
    746754
    747755%endif # if !0%{?skip_install}
     
    755763%if 0%{?master_mode}
    756764%if "%{?create_zips_script}" != ""
    757 %{create_zips_script} %{buildroot}
     765# @todo put split out .sym files back
     766(cd "%{buildroot}.sym" && find . -type f -name '*.sym' -exec mv "{}" "../%{buildroot}/{}" \;)
     767rm -rf "%{buildroot}.sym"
     768%{create_zips_script} "%{buildroot}" "%{_topdir}"
    758769%endif
    759770%endif
Note: See TracChangeset for help on using the changeset viewer.