mate-session-manager-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. Summary: The MATE Session Handler
  2. Name: mate-session-manager
  3. Version: 1.2.0
  4. Release: 1%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: User Interface/Desktops
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-conf-devel
  11. BuildRequires: gtk2-devel
  12. BuildRequires: dbus-glib-devel
  13. BuildRequires: upower-devel
  14. BuildRequires: libSM-devel
  15. BuildRequires: libXtst-devel
  16. BuildRequires: gtk-doc
  17. BuildRequires: autoconf
  18. BuildRequires: automake
  19. Requires(post,pre,preun): mate-conf
  20. Requires(post,postun): desktop-file-utils
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: Takemikaduchi
  25. %description
  26. mate-session contains the MATE session manager, as well as a
  27. configuration program to choose applications starting on login.
  28. %prep
  29. %setup -q
  30. %build
  31. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  32. %configure \
  33. --disable-static \
  34. --disable-scrollkeeper
  35. %{__make} %{?_smp_mflags}
  36. %install
  37. %{__rm} -rf ${RPM_BUILD_ROOT}
  38. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  39. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  40. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  41. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  42. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  43. %find_lang mate-session
  44. %clean
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %post
  47. /sbin/ldconfig
  48. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  49. SCHEMAS=" \
  50. mate-session.schemas"
  51. for S in $SCHEMAS; do
  52. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  53. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  54. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  55. touch --no-create %{_datadir}/icons/hicolor
  56. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  57. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  58. fi
  59. %pre
  60. if [ "$1" -gt 1 ]; then
  61. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  62. SCHEMAS=" \
  63. mate-session.schemas"
  64. for S in $SCHEMAS; do
  65. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  66. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  67. fi
  68. %preun
  69. if [ "$1" -eq 0 ]; then
  70. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  71. SCHEMAS=" \
  72. mate-session.schemas"
  73. for S in $SCHEMAS; do
  74. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  75. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  76. fi
  77. %postun
  78. /sbin/ldconfig
  79. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  80. touch --no-create %{_datadir}/icons/hicolor
  81. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  82. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  83. fi
  84. %files -f mate-session.lang
  85. %defattr(-,root,root,-)
  86. %doc COPYING ChangeLog NEWS README
  87. %{_sysconfdir}/mateconf/schemas/mate-session.schemas
  88. %{_bindir}/mate-session
  89. %{_bindir}/mate-session-properties
  90. %{_bindir}/mate-session-save
  91. %{_bindir}/mate-wm
  92. %{_datadir}/applications/mate-session-properties.desktop
  93. %{_datadir}/icons/hicolor/*/*/*
  94. %{_datadir}/mate-session/gsm-inhibit-dialog.ui
  95. %{_datadir}/mate-session/session-properties.ui
  96. %{_datadir}/xsessions/mate.desktop
  97. %{_mandir}/man1/*.1.gz
  98. %changelog
  99. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1
  100. - new upstream release
  101. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  102. - change category
  103. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  104. - initial build for Vine Linux