Blame SPECS/boom-boot.spec

fdd02e
%global summary A set of libraries and tools for managing boot loader entries
fdd02e
%global sphinx_docs 1
fdd02e
fdd02e
Name:		boom-boot
142be1
Version:	1.4
142be1
Release:	4%{?dist}
fdd02e
Summary:	%{summary}
fdd02e
fdd02e
License:	GPLv2
fdd02e
URL:		https://github.com/snapshotmanager/boom
fdd02e
Source0:	https://github.com/snapshotmanager/boom/archive/%{version}/boom-%{version}.tar.gz
142be1
Patch1:		0001-man-Fix-line-starting-with.patch
142be1
# Minor improvements:
142be1
Patch2:         0002-boom.bootloader-initialise-_last_path-before-parsing.patch
142be1
Patch3:         0003-boom.bootloader-improve-warning-for-entries-with-no-.patch
142be1
# BZ 2096447:
142be1
Patch4:         0004-boom.bootloader-do-not-allow-deletion-of-read-only-b.patch
142be1
# BZ 2096368:
142be1
Patch5:         0005-boom.command-add-new-os-release-values-to-Red-Hat-op.patch
fdd02e
fdd02e
BuildArch:	noarch
fdd02e
142be1
BuildRequires:	make
fdd02e
BuildRequires:	python3-setuptools
fdd02e
BuildRequires:	python3-devel
fdd02e
%if 0%{?sphinx_docs}
142be1
BuildRequires:	python3-dbus
fdd02e
BuildRequires:	python3-sphinx
fdd02e
%endif
fdd02e
BuildRequires: make
fdd02e
fdd02e
Requires: python3-boom = %{version}-%{release}
fdd02e
Requires: %{name}-conf = %{version}-%{release}
fdd02e
142be1
Obsoletes: boom-boot-grub2 <= 1.3
142be1
# boom-grub2 was not an official name of subpackage in fedora, but was used upstream:
142be1
Obsoletes: boom-grub2 <= 1.3
142be1
fdd02e
%package -n python3-boom
fdd02e
Summary: %{summary}
fdd02e
%{?python_provide:%python_provide python3-boom}
fdd02e
Requires: %{__python3}
fdd02e
Recommends: (lvm2 or brtfs-progs)
fdd02e
Recommends: %{name}-conf = %{version}-%{release}
fdd02e
fdd02e
# There used to be a boom package in fedora, and there is boom packaged in
fdd02e
# copr. How to tell which one is installed? We need python3-boom and no boom
fdd02e
# only.
fdd02e
Conflicts: boom
fdd02e
fdd02e
%package conf
fdd02e
Summary: %{summary}
fdd02e
fdd02e
%description
fdd02e
Boom is a boot manager for Linux systems using boot loaders that support
fdd02e
the BootLoader Specification for boot entry configuration.
fdd02e
fdd02e
Boom requires a BLS compatible boot loader to function: either the
fdd02e
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
fdd02e
include this support in both Red Hat Enterprise Linux 7 and Fedora).
fdd02e
fdd02e
%description -n python3-boom
fdd02e
Boom is a boot manager for Linux systems using boot loaders that support
fdd02e
the BootLoader Specification for boot entry configuration.
fdd02e
fdd02e
Boom requires a BLS compatible boot loader to function: either the
fdd02e
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
fdd02e
include this support in both Red Hat Enterprise Linux 7 and Fedora).
fdd02e
fdd02e
This package provides python3 boom module.
fdd02e
fdd02e
%description conf
fdd02e
Boom is a boot manager for Linux systems using boot loaders that support
fdd02e
the BootLoader Specification for boot entry configuration.
fdd02e
fdd02e
Boom requires a BLS compatible boot loader to function: either the
fdd02e
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
fdd02e
include this support in both Red Hat Enterprise Linux 7 and Fedora).
fdd02e
fdd02e
This package provides configuration files for boom.
fdd02e
fdd02e
%prep
fdd02e
%setup -n boom-%{version}
fdd02e
# NOTE: Do not use backup extension - MANIFEST.in is picking them
fdd02e
%patch1 -p1
fdd02e
%patch2 -p1
142be1
%patch3 -p1
142be1
%patch4 -p1
142be1
%patch5 -p1
fdd02e
fdd02e
%build
fdd02e
%if 0%{?sphinx_docs}
fdd02e
make -C doc html
fdd02e
rm doc/_build/html/.buildinfo
fdd02e
mv doc/_build/html doc/html
fdd02e
rm -r doc/_build
fdd02e
%endif
fdd02e
fdd02e
%py3_build
fdd02e
fdd02e
%install
fdd02e
%py3_install
fdd02e
fdd02e
# Make configuration directories
fdd02e
# mode 0700 - in line with /boot/grub2 directory:
fdd02e
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/profiles
fdd02e
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/hosts
fdd02e
install -d -m 700 ${RPM_BUILD_ROOT}/boot/loader/entries
fdd02e
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/cache
fdd02e
install -m 644 examples/boom.conf ${RPM_BUILD_ROOT}/boot/boom
fdd02e
fdd02e
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
fdd02e
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man5
fdd02e
install -m 644 man/man8/boom.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8
fdd02e
install -m 644 man/man5/boom.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
fdd02e
fdd02e
rm doc/Makefile
fdd02e
rm doc/conf.py
fdd02e
fdd02e
# Test suite currently does not operate in rpmbuild environment
fdd02e
#%%check
fdd02e
#%%{__python3} setup.py test
fdd02e
fdd02e
%files
fdd02e
%license COPYING
fdd02e
%doc README.md
fdd02e
%{_bindir}/boom
fdd02e
%doc %{_mandir}/man*/boom.*
fdd02e
fdd02e
%files -n python3-boom
fdd02e
%license COPYING
fdd02e
%doc README.md
fdd02e
%{python3_sitelib}/*
fdd02e
%doc doc
fdd02e
%doc examples
fdd02e
%doc tests
fdd02e
fdd02e
%files conf
fdd02e
%license COPYING
fdd02e
%doc README.md
fdd02e
%dir /boot/boom
fdd02e
%config(noreplace) /boot/boom/boom.conf
fdd02e
%dir /boot/boom/profiles
fdd02e
%dir /boot/boom/hosts
fdd02e
%dir /boot/boom/cache
fdd02e
%dir /boot/loader/entries
fdd02e
fdd02e
fdd02e
%changelog
142be1
* Wed Jul 13 2022 Marian Csontos <mcsontos@redhat.com> 1.4-4
142be1
- Fix handling of read-only entries.
142be1
- Add OS names for recent versions.
142be1
142be1
* Tue May 24 2022 Marian Csontos <mcsontos@redhat.com> 1.4-3
142be1
- Fix missing /boot/boom/profiles directory.
142be1
142be1
* Tue May 24 2022 Marian Csontos <mcsontos@redhat.com> 1.4-2
142be1
- Update gating.yaml.
142be1
142be1
* Mon May 23 2022 Marian Csontos <mcsontos@redhat.com> 1.4-1
142be1
- Update to release 1.4.
142be1
142be1
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
142be1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
142be1
142be1
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
142be1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
fdd02e
142be1
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3-2
142be1
- Rebuilt for Python 3.10
fdd02e
fdd02e
* Fri Jan 29 2021 Marian Csontos <mcsontos@redhat.com> 1.3-1
fdd02e
- Update to release 1.3.
fdd02e
fdd02e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-3
fdd02e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
fdd02e
fdd02e
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
fdd02e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fdd02e
fdd02e
* Sun Jun 07 2020 Marian Csontos <mcsontos@redhat.com> 1.2-1
fdd02e
- Update to bug fix release 1.2.
fdd02e
fdd02e
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 1.1-4
fdd02e
- Rebuilt for Python 3.9
fdd02e
fdd02e
* Tue May 26 2020 Marian Csontos <mcsontos@redhat.com> 1.1-3
fdd02e
- Fix unicode entries handling.
fdd02e
- Add tracebacks when --debug is used.
fdd02e
fdd02e
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 1.1-2
fdd02e
- Rebuilt for Python 3.9
fdd02e
fdd02e
* Thu May 14 2020 Marian Csontos <mcsontos@redhat.com> 1.1-1
fdd02e
- Update to new upstream release 1.1.
fdd02e
- Add caching of kernel and init ramdisk images.
fdd02e
fdd02e
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
fdd02e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
fdd02e
fdd02e
* Mon Jan 20 2020 Marian Csontos <mcsontos@redhat.com> 1.0-1
fdd02e
- Update to new upstream release 1.0.
fdd02e
fdd02e
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.0-0.5.20190329git6ff3e08
fdd02e
- Rebuilt for Python 3.8.0rc1 (#1748018)
fdd02e
fdd02e
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.0-0.4.20190329git6ff3e08
fdd02e
- Rebuilt for Python 3.8
fdd02e
fdd02e
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.3.20190329git6ff3e08
fdd02e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fdd02e
fdd02e
* Thu May 09 2019 Marian Csontos <mcsontos@redhat.com> 1.0-0.2.20190329git6ff3e08
fdd02e
- Fix packaging issues.
fdd02e
fdd02e
* Thu May 09 2019 Marian Csontos <mcsontos@redhat.com> 1.0-0.1.20190329git6ff3e08
fdd02e
- Pre-release of new version.
fdd02e
fdd02e
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
fdd02e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
fdd02e
fdd02e
* Tue Jul 17 2018 Marian Csontos <mcsontos@redhat.com> 0.9-4
fdd02e
- Change dependencies.
fdd02e
fdd02e
* Mon Jul 16 2018 Marian Csontos <mcsontos@redhat.com> 0.9-3
fdd02e
- Split executable, python module and configuration.
fdd02e
fdd02e
* Wed Jun 27 2018 Marian Csontos <mcsontos@redhat.com> 0.9-2
fdd02e
- Spin off grub2 into subpackage
fdd02e
fdd02e
* Wed Jun 27 2018 Marian Csontos <mcsontos@redhat.com> 0.9-1
fdd02e
- Update to new upstream 0.9.
fdd02e
- Fix boot_id caching.
fdd02e
fdd02e
* Fri Jun 08 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6.2
fdd02e
- Remove example files from /boot/boom/profiles.
fdd02e
fdd02e
* Fri May 11 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6.1
fdd02e
- Files in /boot are treated as configuration files.
fdd02e
fdd02e
* Thu Apr 26 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6
fdd02e
- Package upstream version 0.8-5.6
fdd02e