Package init
This commit is contained in:
parent
045eb98dda
commit
66fa142803
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# boom-boot
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### 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/)
|
||||
38
README.md
38
README.md
@ -1,39 +1 @@
|
||||
# boom-boot
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
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/)
|
||||
|
||||
BIN
boom-0.9.tar.gz
Normal file
BIN
boom-0.9.tar.gz
Normal file
Binary file not shown.
167
boom-boot.spec
Normal file
167
boom-boot.spec
Normal file
@ -0,0 +1,167 @@
|
||||
Name: boom-boot
|
||||
Version: 0.9
|
||||
Release: 5
|
||||
Summary: libraries and files for helping boot loger entries
|
||||
License: GPLv2
|
||||
URL: https://github.com/bmr-cymru/boom
|
||||
Source0: https://github.com/bmr-cymru/boom/archive/%{version}/boom-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python2-setuptools python3-setuptools python2-devel python3-devel python2-sphinx python3-sphinx
|
||||
|
||||
Patch9000: fix-compile-error-about-sphinx-build.patch
|
||||
|
||||
Requires: python3-boom %{name}-conf
|
||||
|
||||
%package -n python2-boom
|
||||
Summary: libraries and files for helping boot loger entries
|
||||
%{?python_provide:%python_provide python2-boom}
|
||||
Requires: python2
|
||||
Recommends: lvm2 %{name}-conf
|
||||
|
||||
%package -n python3-boom
|
||||
Summary: libraries and files for helping boot loger entries
|
||||
%{?python_provide:%python_provide python3-boom}
|
||||
Requires: python3
|
||||
Recommends: lvm2 %{name}-conf
|
||||
|
||||
# The python3-boom and no boom only here to tell boom package in fedora and
|
||||
# boom package in copr apart
|
||||
Conflicts: boom
|
||||
|
||||
%package conf
|
||||
Summary: libraries and files for helping boot loger entries
|
||||
|
||||
%package grub2
|
||||
Summary: libraries and files for helping boot loger entries
|
||||
|
||||
%description
|
||||
In Linux systems, there is a boot manager that support BootLoader Specification
|
||||
for boot entry configuration, that is Boom.
|
||||
|
||||
Boom requires a BLS-compatible boot loader to run:
|
||||
systemd-boot project or Grub2 with BLS patch (Red Hat Grub2 build
|
||||
(This support is included in both Red Hat Enterprise Linux 7 and Fedora).
|
||||
|
||||
%description -n python2-boom
|
||||
In Linux systems, there is a boot manager that support BootLoader Specification
|
||||
for boot entry configuration, that is Boom.
|
||||
|
||||
Boom requires a BLS-compatible boot loader to run:
|
||||
systemd-boot project or Grub2 with BLS patch (Red Hat Grub2 build
|
||||
(This support is included in both Red Hat Enterprise Linux 7 and Fedora).
|
||||
|
||||
This package contains python2 boom module
|
||||
|
||||
%description -n python3-boom
|
||||
In Linux systems, there is a boot manager that support BootLoader Specification
|
||||
for boot entry configuration, that is Boom.
|
||||
|
||||
Boom requires a BLS-compatible boot loader to run:
|
||||
systemd-boot project or Grub2 with BLS patch (Red Hat Grub2 build
|
||||
(This support is included in both Red Hat Enterprise Linux 7 and Fedora).
|
||||
|
||||
This package contains python3 boom module.
|
||||
|
||||
%description conf
|
||||
In Linux systems, there is a boot manager that support BootLoader Specification
|
||||
for boot entry configuration, that is Boom.
|
||||
|
||||
Boom requires a BLS-compatible boot loader to run:
|
||||
systemd-boot project or Grub2 with BLS patch (Red Hat Grub2 build
|
||||
(This support is included in both Red Hat Enterprise Linux 7 and Fedora).
|
||||
|
||||
This package contains configuration files for boom.
|
||||
|
||||
%description grub2
|
||||
In Linux systems, there is a boot manager that support BootLoader Specification
|
||||
for boot entry configuration, that is Boom.
|
||||
|
||||
Boom requires a BLS-compatible boot loader to run:
|
||||
systemd-boot project or Grub2 with BLS patch (Red Hat Grub2 build
|
||||
(This support is included in both Red Hat Enterprise Linux 7 and Fedora).
|
||||
|
||||
This package contains integration scripts for grub2 bootloader.
|
||||
|
||||
%package help
|
||||
Summary:libraries and files for helping boot loger entries
|
||||
|
||||
%description help
|
||||
document files for %{name}
|
||||
|
||||
%prep
|
||||
%autosetup -n boom-%{version} -p1
|
||||
|
||||
%build
|
||||
make -C doc html
|
||||
rm doc/_build/html/.buildinfo
|
||||
mv doc/_build/html doc/html
|
||||
rm -r doc/_build
|
||||
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
# Install Grub2 integration scripts
|
||||
mkdir -p ${RPM_BUILD_ROOT}/etc/grub.d
|
||||
mkdir -p ${RPM_BUILD_ROOT}/etc/default
|
||||
install -m 755 etc/grub.d/42_boom ${RPM_BUILD_ROOT}/etc/grub.d
|
||||
install -m 644 etc/default/boom ${RPM_BUILD_ROOT}/etc/default
|
||||
|
||||
# Make configuration directories
|
||||
# mode 0700 - in line with /boot/grub2 directory:
|
||||
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/profiles
|
||||
install -d -m 700 ${RPM_BUILD_ROOT}/boot/loader/entries
|
||||
install -m 644 examples/boom.conf ${RPM_BUILD_ROOT}/boot/boom
|
||||
|
||||
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
|
||||
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man5
|
||||
install -m 644 man/man8/boom.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8
|
||||
install -m 644 man/man5/boom.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
|
||||
|
||||
rm doc/Makefile doc/conf.py
|
||||
|
||||
# Test suite currently does not operate in rpmbuild environment
|
||||
#%%check
|
||||
#%%{__python3} setup.py test
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.md
|
||||
%{_bindir}/boom
|
||||
%doc %{_mandir}/man*/boom.*
|
||||
|
||||
%files -n python2-boom
|
||||
%license COPYING
|
||||
%{python2_sitelib}/*
|
||||
|
||||
%files -n python3-boom
|
||||
%license COPYING
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files conf
|
||||
%license COPYING
|
||||
%dir /boot/boom
|
||||
%config(noreplace) /boot/boom/boom.conf
|
||||
%dir /boot/boom/profiles
|
||||
%dir /boot/loader/entries
|
||||
|
||||
%files grub2
|
||||
%license COPYING
|
||||
%{_sysconfdir}/grub.d/42_boom
|
||||
%config(noreplace) %{_sysconfdir}/default/boom
|
||||
|
||||
%files help
|
||||
%doc %{_mandir}/man*/boom.*
|
||||
%doc doc
|
||||
%doc examples
|
||||
%doc tests
|
||||
%doc README.md
|
||||
|
||||
%changelog
|
||||
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.9-5
|
||||
- Package init
|
||||
26
fix-compile-error-about-sphinx-build.patch
Normal file
26
fix-compile-error-about-sphinx-build.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From b9b8b93f9f388211d90e468dc4c13fdbe73795c4 Mon Sep 17 00:00:00 2001
|
||||
From: wangjia <wangjia55@huawei.com>
|
||||
Date: Wed, 2 Jan 2019 13:18:50 +0000
|
||||
Subject: [PATCH] boom-boot: fix compile error about sphinx-build
|
||||
reason: fix compile error.
|
||||
---
|
||||
doc/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/doc/Makefile b/doc/Makefile
|
||||
index 6e02dee..662d873 100644
|
||||
--- a/doc/Makefile
|
||||
+++ b/doc/Makefile
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
-SPHINXBUILD = sphinx-build
|
||||
+SPHINXBUILD = sphinx-build-3
|
||||
PAPER =
|
||||
BUILDDIR = _build
|
||||
|
||||
--
|
||||
2.19.1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user