bleachbit-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. %define _prefix /usr
  2. Name: bleachbit
  3. Version: 1.0
  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. %patch1 -p1
  40. %build
  41. make -C po local
  42. %{__python} setup.py build
  43. cp %{name}.desktop %{name}-root.desktop
  44. sed -i -e 's/Name=BleachBit$/Name=BleachBit as Administrator/g' %{name}-root.desktop
  45. cat > bleachbit.pam <<EOF
  46. #%PAM-1.0
  47. auth include config-util
  48. account include config-util
  49. session include config-util
  50. EOF
  51. cat > bleachbit.console <<EOF
  52. USER=root
  53. PROGRAM=/usr/bin/bleachbit
  54. SESSION=true
  55. EOF
  56. # remove Windows-specific cleaners
  57. grep -l os=.windows. cleaners/*xml | xargs rm -f
  58. # remove Windows-specific modules
  59. rm -f bleachbit/Windows.py
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix}
  63. desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
  64. sed -i -e 's/Exec=bleachbit$/Exec=bleachbit-root/g' %{name}-root.desktop
  65. desktop-file-install \
  66. --dir=%{buildroot}/%{_datadir}/applications/ \
  67. --vendor="" %{name}-root.desktop
  68. # consolehelper and userhelper
  69. ln -s consolehelper %{buildroot}/%{_bindir}/%{name}-root
  70. mkdir -p %{buildroot}/%{_sbindir}
  71. ln -s ../..%{_datadir}/%{name}/GUI.py %{buildroot}/%{_sbindir}/%{name}-root
  72. mkdir -p %{buildroot}%{_sysconfdir}/pam.d
  73. install -m 644 %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name}-root
  74. mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
  75. install -m 644 %{name}.console %{buildroot}%{_sysconfdir}/security/console.apps/%{name}-root
  76. make -C po install DESTDIR=$RPM_BUILD_ROOT
  77. %find_lang %{name}
  78. %__rm %{buildroot}%{_datadir}/%{name}/*.py[co]
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT
  81. %post
  82. update-desktop-database &> /dev/null ||:
  83. %postun
  84. update-desktop-database &> /dev/null ||:
  85. %files -f %{name}.lang
  86. %defattr(-,root,root)
  87. %doc COPYING
  88. %config(noreplace) %{_sysconfdir}/pam.d/%{name}-root
  89. %config(noreplace) %{_sysconfdir}/security/console.apps/%{name}-root
  90. %{_bindir}/%{name}-root
  91. %{_sbindir}/%{name}-root
  92. %{_bindir}/%{name}
  93. %dir %{_datadir}/%{name}
  94. %{_datadir}/%{name}/*
  95. %{_datadir}/pixmaps/*.png
  96. %{_datadir}/applications/*.desktop
  97. %changelog
  98. * Mon Dec 23 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1
  99. - new upstream release
  100. * Sat Jul 06 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.6-1
  101. - new upstream release
  102. * Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.5-1
  103. - new upstream release
  104. * Fri Jan 11 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.4-1
  105. - new upstream release
  106. * Wed Aug 01 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.3-1
  107. - new upstream release
  108. * Sat Jun 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.2-2
  109. - added Patch1 to add liferea-1.8 support
  110. * Wed May 02 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.2-1
  111. - new upstream release
  112. * Tue Feb 21 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-2
  113. - rebuilt with python-2.7
  114. * Wed Nov 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  115. - new upstream release
  116. * Sat Sep 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-1
  117. - new upstream release
  118. * Tue Jun 21 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.8-1
  119. - new upstream release
  120. * Wed Feb 16 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.7-1
  121. - new upstream release
  122. * Mon Jan 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.6-1
  123. - new upstream release
  124. * Sun Jan 2 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.5-1
  125. - new upstream release
  126. - added Requires: python-simplejson
  127. * Sat Dec 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.4-1
  128. - new upstream release
  129. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-1
  130. - new upstream release
  131. * Tue Nov 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.2-1
  132. - new upstream release
  133. * Wed Oct 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.1-1
  134. - new upstream release
  135. * Sat Jun 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.0-1
  136. - new upstream release
  137. * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.4-1
  138. - new upstream release
  139. - fixed Japanese description
  140. * Sun Feb 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.3-1
  141. - new upstream release
  142. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-2
  143. - rebuilt with python-2.6.4
  144. * Tue Dec 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
  145. - new upstream release
  146. * Tue Nov 10 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.1-1
  147. - new upstream release
  148. * Fri Oct 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.0-1
  149. - new upstream release
  150. - added Patch0 from Debian to disable update check
  151. * Sun Oct 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.5-1
  152. - new upstream release
  153. * Thu Sep 24 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-2
  154. - added BuildRequires: gettext
  155. - added Requires: gnome-python
  156. - changed Requires: pygtk2 >= 2.6
  157. - changed description/ -l ja
  158. - deleted Windows-specific cleaners and modules
  159. - changed program path in root
  160. * Thu Sep 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-1
  161. - new upstream release
  162. * Thu Sep 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-1
  163. - new upstream release
  164. * Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
  165. - new upstream release
  166. * Tue Aug 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.0-1
  167. - new upstream release
  168. * Fri Jul 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-1
  169. - new upstream release
  170. * Thu Jul 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.3-1
  171. - new upstream release
  172. * Tue Jun 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1
  173. - new upstream release
  174. * Fri Jun 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.1-1
  175. - new upstream release
  176. * Sun Jun 7 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.0-1
  177. - new upstream release
  178. * Fri May 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.2-1
  179. - initial build for VineSeed