summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <michel@michel-slm.name>2021-06-22 17:38:52 -0700
committerMichel Alexandre Salim <michel@michel-slm.name>2021-06-22 17:38:52 -0700
commit8cf1cad615948d79f9ffa7f12f1a193081863472 (patch)
tree6e6340663908122875e5ca2fe5a838a6edd8f4b3
parent238bcda820f60ed3317f227297365cc48da2caee (diff)
downloadspecs-8cf1cad615948d79f9ffa7f12f1a193081863472.tar.gz
specs-8cf1cad615948d79f9ffa7f12f1a193081863472.tar.xz
specs-8cf1cad615948d79f9ffa7f12f1a193081863472.zip
+ buttermanager
Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>
-rw-r--r--admin/buttermanager.spec57
1 files changed, 57 insertions, 0 deletions
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 <salimma@fedoraproject.org> - 2.4.1-1
+- Initial package