mate-display-manager-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. Summary: The MATE Display Manager
  2. Name: mate-display-manager
  3. Version: 1.1.0
  4. Release: 2%{?_dist_release}
  5. Source0: %{name}-%{version}.tar.xz
  6. License: GPLv2
  7. Group: User Interface/X
  8. URL: https://matsusoft.com.ar/projects/mate/
  9. BuildRequires: mate-common
  10. BuildRequires: mate-doc-utils
  11. BuildRequires: mate-conf-devel
  12. BuildRequires: mate-panel-devel
  13. BuildRequires: gtk2-devel
  14. BuildRequires: dbus-glib-devel
  15. BuildRequires: libcanberra-devel
  16. BuildRequires: pam-devel
  17. BuildRequires: upower-devel
  18. BuildRequires: popt-devel
  19. BuildRequires: gtk-doc
  20. BuildRequires: autoconf
  21. BuildRequires: automake
  22. Requires(post,postun): desktop-file-utils
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: Takemikaduchi
  27. %description
  28. The MATE Display Manager is a system service that is responsible for
  29. providing graphical log-ins and managing local and remote displays.
  30. %prep
  31. %setup -q
  32. %build
  33. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
  34. %configure \
  35. --libexecdir=%{_libexecdir}/mate \
  36. --disable-static \
  37. --disable-scrollkeeper \
  38. --with-working-directory=%{_localstatedir}/mdm
  39. %{__make} %{?_smp_mflags}
  40. %install
  41. %{__rm} -rf ${RPM_BUILD_ROOT}
  42. export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  43. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  44. unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  45. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  46. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  47. %find_lang mdm
  48. %clean
  49. %{__rm} -rf ${RPM_BUILD_ROOT}
  50. %post
  51. /sbin/ldconfig
  52. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  53. SCHEMAS=" \
  54. mdm-simple-greeter.schemas"
  55. for S in $SCHEMAS; do
  56. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  57. | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
  58. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  59. touch --no-create %{_datadir}/icons/hicolor
  60. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  61. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  62. fi
  63. %pre
  64. if [ "$1" -gt 1 ]; then
  65. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  66. SCHEMAS=" \
  67. mdm-simple-greeter.schemas"
  68. for S in $SCHEMAS; do
  69. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  70. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  71. fi
  72. /usr/sbin/useradd -M -u 44 -d %{_localstatedir}/mdm -s /sbin/nologin -r mdm > /dev/null 2>&1
  73. /usr/sbin/usermod -d %{_localstatedir}/mdm -s /sbin/nologin mdm >/dev/null 2>&1
  74. %preun
  75. if [ "$1" -eq 0 ]; then
  76. export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
  77. SCHEMAS=" \
  78. mdm-simple-greeter.schemas"
  79. for S in $SCHEMAS; do
  80. echo %{_sysconfdir}/mateconf/schemas/$S; done \
  81. | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||:
  82. fi
  83. %postun
  84. /sbin/ldconfig
  85. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  86. touch --no-create %{_datadir}/icons/hicolor
  87. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  88. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  89. fi
  90. %files -f mdm.lang
  91. %defattr(-,root,root,-)
  92. %doc COPYING ChangeLog NEWS README
  93. %{_sysconfdir}/dbus-1/system.d/mdm.conf
  94. %{_sysconfdir}/mateconf/schemas/mdm-simple-greeter.schemas
  95. %{_sysconfdir}/mdm
  96. %{_sysconfdir}/pam.d/mdm
  97. %{_sysconfdir}/pam.d/mdm-autologin
  98. %{_bindir}/mdm-screenshot
  99. %{_bindir}/mdmflexiserver
  100. %{_libdir}/matecomponent/servers/MATE_FastUserSwitchApplet.server
  101. %{_libexecdir}/mate/mdm-*
  102. %{_sbindir}/mdm
  103. %{_sbindir}/mdm-binary
  104. %{_datadir}/icons/hicolor/*/*/*
  105. %{_datadir}/mate/help/mdm
  106. %{_datadir}/mate-2.0/ui/MATE_FastUserSwitchApplet.xml
  107. %{_datadir}/mdm
  108. %{_datadir}/omf/mdm
  109. %{_datadir}/pixmaps
  110. %attr(1770, mdm, mdm) %dir %{_localstatedir}/mdm
  111. %attr(1750, mdm, mdm) %dir %{_localstatedir}/mdm/.mateconf.mandatory
  112. %attr(1640, mdm, mdm) %{_localstatedir}/mdm/.mateconf.mandatory/*.xml
  113. %attr(1640, mdm, mdm) %dir %{_localstatedir}/mdm/.mateconf.path
  114. %changelog
  115. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  116. - change category
  117. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  118. - initial build for Vine Linux