diff --git a/README.en.md b/README.en.md index 316a1fd19aa8852ef5f3b4f7e5d58cd5204c86f2..bb395ac935bdf52e85e8d7045ac9cb47ae1d05e9 100644 --- a/README.en.md +++ b/README.en.md @@ -1,36 +1,40 @@ -# oemaker - -#### Description -a building tool for making DVD iso - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +# oemaker + +#### Description + +`oemaker` is a building tool for making DVD iso, include standard iso, debug iso and source iso. +`oemaker` uses local arch when building, did not support cross building. +currently, `oemaker` support the arch of aarch64 and x86_64 for iso making. + +#### Installation + +To install `oemaker`, you can use `rpm` or `dnf` package manager command with openEuler repository. + +Install oemaker with dnf +```sh +dnf install -y oemaker +``` + +#### Instructions + +Generally, the disk space is more than 50g + +#### Contribution + +oemaker _[-h] [-t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]_ + + optional arguments: + -t Type + ISO Type include standard debug and source + + -p Product + Product Name, such as: openEuler + + -v Version + version identifier + + -r RELEASE + release information + + -s REPOSITORY + source dnf repository address link(may be listed multiple times) diff --git a/README.md b/README.md index 11cdff640a962abc2c276c9b6137c86c6630cad1..04b3cbe27265928a5ca37a8e1d53f51fc727b37d 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,43 @@ -# oemaker - -#### 介绍 -a building tool for making DVD iso - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +# oemaker + +#### 介绍 +oemaker是一款用于构建DVD iso的工具,包括标准iso,debug iso和source iso等。 +oemaker采用的是本地架构的方式进行构建,不支持交叉编译环境构建。 +目前,oemkaer支持aarch64和x86_64两个架构的iso制作。 + +#### 安装教程 + +可以用rpm命令或dnf包管理命令通过openEuler repository安装oemaker包。 + +用dnf命令安装方式: +```sh +dnf install -y oemaker +``` + +#### 使用说明 + +一般要求磁盘空间大于50G + + +#### 使用方法 + +oemaker _[-h] [-t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]_ + + optional arguments: + -t Type + ISO Type include standard debug and source + + -p Product + Product Name, such as: openEuler + + -v Version + version identifier + + -r RELEASE + release information + + -s REPOSITORY + source dnf repository address link(may be listed multiple times) + + -h + show the help message and exit diff --git a/oemaker-1.0.0.tar.gz b/oemaker-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9054c4d35cffaeaaaf01c0229ae7b479cfa9e94b Binary files /dev/null and b/oemaker-1.0.0.tar.gz differ diff --git a/oemaker.spec b/oemaker.spec new file mode 100644 index 0000000000000000000000000000000000000000..b6c13cae8471a813a875fcb2d3008447db7328c9 --- /dev/null +++ b/oemaker.spec @@ -0,0 +1,68 @@ +Name: oemaker +Summary: a duilding tool for making DVD ISO +License: GPL +Group: System/Management +Version: 1.0.0 +Release: 1 +BuildRoot: %{_tmppath}/%{name} +Source: %{name}-%{version}.tar.gz +BuildArch: noarch +Requires: createrepo dnf-plugins-core genisoimage isomd5sum grep bash libselinux-utils libxml2 +Requires: lorax >= 19.6.78-1 +%description +a building tool for making DVD ISO + +%prep + +%setup -c + +%install +mkdir -p %{buildroot}/opt/ +mkdir -p %{buildroot}/opt/oemaker +mkdir -p %{buildroot}/opt/oemaker/config +mkdir -p %{buildroot}/opt/oemaker/config/x86_64 +mkdir -p %{buildroot}/opt/oemaker/config/aarch64 +mkdir -p %{buildroot}/opt/oemaker/docs + +cd %{name} +install -m 700 oemaker.sh %{buildroot}/opt/oemaker/oemaker.sh +install -m 700 make_debug.sh %{buildroot}/opt/oemaker/make_debug.sh +install -m 700 img_repo.sh %{buildroot}/opt/oemaker/img_repo.sh +install -m 700 init.sh %{buildroot}/opt/oemaker/init.sh +install -m 700 iso.sh %{buildroot}/opt/oemaker/iso.sh +install -m 700 rpm.sh %{buildroot}/opt/oemaker/rpm.sh +install -m 400 config/rpmlist.xml %{buildroot}/opt/oemaker/config/rpmlist.xml +install -m 400 config/x86_64/* %{buildroot}/opt/oemaker/config/x86_64/ +install -m 400 config/aarch64/* %{buildroot}/opt/oemaker/config/aarch64/ +install -m 700 docs/* %{buildroot}/opt/oemaker/docs/ +cp -a 80-openeuler %{buildroot}/opt/oemaker/ +cd - + +%pre + +%post +ln -s /opt/oemaker/oemaker.sh /bin/oemaker + +%preun + +%postun +rm -r /bin/oemaker +rm -rf /opt/oemaker + + +%files +%defattr(-,root,root) +%dir /opt +%dir /opt/oemaker +/opt/oemaker/* + +%clean +rm -rf $RPM_BUILD_ROOT/* +rm -rf %{buildroot} +rm -rf $RPM_BUILD_DIR/%{name} + +%changelog +* Sat Jul 25 2020 zhuchunyi - 1.0.0-1 +- ID:NA +- SUG:NA +- DESC:package init diff --git a/oemaker.yaml b/oemaker.yaml new file mode 100644 index 0000000000000000000000000000000000000000..449b69a00602c444a02d0f3423971630733ed246 --- /dev/null +++ b/oemaker.yaml @@ -0,0 +1,5 @@ +git_url: https://gitee.com/openeuler/oemaker +version_control: gitee +src_repo: openeuler/oemaker +tag_prefix: "^v" +seperator: "."