Personal tools
You are here: Home 开发 sp2 devel guide
Document Actions

sp2 devel guide

by jiangchanglong last modified 2005-12-14 10:58

sp2 开发指南

1。安装 sp2 开发版:安装指南

2。修改 /etc/apt/sources.list 为如下内容:

rpm http://192.168.28.185 cocreate 2005sp2 update
rpm-src http://192.168.28.185 cocreate 2005sp2 update

也可以直接打开“系统设置”中的“Synaptic Package Manager”设置软件库。

3。通过 synaptic 安装 subversion

4。取出当前系统的 specs 文件

svn co http://192.168.28.1/repos/specs/trunk ~/specs

5。取出开发用的辅助脚本

svn co http://192.168.28.1/repos/cc-build-tools/trunk ~/cc-build-tools

提示:建议把常用脚本连接到 ~/bin 下,方便使用。

6。获取一个包的 src.rpm 包,比如 scim

apt-get source scim

这时会自动从 apt 仓库中下载 scim 最新版本的 src.rpm 到当前目录,并自动安装到系统中。

如果要下载指定版本的 scim,首先查询已有的版本:

apt-cache show scim

Package: scim
Section: System Environment/Libraries
Installed Size: 4185
Maintainer:
Version: 1.4.2-7
...

Package: scim
Section: System Environment/Libraries
Installed Size: 4185
Maintainer:
Version: 1.4.2-6
...

安装版本为 1.4.2-6 的 scim 源码包:

apt-get source scim=1.4.2-6
7。在本地修改好 spec 文件和 patch 后,复制到 ~/specs/scim/ 下,然后提交到仓库,执行如下命令:
cd ~/specs/scim
svn ci -m "更新说明"

请在"更新说明"中填写适当的内容来描述此次变动的说明。


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: