bleachbit-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. %define _prefix /usr
  2. Name: bleachbit
  3. Version: 0.9.1
  4. Release: 2%{?_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. * Tue Feb 21 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-2
  97. - rebuilt with python-2.7
  98. * Wed Nov 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  99. - new upstream release
  100. * Sat Sep 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-1
  101. - new upstream release
  102. * Tue Jun 21 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.8-1
  103. - new upstream release
  104. * Wed Feb 16 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.7-1
  105. - new upstream release
  106. * Mon Jan 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.6-1
  107. - new upstream release
  108. * Sun Jan 2 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.5-1
  109. - new upstream release
  110. - added Requires: python-simplejson
  111. * Sat Dec 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.4-1
  112. - new upstream release
  113. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-1
  114. - new upstream release
  115. * Tue Nov 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.2-1
  116. - new upstream release
  117. * Wed Oct 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.1-1
  118. - new upstream release
  119. * Sat Jun 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.0-1
  120. - new upstream release
  121. * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.4-1
  122. - new upstream release
  123. - fixed Japanese description
  124. * Sun Feb 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.3-1
  125. - new upstream release
  126. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-2
  127. - rebuilt with python-2.6.4
  128. * Tue Dec 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
  129. - new upstream release
  130. * Tue Nov 10 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.1-1
  131. - new upstream release
  132. * Fri Oct 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.0-1
  133. - new upstream release
  134. - added Patch0 from Debian to disable update check
  135. * Sun Oct 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.5-1
  136. - new upstream release
  137. * Thu Sep 24 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-2
  138. - added BuildRequires: gettext
  139. - added Requires: gnome-python
  140. - changed Requires: pygtk2 >= 2.6
  141. - changed description/ -l ja
  142. - deleted Windows-specific cleaners and modules
  143. - changed program path in root
  144. * Thu Sep 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-1
  145. - new upstream release
  146. * Thu Sep 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-1
  147. - new upstream release
  148. * Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
  149. - new upstream release
  150. * Tue Aug 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.0-1
  151. - new upstream release
  152. * Fri Jul 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-1
  153. - new upstream release
  154. * Thu Jul 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.3-1
  155. - new upstream release
  156. * Tue Jun 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1
  157. - new upstream release
  158. * Fri Jun 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.1-1
  159. - new upstream release
  160. * Sun Jun 7 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.0-1
  161. - new upstream release
  162. * Fri May 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.2-1
  163. - initial build for VineSeed