Name: grub-btrfs Version: 4.14 Release: 1%{?dist} Summary: Improves grub by adding "btrfs snapshots" to the grub menu. License: GPLv3 URL: https://github.com/Antynea/grub-btrfs Source: https://github.com/Antynea/grub-btrfs/archive/refs/tags/v4.14.tar.gz BuildArch: noarch Patch0: no-root.patch Patch1: fedora.patch Requires: grub2-common Requires: inotify-tools BuildRequires: make BuildRequires: systemd-rpm-macros # Don't allow this package to be used along-side the timeshift package. Conflicts: grub-btrfs-timeshift %description Improves grub by adding "btrfs snapshots" to the grub menu. You can boot your system on a "snapshot" from the grub menu. Supports manual snapshots and snapper # Disable debug packages %define debug_package %{nil} %prep %setup -T -b 0 -q -n grub-btrfs-4.14 %patch 0 %patch 1 # This will copy the files generated by the `make` command above into # the installable rpm package. %install make DESTDIR=%{buildroot} \ PREFIX=/usr \ SYSTEMD=true \ OPENRC=false \ INITCPIO=false \ GRUB_UPDATE_EXCLUDE=false \ install # Do post-installation %post %systemd_post grub-btrfsd.service # Do before uninstallation %preun %systemd_preun grub-btrfsd.service # Do after uninstallation %postun %systemd_postun_with_restart grub-btrfsd.service # This lists all the files that are included in the rpm package and that # are going to be installed into target system where the rpm is installed. %files %license LICENSE %doc README.md initramfs-overlayfs.md %{_bindir}/grub-btrfsd %{_mandir}/man8/grub-btrfs.8.gz %{_mandir}/man8/grub-btrfsd.8.gz %{_sysconfdir}/grub.d/41_snapshots-btrfs %config(noreplace) %{_sysconfdir}/default/grub-btrfs/config %{_unitdir}/grub-btrfsd.service # Finally, changes from the latest release of your application are generated from # your project's Git history. It will be empty until you make first annotated Git tag. %changelog