boom-boot/boom-boot.spec
lyn1001 55cf72e2d8 Add cache and hosts directories
(cherry picked from commit 634301916b70a4f8f4ff178f963853d96518817c)
2023-12-06 17:15:30 +08:00

165 lines
4.7 KiB
RPMSpec

Name: boom-boot
Version: 1.3
Release: 3
Summary: libraries and files for helping boot loger entries
License: GPL-2.0-only
URL: https://github.com/bmr-cymru/boom
Source0: https://github.com/snapshotmanager/boom/archive/%{version}/boom-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-setuptools python3-devel python3-sphinx
Patch9000: fix-compile-error-about-sphinx-build.patch
Requires: python3-boom %{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
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 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
%py3_build
%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/boom/hosts
install -d -m 700 ${RPM_BUILD_ROOT}/boot/loader/entries
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/cache
install -m 644 examples/boom.conf ${RPM_BUILD_ROOT}/boot/boom
install -m 644 examples/profiles/*.profile ${RPM_BUILD_ROOT}/boot/boom/profiles
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 python3-boom
%license COPYING
%{python3_sitelib}/*
%files conf
%license COPYING
%dir /boot/boom
%config(noreplace) /boot/boom/boom.conf
%config(noreplace) /boot/boom/profiles/*
%dir /boot/boom/hosts
%dir /boot/boom/cache
%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 Dec 6 2023 liyanan <liyanan61@h-partners.com> - 1.3-3
- Add cache and hosts directories
* Tue Nov 22 2022 Ge Wang <wangge20@h-partners.com> - 1.3-2
- Bring source file into correspondence with described in spec file
* Wed Jun 15 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.3-1
- Upgrade to version 1.3
* Thu Dec 17 2020 xinghe <xinghe1@huawei.com> - 0.9-7
- remove useless comments
* Sat Aug 8 2020 shixuantong <shixuantong@huawei.com> - 0.9-6
- remove python2 support
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.9-5
- Package init