package init

This commit is contained in:
zhuchunyi 2020-08-07 15:26:11 +08:00
parent a620d6e06c
commit 07b6e46f27
5 changed files with 156 additions and 73 deletions

View File

@ -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 <font color=#0000FF >_[-h] [-t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]_</font>
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)

View File

@ -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的工具包括标准isodebug iso和source iso等。
oemaker采用的是本地架构的方式进行构建不支持交叉编译环境构建。
目前oemkaer支持aarch64和x86_64两个架构的iso制作。
#### 安装教程
可以用rpm命令或dnf包管理命令通过openEuler repository安装oemaker包。
用dnf命令安装方式
```sh
dnf install -y oemaker
```
#### 使用说明
一般要求磁盘空间大于50G
#### 使用方法
oemaker <font color=#0000FF >_[-h] [-t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]_</font>
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

BIN
oemaker-1.0.0.tar.gz Normal file

Binary file not shown.

68
oemaker.spec Normal file
View File

@ -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 <zhuchunyi@huawei.com> - 1.0.0-1
- ID:NA
- SUG:NA
- DESC:package init

5
oemaker.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://gitee.com/openeuler/oemaker
version_control: gitee
src_repo: openeuler/oemaker
tag_prefix: "^v"
seperator: "."