diff --git a/.gitignore b/.gitignore index 50b2012..a93d1df 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ bleachbit-0.8.0.tar.lzma /bleachbit-1.2.tar.bz2 /bleachbit-1.3.tar.bz2 /bleachbit-1.4.tar.bz2 +/bleachbit-1.6.tar.bz2 diff --git a/bleachbit.spec b/bleachbit.spec index ee826ed..2e21567 100644 --- a/bleachbit.spec +++ b/bleachbit.spec @@ -1,5 +1,5 @@ Name: bleachbit -Version: 1.4 +Version: 1.6 Release: 1%{?dist} Summary: Python utility to free disk space and improve privacy License: GPLv3+ @@ -21,18 +21,32 @@ shortcuts. It wipes clean the cache and history list of many common programs. %prep %setup -q +# Disable update notifications or it will left collecting unemployment of +# yum/dnf and myself... +sed -i -e '\@online_update_notification_enabled@s/^.*$/online_update_notification_enabled = False/g' bleachbit/Common.py + +# Drop deprecated line in desktop file. +sed -i '/Encoding/d' bleachbit.desktop + %build make -C po local %{__python2} setup.py build %install %make_install INSTALL="install -p" prefix=%{_prefix} + +# Drop shebangs as files in _datadir usually don't need this. sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/bleachbit/CLI.py sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/bleachbit/GUI.py %find_lang %{name} %check +make -C cleaners tests +# test_start_with_computer will not be executed successfully as the relevant +# privileges are not granted for normal users for creating symlinks to +# /usr/share. +%{__python2} tests/TestUnix.py -v || true desktop-file-validate %{buildroot}%{_datadir}/applications/bleachbit.desktop %files -f %{name}.lang @@ -44,6 +58,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/bleachbit.desktop %exclude %{_datadir}/%{name}/Windows.py* %changelog +* Thu Nov 27 2014 Christopher Meng - 1.6-1 +- Update to 1.6 + * Tue Sep 16 2014 Christopher Meng - 1.4-1 - Update to 1.4 diff --git a/sources b/sources index ac5ca7a..8a5098b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f2d7eb4b61c593338d7a8579473a288c bleachbit-1.4.tar.bz2 +10e12cd3896dcfee2c4e56c83850298d bleachbit-1.6.tar.bz2