Blame SPECS/boom-boot.spec

ee88d8
%global summary A set of libraries and tools for managing boot loader entries
ee88d8
%global sphinx_docs 1
ee88d8
ee88d8
Name:		boom-boot
35c622
Version:	1.3
efe60d
Release:	2%{?dist}
ee88d8
Summary:	%{summary}
ee88d8
ee88d8
License:	GPLv2
4bbb75
URL:		https://github.com/snapshotmanager/boom
4bbb75
Source0:	https://github.com/snapshotmanager/boom/archive/%{version}/boom-%{version}.tar.gz
4bbb75
Patch0:		Disable-GRUB2-plugin-on-RHEL-8.patch
0228ad
Patch1:		0001-etc-Remove-executable-permission-from-etc-default-bo.patch
0228ad
Patch2:		0002-man-Fix-line-starting-with.patch
efe60d
Patch3:		0003-report-fix-docstring-typo-objecct.patch
efe60d
Patch4:		0004-command-fix-docstring-typo-or-OsError.patch
efe60d
# BZ 1929838:
efe60d
Patch5:		0005-command-fix-optional-BLS-key-to-command-line-argumen.patch
ee88d8
ee88d8
BuildArch:	noarch
ee88d8
ee88d8
BuildRequires:	python3-setuptools
ee88d8
BuildRequires:	python3-devel
ee88d8
%if 0%{?sphinx_docs}
ee88d8
BuildRequires:	python3-sphinx
ee88d8
%endif
35c622
BuildRequires: make
ee88d8
cbe721
Requires: python3-boom = %{version}-%{release}
cbe721
Requires: %{name}-conf = %{version}-%{release}
ee88d8
ee88d8
%package -n python3-boom
ee88d8
Summary: %{summary}
cbe721
# Unsupported on RHEL-8 :-(
4bbb75
#%%{?python_provide:%%python_provide python%%{__python_pkgversion}-boom}
cbe721
# Do we need this??? IMO not
cbe721
#Provides: python3-boom = %%{version}-%%{release}
ee88d8
Requires: %{__python3}
ee88d8
Recommends: (lvm2 or brtfs-progs)
cbe721
Recommends: %{name}-conf = %{version}-%{release}
ee88d8
ee88d8
# There used to be a boom package in fedora, and there is boom packaged in
ee88d8
# copr. How to tell which one is installed? We need python3-boom and no boom
ee88d8
# only.
ee88d8
Conflicts: boom
ee88d8
ee88d8
%package conf
ee88d8
Summary: %{summary}
ee88d8
ee88d8
%package grub2
ee88d8
Summary: %{summary}
cbe721
Supplements: (grub2 and boom-boot = %{version}-%{release})
ee88d8
ee88d8
%description
ee88d8
Boom is a boot manager for Linux systems using boot loaders that support
ee88d8
the BootLoader Specification for boot entry configuration.
ee88d8
ee88d8
Boom requires a BLS compatible boot loader to function: either the
ee88d8
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
ee88d8
include this support in both Red Hat Enterprise Linux 7 and Fedora).
ee88d8
ee88d8
%description -n python3-boom
ee88d8
Boom is a boot manager for Linux systems using boot loaders that support
ee88d8
the BootLoader Specification for boot entry configuration.
ee88d8
ee88d8
Boom requires a BLS compatible boot loader to function: either the
ee88d8
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
ee88d8
include this support in both Red Hat Enterprise Linux 7 and Fedora).
ee88d8
ee88d8
This package provides python3 boom module.
ee88d8
ee88d8
%description conf
ee88d8
Boom is a boot manager for Linux systems using boot loaders that support
ee88d8
the BootLoader Specification for boot entry configuration.
ee88d8
ee88d8
Boom requires a BLS compatible boot loader to function: either the
ee88d8
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
ee88d8
include this support in both Red Hat Enterprise Linux 7 and Fedora).
ee88d8
ee88d8
This package provides configuration files for boom.
ee88d8
ee88d8
%description grub2
ee88d8
Boom is a boot manager for Linux systems using boot loaders that support
ee88d8
the BootLoader Specification for boot entry configuration.
ee88d8
ee88d8
Boom requires a BLS compatible boot loader to function: either the
ee88d8
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
ee88d8
include this support in both Red Hat Enterprise Linux 7 and Fedora).
ee88d8
ee88d8
This package provides integration scripts for grub2 bootloader.
ee88d8
ee88d8
%prep
4bbb75
%setup -n boom-%{version}
ee88d8
# NOTE: Do not use backup extension - MANIFEST.in is picking them
ee88d8
%patch0 -p1
4bbb75
%patch1 -p1
4bbb75
%patch2 -p1
efe60d
%patch3 -p1
efe60d
%patch4 -p1
efe60d
%patch5 -p1
ee88d8
ee88d8
%build
ee88d8
%if 0%{?sphinx_docs}
ee88d8
make -C doc html
ee88d8
rm doc/_build/html/.buildinfo
ee88d8
mv doc/_build/html doc/html
ee88d8
rm -r doc/_build
ee88d8
%endif
ee88d8
ee88d8
%py3_build
ee88d8
ee88d8
%install
ee88d8
%py3_install
ee88d8
ee88d8
# Install Grub2 integration scripts
ee88d8
mkdir -p ${RPM_BUILD_ROOT}/etc/grub.d
ee88d8
mkdir -p ${RPM_BUILD_ROOT}/etc/default
ee88d8
install -m 755 etc/grub.d/42_boom ${RPM_BUILD_ROOT}/etc/grub.d
ee88d8
install -m 644 etc/default/boom ${RPM_BUILD_ROOT}/etc/default
ee88d8
ee88d8
# Make configuration directories
ee88d8
# mode 0700 - in line with /boot/grub2 directory:
ee88d8
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/profiles
cbe721
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/hosts
ee88d8
install -d -m 700 ${RPM_BUILD_ROOT}/boot/loader/entries
0228ad
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/cache
ee88d8
install -m 644 examples/boom.conf ${RPM_BUILD_ROOT}/boot/boom
0228ad
install -m 644 examples/profiles/*.profile ${RPM_BUILD_ROOT}/boot/boom/profiles
ee88d8
ee88d8
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
ee88d8
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man5
ee88d8
install -m 644 man/man8/boom.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8
ee88d8
install -m 644 man/man5/boom.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
ee88d8
ee88d8
rm doc/Makefile
ee88d8
rm doc/conf.py
ee88d8
ee88d8
# Test suite currently does not operate in rpmbuild environment
ee88d8
#%%check
ee88d8
#%%{__python3} setup.py test
ee88d8
ee88d8
%files
ee88d8
%license COPYING
ee88d8
%doc README.md
ee88d8
%{_bindir}/boom
ee88d8
%doc %{_mandir}/man*/boom.*
ee88d8
ee88d8
%files -n python3-boom
ee88d8
%license COPYING
ee88d8
%doc README.md
ee88d8
%{python3_sitelib}/*
ee88d8
%doc doc
ee88d8
%doc examples
ee88d8
%doc tests
ee88d8
ee88d8
%files conf
ee88d8
%license COPYING
ee88d8
%doc README.md
ee88d8
%dir /boot/boom
ee88d8
%config(noreplace) /boot/boom/boom.conf
ee88d8
%dir /boot/boom/profiles
0228ad
%config(noreplace) /boot/boom/profiles/*
cbe721
%dir /boot/boom/hosts
0228ad
%dir /boot/boom/cache
ee88d8
%dir /boot/loader/entries
ee88d8
ee88d8
%files grub2
ee88d8
%license COPYING
ee88d8
%doc README.md
ee88d8
%{_sysconfdir}/grub.d/42_boom
ee88d8
%config(noreplace) %{_sysconfdir}/default/boom
ee88d8
ee88d8
ee88d8
%changelog
efe60d
* Tue Jun 15 2021 Marian Csontos <mcsontos@redhat.com> 1.3-2
efe60d
- Fix --grub-id option handling.
efe60d
35c622
* Sat Jan 30 2021 Marian Csontos <mcsontos@redhat.com> 1.3-1
35c622
- Check for duplicates consistently in the clone and edit commands.
35c622
- Apply correct command line precedence to --add-opts and --del-opts.
35c622
- Correctly merge multiple --add/del-opts when editing or cloning.
35c622
- Correctly propagate --add/del-opts in boom edit commands.
35c622
- Enhanced logging of --add/del-opts merge logic.
35c622
- The default Python interpreter is now /usr/bin/python.
35c622
- Fixed re-ordering of options modifications when read from disk.
35c622
- Do not set BootParams attributes for anonymous option words.
35c622
- Make lvm_root_lv validation checks more strict.
35c622
- Improve BootParams.from_entry() parameter recovery debug logging.
35c622
- Include sample OsProfile for Fedora 32.
35c622
- Re-set sandbox state in test suite to ensure run-to-run consistency.
35c622
- Improve compatibility with Red Hat BLS implementation.
35c622
- Allow non-boom managed entries to be listed and displayed.
35c622
- Handle quirks in Red Hat's use of the BLS machine_id key.
35c622
- Allow grub2 bootloader variables to be expanded when cloning entries.
35c622
- Simplify clone_entry logic and make consistent with edit_entry.
35c622
- Ensure stable ordering of legacy boot entry configuration.
35c622
0228ad
* Mon Jun 29 2020 Marian Csontos <mcsontos@redhat.com> 1.2-2
0228ad
- Fix RHEL-8 profiles.
0228ad
- Fix --add/del-opt precedence.
0228ad
- Fix backup image reference counting.
0228ad
0228ad
* Sun Jun 07 2020 Marian Csontos <mcsontos@redhat.com> 1.2-1
0228ad
- Update to bug fix release 1.2.
0228ad
0228ad
* Tue May 26 2020 Marian Csontos <mcsontos@redhat.com> 1.1-2
0228ad
- Fix unicode entries handling.
0228ad
- Add tracebacks when --debug is used.
0228ad
0228ad
* Thu May 14 2020 Marian Csontos <mcsontos@redhat.com> 1.1-1
0228ad
- Update to new upstream release 1.1.
0228ad
- Add caching of kernel and init ramdisk images.
0228ad
4bbb75
* Fri Nov 29 2019 Marian Csontos <mcsontos@redhat.com> 1.0-1
4bbb75
- Update to new upstream release 1.0.
4bbb75
cbe721
* Mon Jun 10 2019 Marian Csontos <mcsontos@redhat.com> 1.0-0.2.20190610git246b116
cbe721
- Fix packaging issues.
cbe721
cbe721
* Mon May 06 2019 Marian Csontos <mcsontos@redhat.com> 1.0-0.1.20190329git6ff3e08
cbe721
- Test upstream packaging.
cbe721
ee88d8
* Mon Jan 14 2019 Marian Csontos <mcsontos@redhat.com> 0.9-7
ee88d8
- Reduce log level of "Could not load BootEntry" messages.
ee88d8
- Raise more appropriate LookupError on unknown BLS keys.
ee88d8
ee88d8
* Tue Dec 18 2018 Marian Csontos <mcsontos@redhat.com> 0.9-6
ee88d8
- Disable GRUB2 plugin on RHEL-8.
ee88d8
ee88d8
* Mon Sep 17 2018 Tomas Orsava <torsava@redhat.com> - 0.9-5
ee88d8
- Require the Python interpreter directly instead of using the package name
ee88d8
- Related: rhbz#1619153
ee88d8
ee88d8
* Tue Jul 17 2018 Marian Csontos <mcsontos@redhat.com> 0.9-4
ee88d8
- Change dependencies.
ee88d8
ee88d8
* Mon Jul 16 2018 Marian Csontos <mcsontos@redhat.com> 0.9-3
ee88d8
- Split executable, python module and configuration.
ee88d8
ee88d8
* Wed Jun 27 2018 Marian Csontos <mcsontos@redhat.com> 0.9-2
ee88d8
- Spin off grub2 into subpackage
ee88d8
ee88d8
* Wed Jun 27 2018 Marian Csontos <mcsontos@redhat.com> 0.9-1
ee88d8
- Update to new upstream 0.9.
ee88d8
- Fix boot_id caching.
ee88d8
ee88d8
* Fri Jun 08 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6.2
ee88d8
- Remove example files from /boot/boom/profiles.
ee88d8
ee88d8
* Fri May 11 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6.1
ee88d8
- Files in /boot are treated as configuration files.
ee88d8
ee88d8
* Thu Apr 26 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6
ee88d8
- Package upstream version 0.8-5.6
ee88d8