8d6536d
%global summary A set of libraries and tools for managing boot loader entries
8d6536d
%global sphinx_docs 1
8d6536d
8d6536d
Name:		boom-boot
4fffe2a
Version:	1.6.0
aea9591
Release:	4%{?dist}
8d6536d
Summary:	%{summary}
8d6536d
e0098ed
License:	GPL-2.0-only
8cd5c83
URL:		https://github.com/snapshotmanager/boom
8cd5c83
Source0:	https://github.com/snapshotmanager/boom/archive/%{version}/boom-%{version}.tar.gz
8d6536d
8d6536d
BuildArch:	noarch
8d6536d
804b00f
BuildRequires:	make
8d6536d
BuildRequires:	python3-setuptools
8d6536d
BuildRequires:	python3-devel
8d6536d
%if 0%{?sphinx_docs}
804b00f
BuildRequires:	python3-dbus
8d6536d
BuildRequires:	python3-sphinx
8d6536d
%endif
2935aa8
BuildRequires: make
4fffe2a
BuildRequires: systemd-rpm-macros
8d6536d
9a91691
Requires: python3-boom = %{version}-%{release}
9a91691
Requires: %{name}-conf = %{version}-%{release}
6158ea1
Requires: systemd >= 254
8d6536d
804b00f
Obsoletes: boom-boot-grub2 <= 1.3
804b00f
# boom-grub2 was not an official name of subpackage in fedora, but was used upstream:
804b00f
Obsoletes: boom-grub2 <= 1.3
804b00f
8d6536d
%package -n python3-boom
8d6536d
Summary: %{summary}
8d6536d
%{?python_provide:%python_provide python3-boom}
8cd5c83
Requires: %{__python3}
8d6536d
Recommends: (lvm2 or brtfs-progs)
9a91691
Recommends: %{name}-conf = %{version}-%{release}
8d6536d
8d6536d
# There used to be a boom package in fedora, and there is boom packaged in
8d6536d
# copr. How to tell which one is installed? We need python3-boom and no boom
8d6536d
# only.
8d6536d
Conflicts: boom
8d6536d
8d6536d
%package conf
8d6536d
Summary: %{summary}
8d6536d
8d6536d
%description
8d6536d
Boom is a boot manager for Linux systems using boot loaders that support
8d6536d
the BootLoader Specification for boot entry configuration.
8d6536d
8d6536d
Boom requires a BLS compatible boot loader to function: either the
8d6536d
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
8d6536d
include this support in both Red Hat Enterprise Linux 7 and Fedora).
8d6536d
8d6536d
%description -n python3-boom
8d6536d
Boom is a boot manager for Linux systems using boot loaders that support
8d6536d
the BootLoader Specification for boot entry configuration.
8d6536d
8d6536d
Boom requires a BLS compatible boot loader to function: either the
8d6536d
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
8d6536d
include this support in both Red Hat Enterprise Linux 7 and Fedora).
8d6536d
8d6536d
This package provides python3 boom module.
8d6536d
8d6536d
%description conf
8d6536d
Boom is a boot manager for Linux systems using boot loaders that support
8d6536d
the BootLoader Specification for boot entry configuration.
8d6536d
8d6536d
Boom requires a BLS compatible boot loader to function: either the
8d6536d
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
8d6536d
include this support in both Red Hat Enterprise Linux 7 and Fedora).
8d6536d
8d6536d
This package provides configuration files for boom.
8d6536d
8d6536d
%prep
c9ec267
%autosetup -p1 -n boom-%{version}
8d6536d
8d6536d
%build
8d6536d
%if 0%{?sphinx_docs}
8d6536d
make -C doc html
8d6536d
rm doc/_build/html/.buildinfo
8d6536d
mv doc/_build/html doc/html
8d6536d
rm -r doc/_build
8d6536d
%endif
8d6536d
8d6536d
%py3_build
8d6536d
8d6536d
%install
8d6536d
%py3_install
8d6536d
8d6536d
# Make configuration directories
8d6536d
# mode 0700 - in line with /boot/grub2 directory:
8d6536d
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/profiles
9a91691
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/hosts
8d6536d
install -d -m 700 ${RPM_BUILD_ROOT}/boot/loader/entries
2d014b2
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/cache
8d6536d
install -m 644 examples/boom.conf ${RPM_BUILD_ROOT}/boot/boom
804b00f
#install -m 644 examples/profiles/*.profile ${RPM_BUILD_ROOT}/boot/boom/profiles
8d6536d
8d6536d
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
8d6536d
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man5
8d6536d
install -m 644 man/man8/boom.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8
8d6536d
install -m 644 man/man5/boom.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
8d6536d
4fffe2a
mkdir -p ${RPM_BUILD_ROOT}/%{_systemdgeneratordir}
4fffe2a
install -m 755 systemd/snapshot-remount-fs ${RPM_BUILD_ROOT}/%{_systemdgeneratordir}
4fffe2a
8d6536d
rm doc/Makefile
8d6536d
rm doc/conf.py
8d6536d
8d6536d
# Test suite currently does not operate in rpmbuild environment
8d6536d
#%%check
8d6536d
#%%{__python3} setup.py test
8d6536d
8d6536d
%files
8d6536d
%license COPYING
8d6536d
%doc README.md
8d6536d
%{_bindir}/boom
4fffe2a
%{_systemdgeneratordir}/snapshot-remount-fs
8d6536d
%doc %{_mandir}/man*/boom.*
8d6536d
8d6536d
%files -n python3-boom
8d6536d
%license COPYING
8d6536d
%doc README.md
8d6536d
%{python3_sitelib}/*
8d6536d
%doc doc
8d6536d
%doc examples
8d6536d
%doc tests
8d6536d
8d6536d
%files conf
8d6536d
%license COPYING
8d6536d
%doc README.md
8d6536d
%dir /boot/boom
8d6536d
%config(noreplace) /boot/boom/boom.conf
8d6536d
%dir /boot/boom/profiles
caee025
%dir /boot/boom/hosts
2d014b2
%dir /boot/boom/cache
8d6536d
%dir /boot/loader/entries
8d6536d
8d6536d
8d6536d
%changelog
aea9591
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-4
aea9591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
aea9591
9402fa7
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
9402fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
9402fa7
4fffe2a
* Tue Nov 21 2023 Marian Csontos <mcsontos@redhat.com> - 1.6.0-1
4fffe2a
- Update to release 1.6.0.
4fffe2a
960309e
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
960309e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
960309e
d8ec2a8
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 1.5.1-2
d8ec2a8
- Rebuilt for Python 3.12
d8ec2a8
c9ec267
* Tue May 16 2023 Marian Csontos <mcsontos@redhat.com> - 1.5.1-1
c9ec267
- Update to release 1.5.1.
c9ec267
a43b7b2
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
a43b7b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
a43b7b2
f013288
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
f013288
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
f013288
804b00f
* Wed Jul 13 2022 Marian Csontos <mcsontos@redhat.com> 1.4-1
804b00f
- Update to release 1.4.
804b00f
31cf8ae
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.3-5
31cf8ae
- Rebuilt for Python 3.11
31cf8ae
5348030
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
5348030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
5348030
ee5ed87
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
ee5ed87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ee5ed87
8c9567e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3-2
8c9567e
- Rebuilt for Python 3.10
8c9567e
d9896c3
* Fri Jan 29 2021 Marian Csontos <mcsontos@redhat.com> 1.3-1
d9896c3
- Update to release 1.3.
d9896c3
a6b90e9
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-3
a6b90e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a6b90e9
d6bd386
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
d6bd386
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d6bd386
9dd51d6
* Sun Jun 07 2020 Marian Csontos <mcsontos@redhat.com> 1.2-1
9dd51d6
- Update to bug fix release 1.2.
9dd51d6
6a67168
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1-4
6a67168
- Rebuilt for Python 3.9
6a67168
b4e6b4f
* Tue May 26 2020 Marian Csontos <mcsontos@redhat.com> 1.1-3
b4e6b4f
- Fix unicode entries handling.
b4e6b4f
- Add tracebacks when --debug is used.
b4e6b4f
1b96876
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1-2
1b96876
- Rebuilt for Python 3.9
1b96876
2d014b2
* Thu May 14 2020 Marian Csontos <mcsontos@redhat.com> 1.1-1
2d014b2
- Update to new upstream release 1.1.
2d014b2
- Add caching of kernel and init ramdisk images.
2d014b2
c4730a7
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
c4730a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c4730a7
d0a89ab
* Mon Jan 20 2020 Marian Csontos <mcsontos@redhat.com> 1.0-1
8cd5c83
- Update to new upstream release 1.0.
8cd5c83
cec8bc2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-0.5.20190329git6ff3e08
cec8bc2
- Rebuilt for Python 3.8.0rc1 (#1748018)
cec8bc2
eb6d41d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-0.4.20190329git6ff3e08
eb6d41d
- Rebuilt for Python 3.8
eb6d41d
cca65f7
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.3.20190329git6ff3e08
cca65f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cca65f7
9a91691
* Thu May 09 2019 Marian Csontos <mcsontos@redhat.com> 1.0-0.2.20190329git6ff3e08
9a91691
- Fix packaging issues.
9a91691
caee025
* Thu May 09 2019 Marian Csontos <mcsontos@redhat.com> 1.0-0.1.20190329git6ff3e08
caee025
- Pre-release of new version.
caee025
3c57680
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
3c57680
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3c57680
8d6536d
* Tue Jul 17 2018 Marian Csontos <mcsontos@redhat.com> 0.9-4
8d6536d
- Change dependencies.
8d6536d
8d6536d
* Mon Jul 16 2018 Marian Csontos <mcsontos@redhat.com> 0.9-3
8d6536d
- Split executable, python module and configuration.
8d6536d
8d6536d
* Wed Jun 27 2018 Marian Csontos <mcsontos@redhat.com> 0.9-2
8d6536d
- Spin off grub2 into subpackage
8d6536d
8d6536d
* Wed Jun 27 2018 Marian Csontos <mcsontos@redhat.com> 0.9-1
8d6536d
- Update to new upstream 0.9.
8d6536d
- Fix boot_id caching.
8d6536d
8d6536d
* Fri Jun 08 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6.2
8d6536d
- Remove example files from /boot/boom/profiles.
8d6536d
8d6536d
* Fri May 11 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6.1
8d6536d
- Files in /boot are treated as configuration files.
8d6536d
8d6536d
* Thu Apr 26 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6
8d6536d
- Package upstream version 0.8-5.6
8d6536d