Blame boom-boot.spec

8d6536
%global summary A set of libraries and tools for managing boot loader entries
8d6536
%global sphinx_docs 1
8d6536
8d6536
Name:		boom-boot
caee02
Version:	1.0
c4730a
Release:	2%{?dist}
8d6536
Summary:	%{summary}
8d6536
8d6536
License:	GPLv2
8cd5c8
URL:		https://github.com/snapshotmanager/boom
8cd5c8
Source0:	https://github.com/snapshotmanager/boom/archive/%{version}/boom-%{version}.tar.gz
8cd5c8
Patch0:		0001-boom.command-replace-.-with-_-in-automatic-uname-pat.patch
8cd5c8
Patch1:		0002-boom.command-remove-duplicate-host-profile-argument.patch
8cd5c8
Patch2:		0003-examples-Remove-dangling-symlinks-in-entries.patch
8cd5c8
Patch3:		0004-etc-Remove-executable-permission-from-etc-default-bo.patch
8cd5c8
Patch4:		0005-man-Fix-line-starting-with.patch
8d6536
8d6536
BuildArch:	noarch
8d6536
8d6536
BuildRequires:	python3-setuptools
8d6536
BuildRequires:	python3-devel
8d6536
%if 0%{?sphinx_docs}
8d6536
BuildRequires:	python3-sphinx
8d6536
%endif
8d6536
9a9169
Requires: python3-boom = %{version}-%{release}
9a9169
Requires: %{name}-conf = %{version}-%{release}
8d6536
8d6536
%package -n python3-boom
8d6536
Summary: %{summary}
8d6536
%{?python_provide:%python_provide python3-boom}
8cd5c8
Requires: %{__python3}
8d6536
Recommends: (lvm2 or brtfs-progs)
9a9169
Recommends: %{name}-conf = %{version}-%{release}
8d6536
8d6536
# There used to be a boom package in fedora, and there is boom packaged in
8d6536
# copr. How to tell which one is installed? We need python3-boom and no boom
8d6536
# only.
8d6536
Conflicts: boom
8d6536
8d6536
%package conf
8d6536
Summary: %{summary}
8d6536
8d6536
%package grub2
8d6536
Summary: %{summary}
9a9169
Supplements: (grub2 and boom-boot = %{version}-%{release})
8d6536
8d6536
%description
8d6536
Boom is a boot manager for Linux systems using boot loaders that support
8d6536
the BootLoader Specification for boot entry configuration.
8d6536
8d6536
Boom requires a BLS compatible boot loader to function: either the
8d6536
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
8d6536
include this support in both Red Hat Enterprise Linux 7 and Fedora).
8d6536
8d6536
%description -n python3-boom
8d6536
Boom is a boot manager for Linux systems using boot loaders that support
8d6536
the BootLoader Specification for boot entry configuration.
8d6536
8d6536
Boom requires a BLS compatible boot loader to function: either the
8d6536
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
8d6536
include this support in both Red Hat Enterprise Linux 7 and Fedora).
8d6536
8d6536
This package provides python3 boom module.
8d6536
8d6536
%description conf
8d6536
Boom is a boot manager for Linux systems using boot loaders that support
8d6536
the BootLoader Specification for boot entry configuration.
8d6536
8d6536
Boom requires a BLS compatible boot loader to function: either the
8d6536
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
8d6536
include this support in both Red Hat Enterprise Linux 7 and Fedora).
8d6536
8d6536
This package provides configuration files for boom.
8d6536
8d6536
%description grub2
8d6536
Boom is a boot manager for Linux systems using boot loaders that support
8d6536
the BootLoader Specification for boot entry configuration.
8d6536
8d6536
Boom requires a BLS compatible boot loader to function: either the
8d6536
systemd-boot project, or Grub2 with the BLS patch (Red Hat Grub2 builds
8d6536
include this support in both Red Hat Enterprise Linux 7 and Fedora).
8d6536
8d6536
This package provides integration scripts for grub2 bootloader.
8d6536
8d6536
%prep
4ebd2b
%setup -n boom-%{version}
8d6536
# NOTE: Do not use backup extension - MANIFEST.in is picking them
8cd5c8
%patch0 -p1
8cd5c8
%patch1 -p1
8cd5c8
%patch2 -p1
8cd5c8
%patch3 -p1
8cd5c8
%patch4 -p1
8d6536
8d6536
%build
8d6536
%if 0%{?sphinx_docs}
8d6536
make -C doc html
8d6536
rm doc/_build/html/.buildinfo
8d6536
mv doc/_build/html doc/html
8d6536
rm -r doc/_build
8d6536
%endif
8d6536
8d6536
%py3_build
8d6536
8d6536
%install
8d6536
%py3_install
8d6536
8d6536
# Install Grub2 integration scripts
8d6536
mkdir -p ${RPM_BUILD_ROOT}/etc/grub.d
8d6536
mkdir -p ${RPM_BUILD_ROOT}/etc/default
8d6536
install -m 755 etc/grub.d/42_boom ${RPM_BUILD_ROOT}/etc/grub.d
8d6536
install -m 644 etc/default/boom ${RPM_BUILD_ROOT}/etc/default
8d6536
8d6536
# Make configuration directories
8d6536
# mode 0700 - in line with /boot/grub2 directory:
8d6536
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/profiles
9a9169
install -d -m 700 ${RPM_BUILD_ROOT}/boot/boom/hosts
8d6536
install -d -m 700 ${RPM_BUILD_ROOT}/boot/loader/entries
8d6536
install -m 644 examples/boom.conf ${RPM_BUILD_ROOT}/boot/boom
8d6536
8d6536
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
8d6536
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man5
8d6536
install -m 644 man/man8/boom.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8
8d6536
install -m 644 man/man5/boom.5 ${RPM_BUILD_ROOT}/%{_mandir}/man5
8d6536
8d6536
rm doc/Makefile
8d6536
rm doc/conf.py
8d6536
8d6536
# Test suite currently does not operate in rpmbuild environment
8d6536
#%%check
8d6536
#%%{__python3} setup.py test
8d6536
8d6536
%files
8d6536
%license COPYING
8d6536
%doc README.md
8d6536
%{_bindir}/boom
8d6536
%doc %{_mandir}/man*/boom.*
8d6536
8d6536
%files -n python3-boom
8d6536
%license COPYING
8d6536
%doc README.md
8d6536
%{python3_sitelib}/*
8d6536
%doc doc
8d6536
%doc examples
8d6536
%doc tests
8d6536
8d6536
%files conf
8d6536
%license COPYING
8d6536
%doc README.md
8d6536
%dir /boot/boom
8d6536
%config(noreplace) /boot/boom/boom.conf
8d6536
%dir /boot/boom/profiles
caee02
%dir /boot/boom/hosts
8d6536
%dir /boot/loader/entries
8d6536
8d6536
%files grub2
8d6536
%license COPYING
8d6536
%doc README.md
8d6536
%{_sysconfdir}/grub.d/42_boom
8d6536
%config(noreplace) %{_sysconfdir}/default/boom
8d6536
8d6536
8d6536
%changelog
c4730a
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
c4730a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c4730a
d0a89a
* Mon Jan 20 2020 Marian Csontos <mcsontos@redhat.com> 1.0-1
8cd5c8
- Update to new upstream release 1.0.
8cd5c8
cec8bc
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-0.5.20190329git6ff3e08
cec8bc
- Rebuilt for Python 3.8.0rc1 (#1748018)
cec8bc
eb6d41
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-0.4.20190329git6ff3e08
eb6d41
- Rebuilt for Python 3.8
eb6d41
cca65f
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.3.20190329git6ff3e08
cca65f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cca65f
9a9169
* Thu May 09 2019 Marian Csontos <mcsontos@redhat.com> 1.0-0.2.20190329git6ff3e08
9a9169
- Fix packaging issues.
9a9169
caee02
* Thu May 09 2019 Marian Csontos <mcsontos@redhat.com> 1.0-0.1.20190329git6ff3e08
caee02
- Pre-release of new version.
caee02
3c5768
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
3c5768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3c5768
8d6536
* Tue Jul 17 2018 Marian Csontos <mcsontos@redhat.com> 0.9-4
8d6536
- Change dependencies.
8d6536
8d6536
* Mon Jul 16 2018 Marian Csontos <mcsontos@redhat.com> 0.9-3
8d6536
- Split executable, python module and configuration.
8d6536
8d6536
* Wed Jun 27 2018 Marian Csontos <mcsontos@redhat.com> 0.9-2
8d6536
- Spin off grub2 into subpackage
8d6536
8d6536
* Wed Jun 27 2018 Marian Csontos <mcsontos@redhat.com> 0.9-1
8d6536
- Update to new upstream 0.9.
8d6536
- Fix boot_id caching.
8d6536
8d6536
* Fri Jun 08 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6.2
8d6536
- Remove example files from /boot/boom/profiles.
8d6536
8d6536
* Fri May 11 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6.1
8d6536
- Files in /boot are treated as configuration files.
8d6536
8d6536
* Thu Apr 26 2018 Marian Csontos <mcsontos@redhat.com> 0.8.5-6
8d6536
- Package upstream version 0.8-5.6
8d6536