mozo-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. %define major_ver 1.18
  2. %define ver %{major_ver}.0
  3. %define rel 1
  4. Summary: The MATE menu editor
  5. Name: mozo
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz
  9. License: LGPLv2.1
  10. Group: User Interface/Desktops
  11. URL: http://mate-desktop.org/
  12. BuildRequires: mate-common
  13. BuildRequires: mate-menus-devel
  14. BuildRequires: pygobject3-devel >= 2.13.0
  15. BuildRequires: gtk-doc
  16. BuildRequires: autoconf
  17. BuildRequires: automake
  18. Requires: pygtk2
  19. Requires: pygobject
  20. Requires: mate-menus-python
  21. Requires(post,postun): desktop-file-utils
  22. Obsoletes: mate-menu-editor < 1.8.0
  23. Provides: mate-menu-editor = %{version}-%{name}
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. BuildArch: noarch
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: Takemikaduchi, iwaim
  29. %description
  30. Mozo(mate-menu-editor) is a menu editor for MATE using the
  31. freedesktop.org menu specification.
  32. %prep
  33. %setup -q
  34. %build
  35. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  36. %configure \
  37. --disable-static
  38. %{__make} %{?_smp_mflags}
  39. %install
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  42. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  43. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  44. %find_lang %{name}
  45. %clean
  46. %{__rm} -rf ${RPM_BUILD_ROOT}
  47. %post
  48. /sbin/ldconfig
  49. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  50. touch --no-create %{_datadir}/icons/hicolor > /dev/null || :
  51. %postun
  52. /sbin/ldconfig
  53. if [ $1 -eq 0 ]; then
  54. touch --no-create %{_datadir}/icons/hicolor > /dev/null || :
  55. gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || :
  56. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  57. fi
  58. %posttrans
  59. gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || :
  60. %files -f %{name}.lang
  61. %defattr(-,root,root,-)
  62. %doc COPYING ChangeLog NEWS README
  63. %{_bindir}/%{name}
  64. %{python_sitelib}/Mozo
  65. %{_datadir}/applications/%{name}.desktop
  66. %{_datadir}/icons/*/*/*
  67. %{_datadir}/%{name}/%{name}.ui
  68. %{_mandir}/man1/%{name}.1.gz
  69. %changelog
  70. * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1
  71. - update to 1.18.0
  72. - drop BR: pygtk2-devel
  73. * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1
  74. - new upstream release
  75. - update License
  76. - update Packager
  77. * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1
  78. - new upstream release
  79. - change BuildRequires: pygobject3-devel instead of pygobject-devel
  80. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  81. - new upstream release
  82. * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1
  83. - new upstream release
  84. * Sat May 23 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  85. - new upstream release
  86. * Thu Apr 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  87. - new upstream release
  88. - rename package
  89. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-2
  90. - rebuild with VineSeed environment
  91. * Mon Sep 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  92. - initial build