package init
This commit is contained in:
parent
a620d6e06c
commit
07b6e46f27
76
README.en.md
76
README.en.md
@ -1,36 +1,40 @@
|
|||||||
# oemaker
|
# oemaker
|
||||||
|
|
||||||
#### Description
|
#### Description
|
||||||
a building tool for making DVD iso
|
|
||||||
|
`oemaker` is a building tool for making DVD iso, include standard iso, debug iso and source iso.
|
||||||
#### Software Architecture
|
`oemaker` uses local arch when building, did not support cross building.
|
||||||
Software architecture description
|
currently, `oemaker` support the arch of aarch64 and x86_64 for iso making.
|
||||||
|
|
||||||
#### Installation
|
#### Installation
|
||||||
|
|
||||||
1. xxxx
|
To install `oemaker`, you can use `rpm` or `dnf` package manager command with openEuler repository.
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
Install oemaker with dnf
|
||||||
|
```sh
|
||||||
#### Instructions
|
dnf install -y oemaker
|
||||||
|
```
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
#### Instructions
|
||||||
3. xxxx
|
|
||||||
|
Generally, the disk space is more than 50g
|
||||||
#### Contribution
|
|
||||||
|
#### Contribution
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
oemaker <font color=#0000FF >_[-h] [-t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]_</font>
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
optional arguments:
|
||||||
|
-t Type
|
||||||
|
ISO Type include standard debug and source
|
||||||
#### Gitee Feature
|
|
||||||
|
-p Product
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
Product Name, such as: openEuler
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
-v Version
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
version identifier
|
||||||
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/)
|
-r RELEASE
|
||||||
|
release information
|
||||||
|
|
||||||
|
-s REPOSITORY
|
||||||
|
source dnf repository address link(may be listed multiple times)
|
||||||
|
|||||||
80
README.md
80
README.md
@ -1,37 +1,43 @@
|
|||||||
# oemaker
|
# oemaker
|
||||||
|
|
||||||
#### 介绍
|
#### 介绍
|
||||||
a building tool for making DVD iso
|
oemaker是一款用于构建DVD iso的工具,包括标准iso,debug iso和source iso等。
|
||||||
|
oemaker采用的是本地架构的方式进行构建,不支持交叉编译环境构建。
|
||||||
#### 软件架构
|
目前,oemkaer支持aarch64和x86_64两个架构的iso制作。
|
||||||
软件架构说明
|
|
||||||
|
#### 安装教程
|
||||||
|
|
||||||
#### 安装教程
|
可以用rpm命令或dnf包管理命令通过openEuler repository安装oemaker包。
|
||||||
|
|
||||||
1. xxxx
|
用dnf命令安装方式:
|
||||||
2. xxxx
|
```sh
|
||||||
3. xxxx
|
dnf install -y oemaker
|
||||||
|
```
|
||||||
#### 使用说明
|
|
||||||
|
#### 使用说明
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
一般要求磁盘空间大于50G
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
#### 使用方法
|
||||||
|
|
||||||
1. Fork 本仓库
|
oemaker <font color=#0000FF >_[-h] [-t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]_</font>
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
optional arguments:
|
||||||
4. 新建 Pull Request
|
-t Type
|
||||||
|
ISO Type include standard debug and source
|
||||||
|
|
||||||
#### 码云特技
|
-p Product
|
||||||
|
Product Name, such as: openEuler
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
-v Version
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
version identifier
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
-r RELEASE
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
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
BIN
oemaker-1.0.0.tar.gz
Normal file
Binary file not shown.
68
oemaker.spec
Normal file
68
oemaker.spec
Normal 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
5
oemaker.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://gitee.com/openeuler/oemaker
|
||||||
|
version_control: gitee
|
||||||
|
src_repo: openeuler/oemaker
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user