]> TLD Linux GIT Repositories - packages/rpm.git/blob - rpm-compress-doc.patch
90fa456da5fd690324ed9e93de7e4406a2958de7
[packages/rpm.git] / rpm-compress-doc.patch
1 --- rpm-4.4.8/build/files.c.orig        2007-02-01 23:21:51.000000000 +0100
2 +++ rpm-4.4.8/build/files.c     2007-04-08 16:10:27.849202243 +0200
3 @@ -1044,6 +1044,16 @@
4             appendStringBuf(pkg->specialDoc, "cp -pr ");
5             appendStringBuf(pkg->specialDoc, specialDocBuf);
6             appendLineStringBuf(pkg->specialDoc, " \"$DOCDIR\"");
7 +
8 +           {
9 +               char *compress_doc;
10 +
11 +               compress_doc = rpmExpand("%{__compress_doc}", NULL);
12 +               if (compress_doc && *compress_doc != '%')
13 +                   appendLineStringBuf(pkg->specialDoc, compress_doc);
14 +               if (compress_doc)
15 +                 free(compress_doc);
16 +           }
17         }
18      }
19  
20 --- rpm-4.5/platform.in~        2008-04-13 02:54:35.000000000 +0300
21 +++ rpm-4.5/platform.in 2008-10-27 09:10:32.381772729 +0200
22 @@ -67,7 +67,7 @@
23  %{nil}
24  
25  # Executed after copying %doc to DOCDIR, with $DOCDIR set
26 -#%__compress_doc               @prefix@/lib/rpm/compress-doc%{?_noautocompressdoc: --noautocompressdoc='%{_noautocompressdoc}'}
27 +%__compress_doc                @prefix@/lib/rpm/compress-doc%{?_noautocompressdoc: --noautocompressdoc='%{_noautocompressdoc}'}
28  
29  @redhat@#---------------------------------------------------------------------
30  @redhat@#      Expanded at end of %prep