diff --git a/README.en.md b/README.en.md index a9e710a30f480e3ecfaea0614d2179496850b40e..9da70e285f6cb3a412614679924adea8ae973d2a 100644 --- a/README.en.md +++ b/README.en.md @@ -4,7 +4,7 @@ The source package `oemaker` has three functions: ISO making and splitting and compile_env making. Accordingly, three software packages are generated: `oemaker` and `isocut` and `envmaker`. -The generated binary RPM `oemaker` is a build tool for making DVD ISOs, including the Standard ISO, Debug ISO, Source ISO, Everything ISO, Everything Source ISO, Everything Debug ISO, and Netinstall ISO. +The generated binary RPM `oemaker` is a build tool for making DVD ISOs, including the Standard ISO, Debug ISO, Source ISO, Everything ISO, Everything Source ISO, Everything Debug ISO, LiveCD ISO, and Netinstall ISO. The generated binary RPM `isocut` is a build tool for ISO splitting, which supports only package-level RPM. @@ -41,7 +41,7 @@ oemaker _[-h] [-t Type] [-p Product] [-v Version] [-r RELEA Optional arguments: - -t ISO type, including standard, debug, source, everything, everything_debug, everything_src, and netinst + -t ISO type, including standard, debug, source, everything, everything_debug, everything_src, livecd, and netinst -p Product name, for example, openEuler @@ -78,6 +78,8 @@ isocut _[-h] [-t temporary path] [-r extern rpm path] [-k k -h Show the help message and exit + -c Cut packages, yes/no, default is yes + isocut 详细文档请查看《镜像裁剪定制工具使用指南》: https://gitee.com/openeuler/docs/blob/9d89e4e41e7824f984ebc7a00b5f1241b84d1f85/docs/zh/docs/Isocut/%E9%95%9C%E5%83%8F%E8%A3%81%E5%89%AA%E5%AE%9A%E5%88%B6%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97.md diff --git a/README.md b/README.md index 943211793d681e40431636f286c26cce0b274ba9..56b07125ac9a72cb64cb4131c40b6f7224ba9730 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ `oemaker`源码包拥有三部分功能:iso 格式光盘映像的制作和裁剪和通用编译环境制作。相应地,`oemaker` 源码包会生成三个软件包:`oemaker` 和 `isocut` 和 `envmaker`。 -生成的二进制 RPM 包 `oemaker` 是用于制作 DVD 光盘映像的构建工具,可制作的映像包括 standard iso、debug iso、source iso、everything iso、everything source iso、everything debug iso 和 netinst iso。 +生成的二进制 RPM 包 `oemaker` 是用于制作 DVD 光盘映像的构建工具,可制作的映像包括 standard iso、debug iso、source iso、everything iso、everything source iso、everything debug iso livecd iso 和 netinst iso。 生成的二进制 RPM 包 `isocut` 是用于裁剪光盘映像的构建工具,支持在 RPM 包级别进行裁剪。 @@ -41,7 +41,7 @@ oemaker _[-h] [-t Type] [-p Product] [-v Version] [-r RELEA Optional arguments: - -t ISO type, including standard, debug, source, everything, everything_debug, everything_src, and netinst + -t ISO type, including standard, debug, source, everything, everything_debug, everything_src, livecd, and netinst -p Product name, for example, openEuler @@ -78,6 +78,8 @@ isocut _[-h] [-t temporary path] [-r extern rpm path] [-k k -h Show the help message and exit + -c Cut packages, yes/no, default is yes + ##### envmaker envmaker _[-p Product] [-v Version]_ diff --git a/desktop_normal_aarch64.xml b/desktop_normal_aarch64.xml new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/desktop_normal_x86_64.xml b/desktop_normal_x86_64.xml new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/oemaker-3.0.4.tar.gz b/oemaker-3.0.4.tar.gz deleted file mode 100644 index 136fdcc733ae4e56d223aa51c3b4e4bccce1fc7e..0000000000000000000000000000000000000000 Binary files a/oemaker-3.0.4.tar.gz and /dev/null differ diff --git a/oemaker-3.1.0.tar.gz b/oemaker-3.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2cdf6e47b49a6f0397ecb26117b639c3eeb61f66 Binary files /dev/null and b/oemaker-3.1.0.tar.gz differ diff --git a/oemaker.spec b/oemaker.spec index 5ded0e2952657db56246e47cf32f8ea09421f17e..199c8aa152646790d19c6215b4a17f162da42ec5 100644 --- a/oemaker.spec +++ b/oemaker.spec @@ -7,11 +7,11 @@ %endif Name: oemaker -Summary: a duilding tool for DVD ISO making and ISO cutting +Summary: a building tool for DVD ISO making and ISO cutting License: Mulan PSL v2 Group: System/Management -Version: 3.0.4 -Release: 3 +Version: 3.1.0 +Release: 1 BuildRoot: %{_tmppath}/%{name} Source: https://gitee.com/openeuler/oemaker/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -20,8 +20,10 @@ Source2: normal_x86_64.xml Source3: rpmlist.xml Source4: edge_normal_aarch64.xml Source5: edge_normal_x86_64.xml +Source6: desktop_normal_aarch64.xml +Source7: desktop_normal_x86_64.xml -Requires: createrepo dnf-plugins-core genisoimage isomd5sum grep bash libselinux-utils libxml2 +Requires: createrepo dnf-plugins-core genisoimage isomd5sum grep bash libselinux-utils libxml2 anaconda libselinux-utils Requires: lorax >= 19.6.78-1 # Patch here @@ -57,15 +59,22 @@ rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/edge_norm cp %{SOURCE4} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/edge_normal.xml rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/edge_normal.xml cp %{SOURCE5} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/edge_normal.xml +rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/desktop_normal.xml +cp %{SOURCE6} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/aarch64/desktop_normal.xml +rm -rf %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/desktop_normal.xml +cp %{SOURCE7} %{_builddir}/%{name}-%{version}/%{name}/isomaker/config/x86_64/desktop_normal.xml cd %{_builddir}/%{name}-%{version}/%{name} %autopatch -p1 %install +sys_arch=$(uname -m) 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/config/${sys_arch} +mkdir -p %{buildroot}/opt/oemaker/config/${sys_arch}/livecd/live/config_files/${sys_arch} +mkdir -p %{buildroot}/opt/oemaker/config/common +mkdir -p %{buildroot}/opt/oemaker/config/common/livecd/live mkdir -p %{buildroot}/opt/oemaker/docs mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_sysconfdir}/isocut @@ -81,38 +90,46 @@ install -m 700 %{name}/isomaker/rpm.sh %{buildroot}/opt/oemaker/rpm.sh install -m 700 %{name}/isomaker/env_record.sh %{buildroot}/opt/oemaker/env_record.sh install -m 700 %{name}/isomaker/env_restore.sh %{buildroot}/opt/oemaker/env_restore.sh install -m 400 %{name}/isomaker/config/rpmlist.xml %{buildroot}/opt/oemaker/config/rpmlist.xml -install -m 400 %{name}/isomaker/config/x86_64/* %{buildroot}/opt/oemaker/config/x86_64/ -install -m 400 %{name}/isomaker/config/aarch64/* %{buildroot}/opt/oemaker/config/aarch64/ +install -m 640 %{name}/isomaker/config/${sys_arch}/livecd/live/config_files/${sys_arch}/* %{buildroot}/opt/oemaker/config/${sys_arch}/livecd/live/config_files/${sys_arch}/ +install -m 400 %{name}/isomaker/config/${sys_arch}/livecd/livecd_${sys_arch}.ks %{buildroot}/opt/oemaker/config/${sys_arch}/livecd/livecd_${sys_arch}.ks +install -m 600 %{name}/isomaker/config/${sys_arch}/livecd/rpmlist %{buildroot}/opt/oemaker/config/${sys_arch}/livecd/rpmlist +install -m 400 %{name}/isomaker/config/${sys_arch}/desktop_normal.xml %{buildroot}/opt/oemaker/config/${sys_arch}/desktop_normal.xml +install -m 400 %{name}/isomaker/config/${sys_arch}/edge_normal.xml %{buildroot}/opt/oemaker/config/${sys_arch}/edge_normal.xml +install -m 400 %{name}/isomaker/config/${sys_arch}/normal.xml %{buildroot}/opt/oemaker/config/${sys_arch}/normal.xml +install -m 400 %{name}/isomaker/config/${sys_arch}/standard.conf %{buildroot}/opt/oemaker/config/${sys_arch}/standard.conf +%ifarch x86_64 +install -m 700 %{name}/isomaker/config/x86_64/livecd/live/x86.tmpl %{buildroot}/opt/oemaker/config/x86_64/livecd/live/x86.tmpl +install -m 400 %{name}/isomaker/config/x86_64/ks.cfg %{buildroot}/opt/oemaker/config/x86_64/ks.cfg +%else +install -m 700 %{name}/isomaker/config/aarch64/livecd/live/aarch64.tmpl %{buildroot}/opt/oemaker/config/aarch64/livecd/live/aarch64.tmpl +%endif +install -m 700 %{name}/isomaker/config/common/livecd/live/* %{buildroot}/opt/oemaker/config/common/livecd/live/ +install -m 400 %{name}/isomaker/config/common/livecd/root_pwd %{buildroot}/opt/oemaker/config/common/livecd/root_pwd install -m 700 %{name}/isomaker/docs/* %{buildroot}/opt/oemaker/docs/ -cp -a %{name}/isomaker/80-openeuler %{buildroot}/opt/oemaker/ +cp -ar %{name}/isomaker/80-openeuler %{buildroot}/opt/oemaker/ + +cp -ar %{buildroot}/opt/oemaker/config/common/* %{buildroot}/opt/oemaker/config/${sys_arch}/ install -m 550 %{name}/isocut/isocut.py %{buildroot}/%{_bindir}/isocut install -m 600 %{name}/isocut/config/repodata.template %{buildroot}/%{_sysconfdir}/isocut/ -%if 0%{?efi_aa64} - install -m 600 %{name}/isocut/config/aarch64/rpmlist %{buildroot}/%{_sysconfdir}/isocut/ - install -m 600 %{name}/isocut/config/aarch64/anaconda-ks.cfg %{buildroot}/%{_sysconfdir}/isocut/ -%endif -%if 0%{?efi_x64} - install -m 600 %{name}/isocut/config/x86_64/rpmlist %{buildroot}/%{_sysconfdir}/isocut/ - install -m 600 %{name}/isocut/config/x86_64/anaconda-ks.cfg %{buildroot}/%{_sysconfdir}/isocut/ -%endif +install -m 600 %{name}/isocut/config/${sys_arch}/rpmlist %{buildroot}/%{_sysconfdir}/isocut/ +install -m 600 %{name}/isocut/config/${sys_arch}/anaconda-ks.cfg %{buildroot}/%{_sysconfdir}/isocut/ + mkdir -p %{buildroot}/opt/envmaker mkdir -p %{buildroot}/opt/envmaker/config -mkdir -p %{buildroot}/opt/envmaker/config/x86_64 -mkdir -p %{buildroot}/opt/envmaker/config/aarch64 +mkdir -p %{buildroot}/opt/envmaker/config/${sys_arch} mkdir -p %{buildroot}/opt/envmaker/utils install -m 700 %{name}/envmaker/envmaker.sh %{buildroot}/opt/envmaker/envmaker.sh install -m 700 %{name}/envmaker/utils/chroot.sh %{buildroot}/opt/envmaker/utils/chroot.sh install -m 700 %{name}/envmaker/utils/common_fun.sh %{buildroot}/opt/envmaker/utils/common_fun.sh install -m 700 %{name}/envmaker/utils/parse_rpmlist_xml.sh %{buildroot}/opt/envmaker/utils/parse_rpmlist_xml.sh -install -m 400 %{name}/envmaker/config/aarch64/openEuler_repo.conf %{buildroot}/opt/envmaker/config/aarch64/openEuler_repo.conf -install -m 400 %{name}/envmaker/config/x86_64/openEuler_repo.conf %{buildroot}/opt/envmaker/config/x86_64/openEuler_repo.conf -install -m 400 %{name}/envmaker/config/compile_env_rpmlist.xml %{buildroot}/opt/envmaker/config/compile_env_rpmlist.xml +install -m 600 %{name}/envmaker/config/${sys_arch}/openEuler_repo.conf %{buildroot}/opt/envmaker/config/${sys_arch}/openEuler_repo.conf +install -m 600 %{name}/envmaker/config/compile_env_rpmlist.xml %{buildroot}/opt/envmaker/config/compile_env_rpmlist.xml %pre @@ -155,7 +172,12 @@ rm -rf %{buildroot} rm -rf $RPM_BUILD_DIR/%{name} %changelog -* Mon Nov 20 2023 zhangchenfeng - 3.0.4-3 +* Mon Nov 20 2023 chenhuihan - 3.1.0-1 +- ID:NA +- SUG:NA +- DESC: support for livecd and isocut optimize + +* Mon Nov 20 2023 zhongjiawei - 3.0.4-6 - ID:NA - SUG:NA - DESC: update rpmlist.xml docker-runc package name tobe runc