alacarte-vl.spec 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: alacarte
  3. Version: 0.13.2
  4. Release: 1%{?_dist_release}
  5. Summary: Menu editor for the GNOME desktop
  6. Summary(ja): GNOME デスクトップ用メニューエディタ
  7. Group: Applications/System
  8. License: LGPLv2+
  9. URL: http://www.gnome.org
  10. Source0: http://download.gnome.org/sources/alacarte/0.13/%{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: python, python-devel, gettext
  14. BuildRequires: pygtk2-devel
  15. BuildRequires: pkgconfig
  16. BuildRequires: gnome-menus-devel >= 2.30.4
  17. BuildRequires: intltool
  18. BuildRequires: desktop-file-utils
  19. Requires: pygtk2, gnome-python
  20. Requires: gnome-menus >= 2.30.4
  21. Patch0: undo-delete.patch
  22. %description
  23. Alacarte is a graphical menu editor that lets you edit, add, and delete
  24. menu entries. It follows the freedesktop.org menu specification and
  25. should work with any desktop environment that uses this specification.
  26. %prep
  27. %setup -q
  28. %patch0 -p1 -b .undo-delete
  29. %build
  30. %configure
  31. make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make install DESTDIR=$RPM_BUILD_ROOT
  35. # desktop-file-install can't manipulate NotShowIn
  36. sed -i -e 's/NotShowIn=KDE;/OnlyShowIn=GNOME;/' \
  37. $RPM_BUILD_ROOT%{_datadir}/applications/alacarte.desktop
  38. desktop-file-validate \
  39. $RPM_BUILD_ROOT%{_datadir}/applications/alacarte.desktop
  40. %find_lang %{name}
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %post
  44. touch --no-create %{_datadir}/icons/hicolor
  45. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  46. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  47. fi
  48. %postun
  49. touch --no-create %{_datadir}/icons/hicolor
  50. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  51. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  52. fi
  53. %files -f %{name}.lang
  54. %defattr(-,root,root,-)
  55. %doc README AUTHORS COPYING
  56. %{python_sitelib}/Alacarte
  57. %{_bindir}/alacarte
  58. %{_datadir}/applications/alacarte.desktop
  59. %{_datadir}/alacarte
  60. %{_datadir}/icons/hicolor/16x16/apps/alacarte.png
  61. %{_datadir}/icons/hicolor/22x22/apps/alacarte.png
  62. %{_datadir}/icons/hicolor/24x24/apps/alacarte.png
  63. %{_datadir}/icons/hicolor/32x32/apps/alacarte.png
  64. %{_datadir}/icons/hicolor/48x48/apps/alacarte.png
  65. %{_datadir}/icons/hicolor/256x256/apps/alacarte.png
  66. %changelog
  67. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.13.2-1
  68. - new upstream release
  69. * Sat Apr 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.13.1-1
  70. - new upstream release
  71. * Sat Nov 7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.12.4-2
  72. - initial build for Vine Linux
  73. * Mon Sep 21 2009 Matthias Clasen <mclasen@redhat.com> - 0.12.4-1
  74. - Update to 0.12.4
  75. * Sat Sep 12 2009 Matthias Clasen <mclasen@redhat.com> - 0.12.3-2
  76. - Bump the gnome-menus requires
  77. * Tue Sep 8 2009 Matthias Clasen <mclasen@redhat.com> - 0.12.3-1
  78. - Update to 0.12.3
  79. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.1-2
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  81. * Sat May 16 2009 Matthias Clasen <mclasen@redhat.com> - 0.12.1-1
  82. - Update to 0.12.1
  83. * Tue Mar 17 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.10-1
  84. - Update to 0.11.10
  85. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.9-3
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  87. * Mon Feb 23 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.9-2
  88. - Only show in GNOME (#486887)
  89. * Tue Feb 17 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.9-1
  90. - Update to 0.11.9
  91. * Tue Feb 3 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.8-1
  92. - Update to 0.11.8
  93. * Tue Jan 20 2009 Matthias Clasen <mclasen@redhat.com> - 0.11.7-1
  94. - Update to 0.11.7
  95. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.6-6
  96. - Rebuild for Python 2.6
  97. * Fri Nov 21 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.6-5
  98. - Tweak %%summary and %%description
  99. * Fri Oct 17 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.6-4
  100. - Make undoing of deletion work
  101. * Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.6-3
  102. - Update to 0.11.6
  103. * Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.5-1
  104. - Update to 0.11.5
  105. * Thu Feb 21 2008 Matthias Clasen <mclasen@redhat.com> - 0.11.4-1
  106. - Update to 0.11.4
  107. * Sun Dec 02 2007 Todd Zullinger <tmz@pobox.com> - 0.11.3-5
  108. - put the python scripts in sitelib, not sitearch
  109. - remove autoconf, automake, and intltool BRs
  110. - don't run autoconf/automake in %%build
  111. - BR perl(XML::Parser)
  112. - remove smeg Obsoletes and Provides
  113. - minor rpmlint cleanups
  114. * Sat Aug 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.3-4
  115. - Fix the build with intltool 0.36
  116. - Update the license field
  117. * Fri Mar 23 2007 Ray Strode <rstrode@redhat.com> - 0.11.3-3
  118. - change url to gnome.org (bug 233237)
  119. * Tue Feb 13 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.3-2
  120. - Update to 0.11.3
  121. * Mon Feb 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.2-1.svn20070212
  122. - Bring back editing of the System menu
  123. * Fri Jan 26 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.1.1-2
  124. - Fix the Provides: line
  125. * Thu Jan 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.11.1.1-1
  126. - Update to 0.11.1.1
  127. * Wed Dec 20 2006 Matthias Clasen <mclasen@redhat.com> - 0.10.2-2
  128. - Update to 0.10.2
  129. * Sat Dec 9 2006 Matthias Clasen <mclasen@redhat.com> - 0.10.1-4
  130. - try again
  131. * Wed Dec 6 2006 Jeremy Katz <katzj@redhat.com> - 0.10.1-2
  132. - build against python 2.5
  133. * Sat Oct 21 2006 Matthias Clasen <mclasen@redhat.com> - 0.10.1-1
  134. - Update to 0.10.1
  135. * Mon Sep 4 2006 Matthias Clasen <mclasen@redhat.com> - 0.10.0-1.fc6
  136. - Update to 0.10.0
  137. * Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 0.9.90-7.fc6
  138. - Fix more build requires
  139. * Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 0.9.90-3.fc6
  140. - Add BR for pkgconfig
  141. * Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 0.9.90-1.fc6
  142. - Update to 0.9.90
  143. * Thu Aug 17 2006 Ray Strode <rstrode@redhat.com> - 0.8-8
  144. - initial build for Fedora Core
  145. * Wed Feb 15 2006 John Mahowald <jpmahowald@gmail.com> - 0.8-7
  146. - Rebuild for Fedora Extras 5
  147. * Fri Feb 3 2006 John Mahowald <jpmahowald@gmail.com> - 0.8-3
  148. - Fix stray reference to smeg
  149. - Use python sitearch macro from template
  150. * Sat Oct 29 2005 John Mahowald <jpmahowald@gmail.com> - 0.8-2
  151. - Rebuild
  152. * Thu Oct 27 2005 John Mahowald <jpmahowald@gmail.com> - 0.8-1
  153. - rename to alacarte
  154. - Update to 0.8
  155. * Thu Oct 20 2005 John Mahowald <jpmahowald@gmail.com> - 0.7.5-4
  156. - remove requires gnome-menus
  157. * Tue Aug 30 2005 John Mahowald <jpmahowald@gmail.com> - 0.7.5-3
  158. - Move to /usr/share
  159. * Tue Jun 28 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7.5-2
  160. - Desktop-file-utils for kde desktop entry as well as default one.
  161. * Wed Jun 08 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7.5-1
  162. - Rebuilt for 0.7.5
  163. * Sun Jun 06 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7.4-1
  164. - Rebuilt for 0.7.4
  165. * Wed Jun 01 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7.1-1
  166. - Rebuilt for 0.7.1
  167. - Smeg now use the stock gnome menu icon, removed pixmaps from %%files
  168. * Wed Jun 01 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7-2
  169. - Added missing dependency gnome-python2-gconf
  170. * Tue May 31 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.7-1
  171. - Rebuilt for 0.7
  172. * Mon May 30 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.6.2-2
  173. - Added desktop-file-utils to Buildrequires
  174. - Addded desktop-file-utils %%post and %%postun
  175. * Sat May 29 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.6.2-1
  176. - Rebuilt for 0.6.2
  177. * Mon May 23 2005 Sindre Pedersen Bjordal <foolish[AT]fedoraforum.org> - 0.5-1
  178. - Initial build