# EPEL7 changes for Python and metainfodir %if 0%{?rhel} && 0%{?rhel} < 8 %global __python %{__python3} %global _metainfodir %{_datadir}/metainfo %endif Name: bleachbit Version: 4.6.0 Release: 2%{?dist} Summary: Remove sensitive data and free up disk space License: GPL-3.0-or-later URL: https://www.bleachbit.org/ Source: https://github.com/bleachbit/bleachbit/archive/v%{version}/%{name}-%{version}.tar.gz Patch0: no_update.patch # https://github.com/bleachbit/bleachbit/issues/950 Patch1: disable_policykit.patch BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: libappstream-glib BuildRequires: make BuildRequires: python3-devel %if 0%{?rhel} && 0%{?rhel} < 8 BuildRequires: python3-rpm-macros %endif BuildRequires: pkgconfig(systemd) Requires: gtk3 Requires: python3-chardet %if 0%{?rhel} && 0%{?rhel} < 8 Requires: python36-gobject %else Requires: python3-gobject %endif %description Delete traces of your computer activity and other junk files to free disk space and maintain privacy. With BleachBit, you can free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. Designed for Linux and Windows systems, it wipes clean thousands of applications including Firefox, Internet Explorer, Adobe Flash, Google Chrome, Opera, Safari, and many more. Beyond simply deleting files, BleachBit includes advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and cleaning Web browser profiles to make them run faster. %prep %autosetup -p1 # Disable update notifications, since package will be updated by DNF or Packagekit. sed 's/online_update_notification_enabled = True/online_update_notification_enabled = False/g' --in-place ./bleachbit/__init__.py # These get installed to %%{_datadir} as non-executable files, and so shouldn't need a shebang at all. find ./bleachbit/ -type f -iname '*.py' -exec sed --regexp-extended '1s|^#! ?/.+$||g' --in-place '{}' + # Replace any remaining env shebangs, or shebangs calling unversioned or unnecessarily specifically versioned Python, with plain python3. find ./ -type f -iname '*.py' -exec sed --regexp-extended '1s|^#! ?/usr/bin/env python3?$|#!%{_bindir}/python3|g' --in-place '{}' + find ./ -type f -iname '*.py' -exec sed --regexp-extended '1s|^#! ?/usr/bin/python[[:digit:][:punct:]]*$|#!%{_bindir}/python3|g' --in-place '{}' + # SafeConfigParser class removed from the configparser module in Python 3.12 sed -i -e "s|SafeConfigParser|ConfigParser|" bleachbit/__init__.py %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel make -C po local # Remove Windows-specific functionality. %make_build delete_windows_files %install %make_install prefix=%{_prefix} desktop-file-install --dir=%{buildroot}/%{_datadir}/applications/ org.bleachbit.BleachBit.desktop install -Dp org.bleachbit.BleachBit.metainfo.xml %{buildroot}/%{_metainfodir}/ %find_lang %{name} %check desktop-file-validate %{buildroot}/%{_datadir}/applications/org.bleachbit.BleachBit.desktop appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/org.bleachbit.BleachBit.metainfo.xml %files -f %{name}.lang %doc README* doc %license COPYING %{_bindir}/bleachbit %{_datadir}/applications/org.bleachbit.BleachBit.desktop %{_datadir}/bleachbit %{_datadir}/pixmaps/bleachbit.png %{_metainfodir}/org.bleachbit.BleachBit.metainfo.xml %changelog * Wed Jul 17 2024 Fedora Release Engineering - 4.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Feb 22 2024 Ali Erdinc Koroglu - 4.6.0-1 - Update to 4.6.0 * Tue Jan 23 2024 Fedora Release Engineering - 4.4.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 4.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 28 2023 Ali Erdinc Koroglu - 4.4.2-4 * Python 3.12 fix (RHBZ #2226993) * Wed Jul 19 2023 Fedora Release Engineering - 4.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jan 18 2023 Fedora Release Engineering - 4.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jul 25 2022 Ali Erdinc Koroglu - 4.4.2-1 - Update to 4.4.2 (RHBZ #2016863) * Wed Jul 20 2022 Fedora Release Engineering - 4.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 4.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Sep 13 2021 Audrey Toskin - 4.4.0-1 - Bump to upstream version 4.4.0, with upstream enhancements documented here: https://www.bleachbit.org/news/bleachbit-440 * Wed Jul 21 2021 Fedora Release Engineering - 4.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 15 2021 Audrey Toskin - 4.2.0-2 - Adjust package spec to build for EPEL7. * Wed Jan 6 2021 Audrey Toskin - 4.2.0-1 - Bump to upstream version 4.2.0, which, among other things, adds new cleaners and regular expression-based searches during deep scans. * Mon Jul 27 2020 Fedora Release Engineering - 4.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild