mate-session-manager-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. %define major_ver 1.20
  2. %define ver %{major_ver}.2
  3. %define rel 1
  4. Summary: The MATE Session Handler
  5. Name: mate-session-manager
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz
  9. License: GPLv2
  10. Group: User Interface/Desktops
  11. URL: https://mate-desktop.org/
  12. # patch for Vine
  13. Patch1000: 0001-add-elogind-support.patch
  14. Patch1001: mate-session-manager-1.18.0-use-vine-sleep-helper.patch
  15. Patch1002: mate-session-manager-1.12.0-mate-wm.patch
  16. BuildRequires: mate-common
  17. BuildRequires: mate-desktop-devel >= 1.17.0
  18. BuildRequires: gtk3-devel
  19. BuildRequires: dbus-glib-devel
  20. BuildRequires: libSM-devel
  21. BuildRequires: libXtst-devel
  22. BuildRequires: gtk-doc
  23. BuildRequires: autoconf
  24. BuildRequires: automake
  25. BuildRequires: xorg-x11-xtrans-devel
  26. BuildRequires: elogind-devel
  27. Requires: vine-sleep-helper
  28. Requires(posttrans,postun): glib2
  29. Requires(post,postun): gtk2
  30. Requires(post,postun): desktop-file-utils
  31. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. Packager: Takemikaduchi, iwaim
  35. %description
  36. mate-session contains the MATE session manager, as well as a
  37. configuration program to choose applications starting on login.
  38. %prep
  39. %setup -q
  40. %patch1000 -p1 -b .elogind
  41. %patch1001 -p1 -b .vine
  42. %patch1002 -p1 -b .vine
  43. %build
  44. NOCONFIGURE=1 ./autogen.sh
  45. %configure \
  46. --disable-static \
  47. --disable-upower \
  48. --with-default-wm=mate-wm
  49. %{__make} %{?_smp_mflags}
  50. %install
  51. %{__rm} -rf ${RPM_BUILD_ROOT}
  52. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  53. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  54. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  55. %find_lang %{name}
  56. %clean
  57. %{__rm} -rf ${RPM_BUILD_ROOT}
  58. %post
  59. /sbin/ldconfig
  60. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  61. touch --no-create %{_datadir}/icons/hicolor
  62. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  63. %postun
  64. /sbin/ldconfig
  65. if [ $1 -eq 0 ]; then
  66. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  67. touch --no-create %{_datadir}/icons/hicolor
  68. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  69. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  70. fi
  71. %posttrans
  72. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  73. %files -f %{name}.lang
  74. %defattr(-,root,root,-)
  75. %doc COPYING ChangeLog NEWS README
  76. %{_bindir}/mate-session
  77. %{_bindir}/mate-session-inhibit
  78. %{_bindir}/mate-session-properties
  79. %{_bindir}/mate-session-save
  80. %{_bindir}/mate-wm
  81. %{_datadir}/applications/mate-session-properties.desktop
  82. %{_datadir}/applications/mate-wm.desktop
  83. %{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml
  84. %{_datadir}/icons/hicolor/*/*/*
  85. %{_datadir}/mate-session-manager/gsm-inhibit-dialog.ui
  86. %{_datadir}/mate-session-manager/session-properties.ui
  87. %{_datadir}/xsessions/mate.desktop
  88. %{_mandir}/man1/*.1.gz
  89. %changelog
  90. * Wed Dec 26 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.2-1
  91. - updated to 1.20.2.
  92. - added elogind support.
  93. * Sun May 20 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.20.0-1
  94. - update to 1.20.0
  95. * Thu Jan 18 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.2-1
  96. - update to 1.18.2
  97. * Mon Apr 3 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1
  98. - update to 1.18.0
  99. - update use vine-sleep-helper patch (Patch1001)
  100. - update Packager tag
  101. * Sun Mar 26 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.1-1
  102. - update to 1.16.1
  103. - add BuildRequires: xorg-x11-xtrans-devel
  104. * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1
  105. - new upstream release
  106. - update GTK+ version
  107. - BR: gtk3-devel
  108. * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1
  109. - new upstream release
  110. * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.2-1
  111. - new upstream release
  112. - update Patch1001 (mate-session-manager-1.12.2-use-vine-sleep-helper.patch)
  113. * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1
  114. - new upstream release
  115. * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1
  116. - new upstream release
  117. - add Patch1002 (mate-session-manager-1.12.0-mate-wm.patch)
  118. * Wed Sep 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-3
  119. - add configure option (--with-default-wm=mate-wm)
  120. * Sun Aug 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-2
  121. - add Patch1001 (mate-session-manager-1.10.2-use-vine-sleep-helper.patch)
  122. - add Requires: vine-sleep-helper
  123. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1
  124. - new upstream release
  125. * Sat Jun 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1
  126. - new upstream release
  127. * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  128. - new upstream release
  129. - add BuildRequires: mate-desktop-devel
  130. * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2
  131. - remove BuildRequires: libupower09-devel
  132. * Mon Apr 14 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  133. - new upstream release
  134. - add BuildRequires: libupower09-devel
  135. - remove BuildRequires: upower-devel
  136. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-2
  137. - rebuild with VineSeed environment
  138. * Sun Sep 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.1-1
  139. - new upstream release
  140. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  141. - new upstream release
  142. - remove BuildRequires: mate-conf-devel
  143. * Wed Aug 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  144. - new upstream release
  145. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1
  146. - new upstream release
  147. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  148. - change category
  149. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  150. - initial build for Vine Linux