Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
openeuler_risc-v_obs [2022/02/24 15:32] misaka00251openeuler_risc-v_obs [2023/04/28 02:25] (current) – [基于 OBS 构建 RPM 包] Add newer method misaka00251
Line 45: Line 45:
 首先安装 osc 软件包: ''dnf install osc'' 首先安装 osc 软件包: ''dnf install osc''
  
-osc 的凭据位置为 ''~/.oscrc'',进行以下配置:+osc 的凭据位置为 ''~/.config/osc/oscrc'',进行以下配置:
  
 <file oscrc .oscrc> <file oscrc .oscrc>
Line 87: Line 87:
         <param name="archive">*.tar</param>         <param name="archive">*.tar</param>
         <param name="files">*/*</param>         <param name="files">*/*</param>
 +    </service>
 +</services>
 +</code>
 +
 +这里还有另一种更好的写法:
 +
 +<code>
 +<services>
 +    <service name="tar_scm">
 +      <param name="scm">git</param>
 +      <param name="url">git@gitee.com:misaka00251/nano.git</param>
 +      <param name="revision">master</param>
 +      <param name="exclude">*</param>
 +      <param name="extract">*</param>
     </service>     </service>
 </services> </services>
Line 155: Line 169:
 </code> </code>
  
-修改源代码和 spec 文件之后,提交刀 OBS 服务器进行构建:+修改源代码和 spec 文件之后,提交到 OBS 服务器进行构建:
  
 <code> <code>
Line 211: Line 225:
 </code> </code>
  
 +==== 创建 subproject ====
 +
 +假设我要在 home:misaka00251 下创建一个 Subproject 叫 NewMeta,可以新建一个文件:
 +
 +<file test>
 +<project name="home:misaka00251:NewMeta">
 +  <title/>
 +  <description/>
 +  <person userid="misaka00251" role="maintainer"/>
 +  <publish>
 +    <enable/>
 +  </publish>
 +  <useforbuild>
 +    <disable/>
 +  </useforbuild>
 +  <repository name="AmogOS">
 +    <path project="openEuler:Mainline:RISC-V" repository="standard_riscv64"/>
 +    <arch>riscv64</arch>
 +  </repository>
 +</project>
 +</file>
  
 +然后使用 ''osc meta prj home:misaka00251:NewMeta --file=test'' 就可以啦~