Document and work around documentation problems.

Sun, 10 Oct 2010 18:19:47 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 10 Oct 2010 18:19:47 +0200
changeset 259
a6252f20c559
parent 258
85dc84aeb23f
child 260
2a1b1cf8080a

Document and work around documentation problems.

qt/qt.spec file | annotate | diff | comparison | revisions
     1.1 --- a/qt/qt.spec	Sat Oct 09 11:28:53 2010 +0200
     1.2 +++ b/qt/qt.spec	Sun Oct 10 18:19:47 2010 +0200
     1.3 @@ -43,7 +43,7 @@
     1.4  Group:        Development
     1.5  License:      GPL
     1.6  Version:      4.7.0
     1.7 -Release:      20101008
     1.8 +Release:      20101010
     1.9  
    1.10  #   build options
    1.11  %option       with_tools     yes
    1.12 @@ -505,10 +505,28 @@
    1.13          $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.la
    1.14  %endif
    1.15  
    1.16 +## Doesn't work as expected, because RPM reads the --[in|ex]cludedocs
    1.17 +## argument only when installing binary packages, rather than building.
    1.18 +#%define  _excludedocs 0
    1.19 +#%define  _includedocs 1
    1.20 +#    echo %{_excludedocs}
    1.21 +#    echo %{_includedocs}
    1.22 +#
    1.23 +## Doesn't work as expected, because it seems that OpenPKG too mercilessly
    1.24 +## removes RPM readi1ng of the %docdir keyword in rpm.patch.feature.
    1.25 +#    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    1.26 +#        %{l_files_std} \
    1.27 +#        '%docdir %{l_prefix}/share/pkg/doc'
    1.28 +#
    1.29 +## Doesn't work as expected, because the rpmtool(1) marks
    1.30 +## only einzeln files as documents, skipping directories
    1.31 +#    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    1.32 +#        %{l_files_std} \
    1.33 +#        '%doc %{l_prefix}/share/pkg/doc/doc.txt'
    1.34 +#
    1.35      #   determine internal file listing
    1.36      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    1.37          %{l_files_std} \
    1.38 -        '%doc %{l_prefix}/share/qt/doc/*/*' \
    1.39          '%not %dir %{l_prefix}/lib/pkgconfig'
    1.40  
    1.41  %files -f files

mercurial