bleachbit-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. %define _prefix /usr
  2. Name: bleachbit
  3. Version: 0.7.3
  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. * Sun Feb 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.3-1
  96. - new upstream release
  97. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-2
  98. - rebuilt with python-2.6.4
  99. * Tue Dec 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
  100. - new upstream release
  101. * Tue Nov 10 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.1-1
  102. - new upstream release
  103. * Fri Oct 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.0-1
  104. - new upstream release
  105. - added Patch0 from Debian to disable update check
  106. * Sun Oct 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.5-1
  107. - new upstream release
  108. * Thu Sep 24 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-2
  109. - added BuildRequires: gettext
  110. - added Requires: gnome-python
  111. - changed Requires: pygtk2 >= 2.6
  112. - changed description/ -l ja
  113. - deleted Windows-specific cleaners and modules
  114. - changed program path in root
  115. * Thu Sep 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-1
  116. - new upstream release
  117. * Thu Sep 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-1
  118. - new upstream release
  119. * Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
  120. - new upstream release
  121. * Tue Aug 4 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.0-1
  122. - new upstream release
  123. * Fri Jul 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-1
  124. - new upstream release
  125. * Thu Jul 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.3-1
  126. - new upstream release
  127. * Tue Jun 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1
  128. - new upstream release
  129. * Fri Jun 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.1-1
  130. - new upstream release
  131. * Sun Jun 7 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.0-1
  132. - new upstream release
  133. * Fri May 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.2-1
  134. - initial build for VineSeed