bleachbit-vl.spec 5.9 KB

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