bleachbit-vl.spec 5.2 KB

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