From 8cf1cad615948d79f9ffa7f12f1a193081863472 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 22 Jun 2021 17:38:52 -0700 Subject: + buttermanager Signed-off-by: Michel Alexandre Salim --- admin/buttermanager.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 admin/buttermanager.spec diff --git a/admin/buttermanager.spec b/admin/buttermanager.spec new file mode 100644 index 0000000..a195203 --- /dev/null +++ b/admin/buttermanager.spec @@ -0,0 +1,57 @@ +Name: buttermanager +Version: 2.4.1 +Release: 1%{?dist} +Summary: Tool for managing Btrfs snapshots, balancing filesystems and more + +License: GPLv3 +URL: https://github.com/egara/buttermanager +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +# https://github.com/egara/buttermanager/pull/35 +Patch0: %{name}-2.4.1-fix_setup.patch +# https://github.com/egara/buttermanager/pull/36 +Patch1: %{name}-2.4.1-noexec.patch +# https://github.com/egara/buttermanager/pull/37 +Patch2: %{name}-2.4.1-no_shebangs.patch + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +Requires: btrfs-progs +# Recommends: grub2-btrfs + +%description +ButterManager is a BTRFS tool for managing snapshots, balancing filesystems +and upgrading the system safely. + +%prep +%autosetup -p1 + + +%build +%py3_build + + +%install +%py3_install + +install -Dpm644 packaging/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop +install -Dpm644 packaging/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/%{name}.svg + +# Fix the desktop file +sed \ + -e "s/Icon=.*/Icon=%{name}/" \ + -i %{buildroot}%{_datadir}/applications/%{name}.desktop + + +%files +%license LICENSE +%doc README.md doc +%{_bindir}/buttermanager +%{python3_sitelib}/buttermanager* +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/scalable/%{name}.svg + + +%changelog +* Tue Jun 22 2021 Michel Alexandre Salim - 2.4.1-1 +- Initial package -- cgit