diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a750cec --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +/bleachbit*/ +/noarch/ +/review-*/ +*.log +*.rpm +*.tar.bz2 +*.tar.gz +*.tar.xz +*.zip diff --git a/bleachbit.spec b/bleachbit.spec new file mode 100644 index 0000000..99d637f --- /dev/null +++ b/bleachbit.spec @@ -0,0 +1,99 @@ +Name: bleachbit +Summary: Remove sensitive data and free up disk space +URL: https://www.bleachbit.org/ +Version: 4.0.0 +Release: 1%{?dist} +License: GPLv3+ and MIT +BuildArch: noarch + +Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: libappstream-glib +BuildRequires: make +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%if 0%{?rhel} && 0%{?rhel} < 8 +BuildRequires: python3-rpm-macros +%endif + +Requires: python(abi) >= 3.0 +Requires: gtk3 +Requires: usermode +Requires: python3-chardet +Requires: python3-gobject + +%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 +%setup -q + +# 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 + + + +%build +%py3_build +%make_build --directory ./po/ + +# Remove Windows-specific functionality. +make delete_windows_files + + + +%install +%make_install PYTHON=%{__python3} DESTDIR=%{buildroot} prefix=%{_prefix} INSTALL="%{_bindir}/install -Dp" +%make_install --directory ./po/ + +desktop-file-install --dir=%{buildroot}/%{_datadir}/applications/ org.bleachbit.BleachBit.desktop +mkdir -p %{buildroot}/%{_metainfodir}/ +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 + + + +%posttrans +update-desktop-database + + + +%files -f %{name}.lang +%doc README* CONTRIBUTING.md +%license COPYING +%{_bindir}/bleachbit* +%{_datadir}/applications/org.bleachbit.BleachBit.desktop +%{_metainfodir}/org.bleachbit.BleachBit.metainfo.xml +%{_datadir}/polkit-1/actions/org.bleachbit.policy +%{_datadir}/bleachbit/ +%{_datadir}/pixmaps/bleachbit.png + + + + + +%changelog +* Thu Apr 22 2020 Andrew Toskin - 4.0.0-1 +- Prepare to unretire package after upstream ported to GTK3 and Python3. diff --git a/dead.package b/dead.package deleted file mode 100644 index b23c881..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Doesn't install: https://bugzilla.redhat.com/show_bug.cgi?id=1739899 diff --git a/sources b/sources new file mode 100644 index 0000000..5ed77fd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bleachbit-4.0.0.tar.gz) = d5c27f08c80193a70d0d15592f980029563fd2153b5a5faee91248f3f89cc351e2ffefc84a39bcec458ef7e5feecd20a2281c122a2bc16f6836015c3f1f8420c