gnome-session-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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.2
  15. Release: 1%{?_dist_release}
  16. URL: http://www.gnome.org/
  17. License: GPLv2+
  18. Group: User Interface/Desktops
  19. Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-session/2.30/%{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. * Tue Jun 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1
  121. - new upstream release
  122. * Sun Apr 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  123. - new upstream release
  124. - remove BuildRequires: gnome-keyring
  125. - change BuildRequires: DeviceKit-power-devel -> upower-devel
  126. - add BuildRequires: startup-notification-devel, libSM-devel, desktop-file-utils
  127. * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.0-1
  128. - new upstream release
  129. - added BR: DeviceKit-power-devel
  130. - removed BR: PolicyKit-gnome-devel
  131. * Sat Jul 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.2-1
  132. - new upstream release
  133. * Sat Apr 18 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.26.1-1
  134. - new upstream release
  135. - added BuildRequires: PolicyKit-gnome-devel
  136. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  137. - new upstream release
  138. * Mon Jan 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.24.3-1
  139. - new upstream release
  140. * Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.1-1
  141. - new upstream release
  142. * Wed Oct 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-2
  143. - add patch5,6,7,8 from upstream/fedora
  144. - remove gnome-volume-manager from vine-default-session
  145. * Wed Sep 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  146. - new upstream release
  147. * Sun Jun 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.2-1
  148. - new upstream release
  149. * Sat Apr 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1.1-1vl5
  150. - new upstream release
  151. * Mon Mar 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  152. - new upstream release
  153. - updated Patch100
  154. * Wed Jan 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.3-0vl1
  155. - new upstream release
  156. * Wed Jul 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18.3-0vl1
  157. - new upstream release
  158. * Fri May 11 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.18.0-0vl2
  159. - add BuildRequires: control-center-devel
  160. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.0-0vl1
  161. - new upstream release
  162. * Thu Sep 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.3-0vl1
  163. - new upstream release
  164. - remove default gnome-splash.png, use our splash.
  165. - add Requires: vine-backgrounds >= 3.8
  166. * Sat Jun 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.2-0vl1
  167. - new upstream release
  168. * Fri Apr 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.1-0vl1
  169. - new upstream release
  170. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1
  171. - new upstream release
  172. * Tue Mar 07 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13.92-0vl1
  173. - new upstream release
  174. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.0-0vl1
  175. - new upstream release
  176. * Thu Aug 04 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.11.90-0vl1
  177. - new upstream release
  178. * Mon Mar 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.0-0vl1
  179. - new upstream version
  180. * Sun Nov 07 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-0vl1
  181. - new upstream release
  182. * Sun Oct 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-0vl1
  183. - new upstream release
  184. * Sun Oct 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-0vl2
  185. - rebuild with new environment
  186. * Fri Jan 30 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.2-0vl1
  187. - new upstream release
  188. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  189. - new upstream release
  190. - remove old gdm session file.
  191. * Fri Sep 05 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.90-0vl1
  192. - new upstream release
  193. * Wed Sep 03 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.7-0vl1
  194. - new upstream release
  195. * Tue Apr 29 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.1-0vl1
  196. - new upstream release
  197. - import patch6,8 from rawhide release
  198. * Wed Jan 22 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.1-0vl1
  199. - new upstream release
  200. * Tue Jan 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0-0vl1
  201. - new upstream release
  202. * Fri Jan 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.90-0vl1
  203. - new upstream release
  204. * Thu Dec 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl1
  205. - new upstream release
  206. * Sun Dec 15 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.4-0vl1
  207. - build for Vine Linux
  208. - new upstream release from gnome-2.1.4
  209. * Wed Nov 13 2002 Havoc Pennington <hp@redhat.com>
  210. - 2.1.2
  211. * Tue Sep 3 2002 Owen Taylor <otaylor@redhat.com>
  212. - Up purge delay for session manager to 5 minutes to avoid problem
  213. with openoffice.org timing out
  214. * Wed Aug 28 2002 Havoc Pennington <hp@redhat.com>
  215. - put gdm session in here, conflict with old gdm
  216. - use DITHER_MAX for dithering to make splash screen look good in 16
  217. bit
  218. * Tue Aug 27 2002 Havoc Pennington <hp@redhat.com>
  219. - fix missing icons and misaligned text in splash
  220. * Fri Aug 23 2002 Tim Waugh <twaugh@redhat.com>
  221. - Fix login sound disabling (bug #71664).
  222. * Wed Aug 14 2002 Havoc Pennington <hp@redhat.com>
  223. - put rhn applet in default session
  224. * Wed Aug 14 2002 Havoc Pennington <hp@redhat.com>
  225. - fix the session file, should speed up login a lot
  226. - put magicdev in default session
  227. * Thu Aug 8 2002 Havoc Pennington <hp@redhat.com>
  228. - 2.0.5 with more translations
  229. * Tue Aug 6 2002 Havoc Pennington <hp@redhat.com>
  230. - 2.0.4
  231. - remove gnome-settings-daemon from default session
  232. * Wed Jul 31 2002 Havoc Pennington <hp@redhat.com>
  233. - 2.0.3
  234. - remove splash screen, require redhat-artwork instead
  235. * Wed Jul 24 2002 Owen Taylor <otaylor@redhat.com>
  236. - Set GTK_RC_FILES so we can change the gtk1 theme
  237. * Tue Jul 16 2002 Havoc Pennington <hp@redhat.com>
  238. - pass --with-halt-command=/usr/bin/poweroff
  239. --with-reboot-command=/usr/bin/reboot
  240. * Tue Jun 25 2002 Owen Taylor <otaylor@redhat.com>
  241. - Version 2.0.1, fixing missing po files
  242. * Wed Jun 19 2002 Havoc Pennington <hp@redhat.com>
  243. - put in new default session with pam-panel-icon
  244. - disable schema install in make install, fixes rebuild failure.
  245. * Sun Jun 16 2002 Havoc Pennington <hp@redhat.com>
  246. - rebuild with new libraries
  247. * Thu Jun 13 2002 Havoc Pennington <hp@redhat.com>
  248. - rebuild in different environment
  249. * Thu Jun 13 2002 Havoc Pennington <hp@redhat.com>
  250. - add fix from Nalin to build require usermode
  251. * Tue Jun 11 2002 Havoc Pennington <hp@redhat.com>
  252. - 2.0.0
  253. * Mon Jun 10 2002 Havoc Pennington <hp@redhat.com>
  254. - install the schemas, so we get a logout dialog and splash
  255. - put in the splash from 7.3
  256. * Sun Jun 09 2002 Havoc Pennington <hp@redhat.com>
  257. - rebuild in different environment
  258. * Sun Jun 09 2002 Havoc Pennington <hp@redhat.com>
  259. - rebuild in new environment, require newer gtk2
  260. * Sun Jun 9 2002 Havoc Pennington <hp@redhat.com>
  261. - remove obsoletes/provides gnome-core
  262. * Fri Jun 07 2002 Havoc Pennington <hp@redhat.com>
  263. - rebuild in different environment
  264. * Wed Jun 5 2002 Havoc Pennington <hp@redhat.com>
  265. - 1.5.21
  266. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  267. - automated rebuild
  268. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  269. - rebuild in different environment
  270. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  271. - 1.5.19
  272. - add more build reqs to chill out build system
  273. - provide gnome-core
  274. * Fri May 3 2002 Havoc Pennington <hp@redhat.com>
  275. - obsolete gnome-core
  276. - 1.5.18
  277. * Fri Apr 19 2002 Havoc Pennington <hp@redhat.com>
  278. - default to metacity
  279. * Tue Apr 16 2002 Havoc Pennington <hp@redhat.com>
  280. - Initial build.