bleachbit-vl.spec 6.4 KB

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