mozo-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Summary: The MATE menu editor
  2. Name: mozo
  3. Version: 1.8.0
  4. Release: 1%{?_dist_release}
  5. Source0: http://pub.mate-desktop.org/releases/1.8/%{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. Obsoletes: mate-menu-editor < 1.8.0
  22. Provides: mate-menu-editor = %{version}-%{name}
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. BuildArch: noarch
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. Packager: Takemikaduchi
  28. %description
  29. Mozo(mate-menu-editor) is a menu editor for MATE using the
  30. freedesktop.org menu specification.
  31. %prep
  32. %setup -q
  33. %build
  34. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  35. %configure \
  36. --disable-static
  37. %{__make} %{?_smp_mflags}
  38. %install
  39. %{__rm} -rf ${RPM_BUILD_ROOT}
  40. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  41. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  42. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  43. %find_lang %{name}
  44. %clean
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %post
  47. /sbin/ldconfig
  48. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  49. touch --no-create %{_datadir}/icons/hicolor > /dev/null || :
  50. %postun
  51. /sbin/ldconfig
  52. if [ $1 -eq 0 ]; then
  53. touch --no-create %{_datadir}/icons/hicolor > /dev/null || :
  54. gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || :
  55. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  56. fi
  57. %posttrans
  58. gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || :
  59. %files -f %{name}.lang
  60. %defattr(-,root,root,-)
  61. %doc COPYING ChangeLog NEWS README
  62. %{_bindir}/%{name}
  63. %{python_sitelib}/Mozo
  64. %{_datadir}/applications/%{name}.desktop
  65. %{_datadir}/icons/*/*/*
  66. %{_datadir}/%{name}/%{name}.ui
  67. %{_mandir}/man1/%{name}.1.gz
  68. %changelog
  69. * Thu Apr 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  70. - new upstream release
  71. - rename package
  72. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-2
  73. - rebuild with VineSeed environment
  74. * Mon Sep 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  75. - initial build