koji编包解决noarch包不同架构doc文件不同的问题记录

BuildError: mismatch when analyzing grantlee-apidocs-0.4.0-7.nd7.1.noarch.rpm, rpmdiff output was:
*******************************
   30  mkdir do4mismatch-doc
   31  cd do4mismatch-doc/
   32  ls
   33  mkdir grantlee
   34  ls
   35  cd grantlee/
   36  ls
   37  mkdir x86
   38  mkdir mips64el
   39  cd mips64el/
   40  ls
   41  wget http://***/kojifiles/work/tasks/9860/19860/grantlee-apidocs-0.4.0-7.nd7.1.noarch.rpm
   42  mv grantlee-apidocs-0.4.0-7.nd7.1.noarch.rpm ../x86/
   43  wget http://***/kojifiles/work/tasks/9861/19861/grantlee-apidocs-0.4.0-7.nd7.1.noarch.rpm
   44  cd ..
   45  ls
   46  wget http://***/kojifiles/work/tasks/9860/19860/grantlee-0.4.0-7.nd7.1.src.rpm
   47  rpm -ivh grantlee-0.4.0-7.nd7.1.src.rpm 
   48  ls
   49  cd x86/
   59  ls
   60  rpm2cpio grantlee-apidocs-0.4.0-7.nd7.1.noarch.rpm | cpio -ivd
   61  cd ../mips64el/
   62  rpm2cpio grantlee-apidocs-0.4.0-7.nd7.1.noarch.rpm | cpio -ivd
   64  cd ..
   76  mkdir newdoc
   77  cd newdoc/
   78  cp -r ../mips64el/usr/share/doc/HTML/en/grantlee-apidocs/* .
   79  cp -r ../x86/usr/share/doc/HTML/en/grantlee-apidocs/* .
   80  ls | wc -l 
   81  ls ../mips64el/usr/share/doc/HTML/en/grantlee-apidocs/ | wc -l
   82  ls ../x86/usr/share/doc/HTML/en/grantlee-apidocs/ | wc -l

*********************************
   83  cd 
   379  ll
   380  cd rpmbuild/SOURCES/
   384  tar -jxvf polkit-qt-1-0.112.0.tar.bz2 
   385  cd polkit-qt-1-0.112.0/
   386  cp -r ~/do4mismatch-doc/polkit-qt/newdoc .
   388  cd ..
   389  tar -jcvf polkit-qt-1-0.112.0.tar.bz2 polkit-qt-1-0.112.0

*********************************
   83  cd
   84  cd rpmbuild/SPECS/
   85  ls 
   89  wzzrpmdev-bumpspec grantlee.spec 
   90  vim grantlee.spec 
#########################################

修改changelog:add newdoc in Source0
找到修改的包:如apidocs,则找到 %package apidocs然后往下找,找到%install看一下,找到 %files apidocs 把文件目录改成现有的newdoc。
例子1:    cp -r %{_target_platform}/newdoc/* %{buildroot}%{_docdir}/HTML/en/grantlee-apidocs
例子2:
    %files doc
    #%doc html/*         原本的
    %doc newdoc/*        新改的

#########################################
   97  sudo yum-builddep ./grantlee.spec    #装依赖
  296  rpmbuild -ba grantlee.spec          #本地试编包
  297  rpm -qpl ~/rpmbuild/RPMS/noarch/polkit-qt-doc-0.112.0-2.nd7.2.noarch.rpm    #查看包对不对
  298  rpmbuild -bs grantlee.spec          #生成srpm包
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值