bleachbit-vl.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. %define _prefix /usr
  2. Name: bleachbit
  3. Version: 1.6
  4. Release: 1%{?_dist_release}
  5. Summary: Tool for remove unnecessary files, free space, and maintain privacy
  6. Summary(ja): 不要ファイルの削除、スペースの解放、プライバシーの保全のためのツール
  7. Group: Applications/System
  8. License: GPLv3
  9. URL: http://bleachbit.sourceforge.net/
  10. Source0: %{name}-%{version}.tar.bz2
  11. Patch0: no_update.patch
  12. #Patch1: add_liferea_cleaner.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. BuildRequires: python-devel
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: gettext
  18. Requires: gnome-python
  19. Requires: python
  20. Requires: python-simplejson
  21. Requires: pygtk2 >= 2.6
  22. Requires: usermode
  23. %description
  24. Delete traces of your activities and other junk files to free disk
  25. space and maintain privacy. BleachBit identifies and erases
  26. broken menu entries, cache, cookies, localizations, recent document
  27. lists, and temporary files in Firefox, OpenOffice.org, Bash, and 50
  28. other applications.
  29. %description -l ja
  30. あなたの活動の形跡及びその他不要なファイルを
  31. ディスクスペース確保とプライバシー保護のために削除します。
  32. BleachBit は壊れたメニューエントリ・キャッシュ・クッキー・
  33. ローカライゼーション・最近使用したドキュメントのリスト・
  34. Firefox・OpenOffice.org・bash、その他50のアプリケーションの
  35. 一時ファイルを検出し、削除します。
  36. %prep
  37. %setup -q
  38. %patch0 -p1
  39. %build
  40. make -C po local
  41. %{__python} setup.py build
  42. cp %{name}.desktop %{name}-root.desktop
  43. sed -i -e 's/Name=BleachBit$/Name=BleachBit as Administrator/g' %{name}-root.desktop
  44. cat > bleachbit.pam <<EOF
  45. #%PAM-1.0
  46. auth include config-util
  47. account include config-util
  48. session include config-util
  49. EOF
  50. cat > bleachbit.console <<EOF
  51. USER=root
  52. PROGRAM=/usr/bin/bleachbit
  53. SESSION=true
  54. EOF
  55. # remove Windows-specific cleaners
  56. grep -l os=.windows. cleaners/*xml | xargs rm -f
  57. # remove Windows-specific modules
  58. rm -f bleachbit/Windows.py
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix}
  62. desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
  63. sed -i -e 's/Exec=bleachbit$/Exec=bleachbit-root/g' %{name}-root.desktop
  64. desktop-file-install \
  65. --dir=%{buildroot}/%{_datadir}/applications/ \
  66. --vendor="" %{name}-root.desktop
  67. # consolehelper and userhelper
  68. ln -s consolehelper %{buildroot}/%{_bindir}/%{name}-root
  69. mkdir -p %{buildroot}/%{_sbindir}
  70. ln -s ../..%{_datadir}/%{name}/GUI.py %{buildroot}/%{_sbindir}/%{name}-root
  71. mkdir -p %{buildroot}%{_sysconfdir}/pam.d
  72. install -m 644 %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name}-root
  73. mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
  74. install -m 644 %{name}.console %{buildroot}%{_sysconfdir}/security/console.apps/%{name}-root
  75. make -C po install DESTDIR=$RPM_BUILD_ROOT
  76. %find_lang %{name}
  77. %__rm %{buildroot}%{_datadir}/%{name}/*.py[co]
  78. %clean
  79. rm -rf $RPM_BUILD_ROOT
  80. %post
  81. update-desktop-database &> /dev/null ||:
  82. %postun
  83. update-desktop-database &> /dev/null ||:
  84. %files -f %{name}.lang
  85. %defattr(-,root,root)
  86. %doc COPYING
  87. %config(noreplace) %{_sysconfdir}/pam.d/%{name}-root
  88. %config(noreplace) %{_sysconfdir}/security/console.apps/%{name}-root
  89. %{_bindir}/%{name}-root
  90. %{_sbindir}/%{name}-root
  91. %{_bindir}/%{name}
  92. %dir %{_datadir}/%{name}
  93. %{_datadir}/%{name}/*
  94. %{_datadir}/pixmaps/*.png
  95. %{_datadir}/applications/*.desktop
  96. %changelog
  97. * Tue Apr 28 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6-1
  98. - new upstream release
  99. - deleted Patch1 to update upstream
  100. * Sat Aug 30 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2-1
  101. - new upstream release
  102. * Mon Dec 23 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1
  103. - new upstream release
  104. * Sat Jul 06 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.6-1
  105. - new upstream release
  106. * Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.5-1
  107. - new upstream release
  108. * Fri Jan 11 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.4-1
  109. - new upstream release
  110. * Wed Aug 01 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.3-1
  111. - new upstream release
  112. * Sat Jun 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.2-2
  113. - added Patch1 to add liferea-1.8 support
  114. * Wed May 02 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.2-1
  115. - new upstream release
  116. * Tue Feb 21 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-2
  117. - rebuilt with python-2.7
  118. * Wed Nov 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  119. - new upstream release
  120. * Sat Sep 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-1
  121. - new upstream release
  122. * Tue Jun 21 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.8-1
  123. - new upstream release
  124. * Wed Feb 16 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.7-1
  125. - new upstream release
  126. * Mon Jan 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.6-1
  127. - new upstream release
  128. * Sun Jan 2 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.5-1
  129. - new upstream release
  130. - added Requires: python-simplejson
  131. * Sat Dec 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.4-1
  132. - new upstream release
  133. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-1
  134. - new upstream release
  135. * Tue Nov 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.2-1
  136. - new upstream release
  137. * Wed Oct 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.1-1
  138. - new upstream release
  139. * Sat Jun 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.0-1
  140. - new upstream release
  141. * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.4-1
  142. - new upstream release
  143. - fixed Japanese description
  144. * Sun Feb 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.3-1
  145. - new upstream release
  146. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-2
  147. - rebuilt with python-2.6.4
  148. * Tue Dec 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
  149. - new upstream release
  150. * Tue Nov 10 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.1-1
  151. - new upstream release
  152. * Fri Oct 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.0-1
  153. - new upstream release
  154. - added Patch0 from Debian to disable update check
  155. * Sun Oct 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.5-1
  156. - new upstream release
  157. * Thu Sep 24 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-2
  158. - added BuildRequires: gettext
  159. - added Requires: gnome-python
  160. - changed Requires: pygtk2 >= 2.6
  161. - changed description/ -l ja
  162. - deleted Windows-specific cleaners and modules
  163. - changed program path in root
  164. * Thu Sep 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-1
  165. - new upstream release
  166. * Thu Sep 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-1
  167. - new upstream release
  168. * Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
  169. - new upstream release
  170. * Tue Aug 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.0-1
  171. - new upstream release
  172. * Fri Jul 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-1
  173. - new upstream release
  174. * Thu Jul 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.3-1
  175. - new upstream release
  176. * Tue Jun 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1
  177. - new upstream release
  178. * Fri Jun 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.1-1
  179. - new upstream release
  180. * Sun Jun 7 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.0-1
  181. - new upstream release
  182. * Fri May 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.2-1
  183. - initial build for VineSeed