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
fdd02e
Version:	1.3
fdd02e
Release:	3%{?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
fdd02e
Patch1:		0001-etc-Remove-executable-permission-from-etc-default-bo.patch
fdd02e
Patch2:		0002-man-Fix-line-starting-with.patch
fdd02e
fdd02e
BuildArch:	noarch
fdd02e
fdd02e
BuildRequires:	python3-setuptools
fdd02e
BuildRequires:	python3-devel
fdd02e
%if 0%{?sphinx_docs}
fdd02e
BuildRequires:	python3-sphinx
fdd02e
%endif
fdd02e
BuildRequires: make
fdd02e
fdd02e
Requires: python3-boom = %{version}-%{release}
fdd02e
Requires: %{name}-conf = %{version}-%{release}
fdd02e
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
%package grub2
fdd02e
Summary: %{summary}
fdd02e
Supplements: (grub2 and boom-boot = %{version}-%{release})
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
%description grub2
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 integration scripts for grub2 bootloader.
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
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
# Install Grub2 integration scripts
fdd02e
mkdir -p ${RPM_BUILD_ROOT}/etc/grub.d
fdd02e
mkdir -p ${RPM_BUILD_ROOT}/etc/default
fdd02e
install -m 755 etc/grub.d/42_boom ${RPM_BUILD_ROOT}/etc/grub.d
fdd02e
install -m 644 etc/default/boom ${RPM_BUILD_ROOT}/etc/default
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
install -m 644 examples/profiles/*.profile ${RPM_BUILD_ROOT}/boot/boom/profiles
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
%config(noreplace) /boot/boom/profiles/*
fdd02e
%dir /boot/boom/hosts
fdd02e
%dir /boot/boom/cache
fdd02e
%dir /boot/loader/entries
fdd02e
fdd02e
%files grub2
fdd02e
%license COPYING
fdd02e
%doc README.md
fdd02e
%{_sysconfdir}/grub.d/42_boom
fdd02e
%config(noreplace) %{_sysconfdir}/default/boom
fdd02e
fdd02e
fdd02e
%changelog
fdd02e
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.3-3
fdd02e
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
fdd02e
  Related: rhbz#1991688
fdd02e
fdd02e
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.3-2
fdd02e
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
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