修包笔记

This is an old revision of the document!


修包笔记

编写任何文件时,希望各位在文件末尾 add a new line,方便自己和他人,更方便强迫症患者。

yaml

建仓的时候除了 spec 文件和源码,一定要包含一个 yaml 文件。如果 version_controlgit,那么 src_repo 就要填写完整的地址。

version_control: github
src_repo: KDE/kweathercore
tag_prefix: "^v"
separator: "."

upstream 源码包名字跟仓内不一样

以 aom 包为例:

Source0:    https://aomedia.googlesource.com/%{name}/+archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz

KDE 系列包

目前有宏了,之前没有宏的话需要这样:

%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
%make_build -C %{_target_platform}

%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}

单 part 执行

su - abuild

For prep:
rpmbuild -bp --define "_srcdefattr (-.root,root)" --nosignature --short-circuit /home/abuild/rpmbuild/SOURCES/texlive-base.spec

For compile:
rpmbuild -bc --define "_srcdefattr (-.root,root)" --nosignature --short-circuit /home/abuild/rpmbuild/SOURCES/texlive-base.spec

For install:
rpmbuild -bi --define "_srcdefattr (-.root,root)" --nosignature --short-circuit /home/abuild/rpmbuild/SOURCES/texlive-base.spec

For wrote rpm:
rpmbuild -bb --define "_srcdefattr (-.root,root)" --nosignature --short-circuit /home/abuild/rpmbuild/SOURCES/texlive-base.spec

For files(but check):
rpmbuild -bl --define "_srcdefattr (-.root,root)" --nosignature --short-circuit /home/abuild/rpmbuild/SOURCES/texlive-base.spec

For all:
rpmbuild -ba --define "_srcdefattr (-.root,root)" --nosignature --short-circuit /home/abuild/rpmbuild/SOURCES/texlive-base.spec
openeuler_risc-v-fixing.1703060709.txt.gz · Last modified: 2023/12/20 08:25 by misaka00251
CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International