mate-menu-editor-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Summary: The MATE menu editor
  2. Name: mate-menu-editor
  3. Version: 1.6.0
  4. Release: 2%{?_dist_release}
  5. Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: User Interface/Desktops
  8. URL: http://mate-desktop.org/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-doc-utils
  11. BuildRequires: mate-menus-devel
  12. BuildRequires: pygtk2-devel >= 2.15.1
  13. BuildRequires: pygobject-devel >= 2.13.0
  14. BuildRequires: gtk-doc
  15. BuildRequires: autoconf
  16. BuildRequires: automake
  17. Requires: pygtk2
  18. Requires: pygobject
  19. Requires: mate-menus-python
  20. Requires(post,postun): desktop-file-utils
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildArch: noarch
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: Takemikaduchi
  26. %description
  27. Mozo(mate-menu-editor) is a menu editor for MATE using the
  28. freedesktop.org menu specification.
  29. %prep
  30. %setup -q
  31. %build
  32. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  33. %configure \
  34. --disable-static
  35. %{__make} %{?_smp_mflags}
  36. %install
  37. %{__rm} -rf ${RPM_BUILD_ROOT}
  38. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  39. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  40. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  41. %find_lang mozo
  42. %clean
  43. %{__rm} -rf ${RPM_BUILD_ROOT}
  44. %post
  45. /sbin/ldconfig
  46. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  47. touch --no-create %{_datadir}/icons/hicolor > /dev/null || :
  48. %postun
  49. /sbin/ldconfig
  50. if [ $1 -eq 0 ]; then
  51. touch --no-create %{_datadir}/icons/hicolor > /dev/null || :
  52. gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || :
  53. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  54. fi
  55. %posttrans
  56. gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || :
  57. %files -f mozo.lang
  58. %defattr(-,root,root,-)
  59. %doc COPYING ChangeLog NEWS README
  60. %{_bindir}/mozo
  61. %{python_sitelib}/Mozo
  62. %{_datadir}/applications/mozo.desktop
  63. %{_datadir}/icons/*/*/*
  64. %{_datadir}/mozo/mozo.ui
  65. %changelog
  66. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-2
  67. - rebuild with VineSeed environment
  68. * Mon Sep 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  69. - initial build