## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: buttermanager Version: 2.5.2 Release: %autorelease Summary: Tool for managing Btrfs snapshots, balancing filesystems and more License: GPL-3.0-only URL: https://github.com/egara/buttermanager Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: desktop-file-utils 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 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l buttermanager install -Dpm644 packaging/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg # Fix the desktop file sed \ -e "s/Icon=.*/Icon=%{name}/" \ -i packaging/%{name}.desktop desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ packaging/%{name}.desktop %files -f %{pyproject_files} %doc README.md doc %{_bindir}/buttermanager %{python3_sitelib}/buttermanager* %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %changelog ## START: Generated by rpmautospec * Tue Nov 12 2024 Michel Lind - 2.5.2-1 - Update to 2.5.2 - Resolves: rhbz#2080927 * Mon Jul 29 2024 Miroslav Suchý - 2.4.2-13 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 2.4.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.4.2-11 - Rebuilt for Python 3.13 * Tue Jan 23 2024 Fedora Release Engineering - 2.4.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.4.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 2.4.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 2.4.2-7 - Rebuilt for Python 3.12 * Wed Jan 18 2023 Fedora Release Engineering - 2.4.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering - 2.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.4.2-4 - Rebuilt for Python 3.11 * Wed Jan 19 2022 Fedora Release Engineering - 2.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 2.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Jul 10 2021 Michel Alexandre Salim - 2.4.2-1 - Update to 2.4.2 (patches upstreamed) - Add missing dependency on python3-tkinter - Fix desktop icon location * Tue Jun 22 2021 Michel Alexandre Salim - 2.4.1-1 - Initial package ## END: Generated by rpmautospec