gnome-session-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. %define glib2_version 2.24.0
  2. %define pango_version 1.28.0
  3. %define gtk2_version 2.20.0
  4. %define libgnome_version 2.30.0
  5. %define libgnomeui_version 2.24.0
  6. %define gconf2_version 2.28.0
  7. %define dbus_glib_version 0.70
  8. %define dbus_version 1.2
  9. %define libnotify_version 0.2.1
  10. %define po_package gnome-session-2.0
  11. Summary: GNOME session manager
  12. Summary(ja): GNOME セッションマネージャ
  13. Name: gnome-session
  14. Version: 2.30.0
  15. Release: 1%{?_dist_release}
  16. URL: http://www.gnome.org/
  17. License: GPLv2+
  18. Group: User Interface/Desktops
  19. Source0: %{name}-%{version}.tar.bz2
  20. Source1: vine-default-session
  21. Source2: gnome.desktop
  22. # fixed upstream
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. BuildRequires: glib2-devel >= %{glib2_version}
  25. BuildRequires: pango-devel >= %{pango_version}
  26. BuildRequires: gtk2-devel >= %{gtk2_version}
  27. BuildRequires: libgnome-devel >= %{libgnome_version}
  28. BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
  29. BuildRequires: GConf2-devel >= %{gconf2_version}
  30. BuildRequires: dbus-devel >= %{dbus_version}
  31. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  32. BuildRequires: libnotify-devel >= %{libnotify_version}
  33. BuildRequires: usermode
  34. BuildRequires: startup-notification-devel
  35. BuildRequires: libSM-devel
  36. BuildRequires: desktop-file-utils
  37. BuildRequires: upower-devel
  38. Requires(post): GConf2 >= %{gconf2_version}
  39. Requires(pre): GConf2 >= %{gconf2_version}
  40. Requires(preun): GConf2 >= %{gconf2_version}
  41. Conflicts: gdm < 2.4.0.7
  42. Requires: vine-backgrounds >= 3.8
  43. Requires: control-center
  44. %description
  45. gnome-session manages a GNOME desktop session. It starts up the other core
  46. GNOME components and handles logout and saving the session.
  47. %prep
  48. %setup -q
  49. %build
  50. #sed -i -e 's/GNOME_COMPILE_WARNINGS.*//' configure.in
  51. #aclocal
  52. #automake
  53. #intltoolize --force --copy
  54. #autoheader
  55. #autoconf
  56. %configure \
  57. --enable-compile-warnings=no \
  58. --enable-polkit \
  59. --disable-schemas-install
  60. make %{?_smp_mflags}
  61. # --with-halt-command=/usr/bin/poweroff \
  62. # --with-reboot-command=/usr/bin/reboot \
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  66. %makeinstall
  67. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  68. desktop-file-install --vendor gnome --delete-original \
  69. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  70. --add-only-show-in GNOME \
  71. $RPM_BUILD_ROOT%{_datadir}/applications/*
  72. # --add-category Settings \
  73. # --add-category AdvancedSettings \
  74. ./mkinstalldirs ${RPM_BUILD_ROOT}%{_datadir}/xsessions/
  75. install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_datadir}/xsessions/
  76. #/bin/rm $RPM_BUILD_ROOT%{_datadir}/gnome/default.session
  77. ./mkinstalldirs ${RPM_BUILD_ROOT}%{_datadir}/gnome/
  78. install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/gnome/default.session
  79. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart
  80. mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/autostart
  81. # remove gnome default splash screen
  82. #rm -rf $RPM_BUILD_ROOT%{_datadir}/pixmaps/splash/*
  83. mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/splash
  84. #
  85. rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  86. %find_lang %{po_package}
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT
  89. %post
  90. /sbin/ldconfig
  91. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  92. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gnome-session.schemas > /dev/null ||:
  93. %pre
  94. if [ "$1" -gt 1 ]; then
  95. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  96. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-session.schemas >& /dev/null || :
  97. fi
  98. %preun
  99. if [ "$1" -eq 0 ]; then
  100. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  101. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-session.schemas >& /dev/null || :
  102. fi
  103. %postun -p /sbin/ldconfig
  104. %files -f %{po_package}.lang
  105. %defattr(-,root,root)
  106. %doc AUTHORS COPYING ChangeLog NEWS README
  107. #doc %{_docdir}/%{name}/dbus/gnome-session.html
  108. %{_sysconfdir}/gconf/schemas/*.schemas
  109. %{_sysconfdir}/xdg/autostart
  110. %{_bindir}/*
  111. %{_libexecdir}/gnome-session/helpers/*
  112. %{_datadir}/gnome
  113. %{_datadir}/gnome-session/*.ui
  114. %{_datadir}/applications/*
  115. %{_datadir}/xsessions/*
  116. %dir %{_datadir}/pixmaps/splash
  117. %{_datadir}/icons/hicolor/*
  118. %{_mandir}/man*/*
  119. %changelog
  120. * Sun Apr 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  121. - new upstream release
  122. - remove BuildRequires: gnome-keyring
  123. - change BuildRequires: DeviceKit-power-devel -> upower-devel
  124. - add BuildRequires: startup-notification-devel, libSM-devel, desktop-file-utils
  125. * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.0-1
  126. - new upstream release
  127. - added BR: DeviceKit-power-devel
  128. - removed BR: PolicyKit-gnome-devel
  129. * Sat Jul 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.2-1
  130. - new upstream release
  131. * Sat Apr 18 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.26.1-1
  132. - new upstream release
  133. - added BuildRequires: PolicyKit-gnome-devel
  134. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  135. - new upstream release
  136. * Mon Jan 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.24.3-1
  137. - new upstream release
  138. * Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.1-1
  139. - new upstream release
  140. * Wed Oct 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-2
  141. - add patch5,6,7,8 from upstream/fedora
  142. - remove gnome-volume-manager from vine-default-session
  143. * Wed Sep 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  144. - new upstream release
  145. * Sun Jun 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.2-1
  146. - new upstream release
  147. * Sat Apr 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1.1-1vl5
  148. - new upstream release
  149. * Mon Mar 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  150. - new upstream release
  151. - updated Patch100
  152. * Wed Jan 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.3-0vl1
  153. - new upstream release
  154. * Wed Jul 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18.3-0vl1
  155. - new upstream release
  156. * Fri May 11 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.18.0-0vl2
  157. - add BuildRequires: control-center-devel
  158. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.0-0vl1
  159. - new upstream release
  160. * Thu Sep 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.3-0vl1
  161. - new upstream release
  162. - remove default gnome-splash.png, use our splash.
  163. - add Requires: vine-backgrounds >= 3.8
  164. * Sat Jun 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.2-0vl1
  165. - new upstream release
  166. * Fri Apr 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.1-0vl1
  167. - new upstream release
  168. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1
  169. - new upstream release
  170. * Tue Mar 07 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13.92-0vl1
  171. - new upstream release
  172. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.0-0vl1
  173. - new upstream release
  174. * Thu Aug 04 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.11.90-0vl1
  175. - new upstream release
  176. * Mon Mar 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.0-0vl1
  177. - new upstream version
  178. * Sun Nov 07 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-0vl1
  179. - new upstream release
  180. * Sun Oct 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-0vl1
  181. - new upstream release
  182. * Sun Oct 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-0vl2
  183. - rebuild with new environment
  184. * Fri Jan 30 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.2-0vl1
  185. - new upstream release
  186. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  187. - new upstream release
  188. - remove old gdm session file.
  189. * Fri Sep 05 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.90-0vl1
  190. - new upstream release
  191. * Wed Sep 03 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.7-0vl1
  192. - new upstream release
  193. * Tue Apr 29 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.1-0vl1
  194. - new upstream release
  195. - import patch6,8 from rawhide release
  196. * Wed Jan 22 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.1-0vl1
  197. - new upstream release
  198. * Tue Jan 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0-0vl1
  199. - new upstream release
  200. * Fri Jan 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.90-0vl1
  201. - new upstream release
  202. * Thu Dec 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl1
  203. - new upstream release
  204. * Sun Dec 15 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.4-0vl1
  205. - build for Vine Linux
  206. - new upstream release from gnome-2.1.4
  207. * Wed Nov 13 2002 Havoc Pennington <hp@redhat.com>
  208. - 2.1.2
  209. * Tue Sep 3 2002 Owen Taylor <otaylor@redhat.com>
  210. - Up purge delay for session manager to 5 minutes to avoid problem
  211. with openoffice.org timing out
  212. * Wed Aug 28 2002 Havoc Pennington <hp@redhat.com>
  213. - put gdm session in here, conflict with old gdm
  214. - use DITHER_MAX for dithering to make splash screen look good in 16
  215. bit
  216. * Tue Aug 27 2002 Havoc Pennington <hp@redhat.com>
  217. - fix missing icons and misaligned text in splash
  218. * Fri Aug 23 2002 Tim Waugh <twaugh@redhat.com>
  219. - Fix login sound disabling (bug #71664).
  220. * Wed Aug 14 2002 Havoc Pennington <hp@redhat.com>
  221. - put rhn applet in default session
  222. * Wed Aug 14 2002 Havoc Pennington <hp@redhat.com>
  223. - fix the session file, should speed up login a lot
  224. - put magicdev in default session
  225. * Thu Aug 8 2002 Havoc Pennington <hp@redhat.com>
  226. - 2.0.5 with more translations
  227. * Tue Aug 6 2002 Havoc Pennington <hp@redhat.com>
  228. - 2.0.4
  229. - remove gnome-settings-daemon from default session
  230. * Wed Jul 31 2002 Havoc Pennington <hp@redhat.com>
  231. - 2.0.3
  232. - remove splash screen, require redhat-artwork instead
  233. * Wed Jul 24 2002 Owen Taylor <otaylor@redhat.com>
  234. - Set GTK_RC_FILES so we can change the gtk1 theme
  235. * Tue Jul 16 2002 Havoc Pennington <hp@redhat.com>
  236. - pass --with-halt-command=/usr/bin/poweroff
  237. --with-reboot-command=/usr/bin/reboot
  238. * Tue Jun 25 2002 Owen Taylor <otaylor@redhat.com>
  239. - Version 2.0.1, fixing missing po files
  240. * Wed Jun 19 2002 Havoc Pennington <hp@redhat.com>
  241. - put in new default session with pam-panel-icon
  242. - disable schema install in make install, fixes rebuild failure.
  243. * Sun Jun 16 2002 Havoc Pennington <hp@redhat.com>
  244. - rebuild with new libraries
  245. * Thu Jun 13 2002 Havoc Pennington <hp@redhat.com>
  246. - rebuild in different environment
  247. * Thu Jun 13 2002 Havoc Pennington <hp@redhat.com>
  248. - add fix from Nalin to build require usermode
  249. * Tue Jun 11 2002 Havoc Pennington <hp@redhat.com>
  250. - 2.0.0
  251. * Mon Jun 10 2002 Havoc Pennington <hp@redhat.com>
  252. - install the schemas, so we get a logout dialog and splash
  253. - put in the splash from 7.3
  254. * Sun Jun 09 2002 Havoc Pennington <hp@redhat.com>
  255. - rebuild in different environment
  256. * Sun Jun 09 2002 Havoc Pennington <hp@redhat.com>
  257. - rebuild in new environment, require newer gtk2
  258. * Sun Jun 9 2002 Havoc Pennington <hp@redhat.com>
  259. - remove obsoletes/provides gnome-core
  260. * Fri Jun 07 2002 Havoc Pennington <hp@redhat.com>
  261. - rebuild in different environment
  262. * Wed Jun 5 2002 Havoc Pennington <hp@redhat.com>
  263. - 1.5.21
  264. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  265. - automated rebuild
  266. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  267. - rebuild in different environment
  268. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  269. - 1.5.19
  270. - add more build reqs to chill out build system
  271. - provide gnome-core
  272. * Fri May 3 2002 Havoc Pennington <hp@redhat.com>
  273. - obsolete gnome-core
  274. - 1.5.18
  275. * Fri Apr 19 2002 Havoc Pennington <hp@redhat.com>
  276. - default to metacity
  277. * Tue Apr 16 2002 Havoc Pennington <hp@redhat.com>
  278. - Initial build.