ConsoleKit-vl.spec 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. %define glib2_version 2.26.0
  2. %define dbus_version 1.4
  3. %define dbus_glib_version 0.88
  4. %define polkit_version 0.99
  5. Summary: System daemon for tracking users, sessions and seats
  6. Summary(ja): ユーザ、セッションおよび座席を捕捉するシステムデーモン
  7. Name: ConsoleKit
  8. Version: 0.4.2
  9. Release: 1%{?_dist_release}
  10. License: GPLv2+
  11. Group: System Environment/Daemons
  12. URL: http://www.freedesktop.org/wiki/Software/ConsoleKit
  13. Source0: http://people.freedesktop.org/~mccann/dist/ConsoleKit-%{version}.tar.bz2
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: glib2-devel >= %{glib2_version}
  16. BuildRequires: dbus-devel >= %{dbus_version}
  17. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  18. BuildRequires: polkit-devel >= %{polkit_version}
  19. BuildRequires: pam-devel
  20. BuildRequires: libX11-devel
  21. BuildRequires: zlib-devel
  22. BuildRequires: xmlto
  23. Requires: dbus
  24. Requires: dbus-glib
  25. %description
  26. ConsoleKit is a system daemon for tracking what users are logged
  27. into the system and how they interact with the computer (e.g.
  28. which keyboard and mouse they use).
  29. It provides asynchronous notification via the system message bus.
  30. %package x11
  31. Summary: X11-requiring add-ons for ConsoleKit
  32. Summary(ja): X11 を必要とする ConsoleKit アドオン
  33. License: GPLv2+
  34. Group: System Environment/Daemons
  35. Requires: %name = %{version}-%{release}
  36. Requires: libX11
  37. %description x11
  38. ConsoleKit contains some tools that require Xlib to be installed,
  39. those are in this separate package so server systems need not install
  40. X. Applications (such as xorg-x11-xinit) and login managers (such as
  41. gdm) that need to register their X sessions with ConsoleKit needs to
  42. have a Requires: for this package.
  43. %package libs
  44. Summary: ConsoleKit libraries
  45. Summary(ja): ConsoleKit ライブラリ
  46. License: MIT
  47. Group: System Environment/Libraries
  48. Requires: pam
  49. Requires: dbus
  50. %description libs
  51. Libraries and a PAM module for interacting with ConsoleKit.
  52. %package devel
  53. Summary: Development libraries and headers for ConsoleKit
  54. Summary(ja): Development libraries and headers for ConsoleKit
  55. License: MIT
  56. Group: Development/Libraries
  57. Requires: dbus-devel
  58. Requires: pkgconfig
  59. %description devel
  60. Headers, libraries and API docs for ConsoleKit
  61. %package docs
  62. Summary: Developer documentation for ConsoleKit
  63. Summary(ja): ConsoleKit の開発用ドキュメント
  64. Group: Development/Libraries
  65. Requires: %name = %{version}-%{release}
  66. %description docs
  67. Developer documentation for ConsoleKit.
  68. %prep
  69. %setup -q
  70. %build
  71. %configure --with-pid-file=%{_localstatedir}/run/console-kit-daemon.pid --enable-pam-module --with-pam-module-dir=/%{_lib}/security --enable-docbook-docs --docdir=%{_datadir}/doc/%{name}-%{version}
  72. make
  73. %install
  74. rm -rf $RPM_BUILD_ROOT
  75. make install DESTDIR=$RPM_BUILD_ROOT
  76. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  77. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  78. rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.a
  79. rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.la
  80. # make sure we don't package a history log
  81. rm -f $RPM_BUILD_ROOT/%{_var}/log/ConsoleKit/history
  82. cp AUTHORS COPYING ChangeLog HACKING INSTALL NEWS README TODO \
  83. $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
  84. #mkdir -p %{buildroot}%{_sysconfdir}/init.d
  85. #install -m 755 %{SOURCE10} %{buildroot}%{_sysconfdir}/init.d/ConsoleKit
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT
  88. %post
  89. if [ -f /var/log/ConsoleKit/history ]; then
  90. chmod a+r /var/log/ConsoleKit/history
  91. fi
  92. %post libs -p /sbin/ldconfig
  93. %postun libs -p /sbin/ldconfig
  94. %files
  95. %defattr(-,root,root,-)
  96. %doc %dir %{_datadir}/doc/%{name}-%{version}
  97. %doc %{_datadir}/doc/%{name}-%{version}/[A-Z]*
  98. %{_sysconfdir}/dbus-1/system.d/*
  99. #%{_sysconfdir}/init.d/ConsoleKit
  100. %{_datadir}/dbus-1/system-services/*.service
  101. %{_datadir}/polkit-1/actions/*.policy
  102. %dir %{_sysconfdir}/ConsoleKit
  103. %dir %{_sysconfdir}/ConsoleKit/seats.d
  104. %dir %{_sysconfdir}/ConsoleKit/run-seat.d
  105. %dir %{_sysconfdir}/ConsoleKit/run-session.d
  106. %dir %{_prefix}/lib/ConsoleKit
  107. %dir %{_prefix}/lib/ConsoleKit/scripts
  108. %dir %{_prefix}/lib/ConsoleKit/run-seat.d
  109. %dir %{_prefix}/lib/ConsoleKit/run-session.d
  110. %dir %{_var}/run/ConsoleKit
  111. %attr(755,root,root) %dir %{_var}/log/ConsoleKit
  112. %config %{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat
  113. %{_sbindir}/console-kit-daemon
  114. %{_sbindir}/ck-log-system-restart
  115. %{_sbindir}/ck-log-system-start
  116. %{_sbindir}/ck-log-system-stop
  117. %{_bindir}/ck-history
  118. %{_bindir}/ck-launch-session
  119. %{_bindir}/ck-list-sessions
  120. %{_prefix}/lib/ConsoleKit/scripts/*
  121. %files x11
  122. %defattr(-,root,root,-)
  123. %{_libexecdir}/*
  124. %files libs
  125. %defattr(-,root,root,-)
  126. %{_libdir}/lib*.so.*
  127. /%{_lib}/security/*.so
  128. %{_mandir}/man8/pam_ck_connector.8.gz
  129. %files devel
  130. %defattr(-,root,root,-)
  131. %{_libdir}/lib*.so
  132. %{_libdir}/pkgconfig/*
  133. %{_includedir}/*
  134. %{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.*.xml
  135. %files docs
  136. %defattr(-,root,root,-)
  137. %doc %dir %{_datadir}/doc/%{name}-%{version}/spec
  138. %doc %{_datadir}/doc/%{name}-%{version}/spec/*
  139. %changelog
  140. * Wed Oct 13 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.2-1
  141. - new upstream release
  142. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.1-2
  143. - rebuilt with rpm-4.8.1 for pkg-config
  144. * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.1-1
  145. - new upstream release
  146. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-6
  147. - add patch11 to enable policy access to the Manager.GetSessions
  148. method in the default ConsoleKit.conf
  149. https://bugs.freedesktop.org/show_bug.cgi?id=20471
  150. http://bugzilla.gnome.org/show_bug.cgi?id=580259
  151. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-5
  152. - add patch10 to fix dbus permissions
  153. https://bugs.freedesktop.org/show_bug.cgi?id=19020
  154. (This patch is already committed to master)
  155. * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.0-4
  156. - changed Group to System Environment/Daemons
  157. - changed x11 subpackage's Group to System Environment/Daemons
  158. - changed libs subpackage's Group to System Environment/Libraries
  159. - added %%post, %%postun section fo libs subpackage
  160. * Sat Aug 09 2008 Shu KONNO <owa@bg.wakwak.com> 0.3.0-3
  161. - changed %%{_libdir}/ConsoleKit to %%{_prefix}/lib/ConsoleKit
  162. * Thu Aug 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-2
  163. - remove init script, console-kit-daemon is now launched from dbus.
  164. * Mon Aug 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-1
  165. - new upstream release
  166. * Tue Jul 1 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.10-3
  167. - fix Japanese description
  168. - spec in UTF-8
  169. - add Source10 (init.d script for console-kit-daemon);
  170. add %%post/%%preun scripts, until "initng" being introduced to Vine
  171. * Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.10-2
  172. - rebuilt with PolicyKit-0.8
  173. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.10-1
  174. - new upstream release
  175. - new versioning policy
  176. * Tue Jan 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.3-0vl1
  177. - initial build for Vine Linux
  178. * Mon Oct 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.3-2
  179. - Rebuild against new dbus-glib
  180. * Tue Sep 18 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.3-1
  181. - Update to 0.2.3
  182. * Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.2-1
  183. - Update to 0.2.2
  184. * Mon Aug 6 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.1-4
  185. - Update license field
  186. * Fri Jul 6 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.1-3
  187. - Add LSB header to init script (#246894)
  188. * Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-2
  189. - Set doc directory correctly
  190. * Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-1
  191. - Update to upstream release 0.2.1
  192. - Drop the patch to daemonize properly as that was merged upstream
  193. * Mon Apr 02 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-0.git20070402
  194. - Update to git snapshot to get a lot of bug fixes
  195. - Use libX11 rather than gtk2 to verify X11 sessions; update BR and R
  196. - Split X11-using bits into a new subpackage ConsoleKit-x11 (#233982)
  197. - Use correct location for PAM module on 64-bit (#234545)
  198. - Build developer documentation and put them in ConsoleKit-docs
  199. * Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-2
  200. - BR gtk2-devel and make ConsoleKit Require gtk2 (could just be
  201. libX11 with a simple patch)
  202. * Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-1
  203. - Update to upstream release 0.2.0
  204. - Daemonize properly (#229206)
  205. * Sat Mar 3 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301.1
  206. - Allow caller to pass uid=0 in libck-connector
  207. * Thu Mar 1 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301
  208. - Update to git snapshot
  209. - Drop all patches as they are committed upstream
  210. - New tool ck-list-sessions
  211. - New -libs subpackage with run-time libraries and a PAM module
  212. - New -devel subpackage with headers
  213. * Tue Feb 6 2007 David Zeuthen <davidz@redhat.com> - 0.1.0-5%{?dist}
  214. - Start ConsoleKit a bit earlier so it starts before HAL (98 -> 90)
  215. - Minimize stack usage so VIRT size is more reasonable (mclasen)
  216. - Make session inactive when switching to non-session (davidz)
  217. * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-4
  218. - Don't mark initscripts %%config
  219. - Use proper lock and pid ile names
  220. * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-3
  221. - More package review feedback
  222. * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-2
  223. - Incorporate package review feedback
  224. * Thu Jan 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-1
  225. - Update to the first public release 0.1.0
  226. - Some spec cleanups
  227. * Mon Oct 23 2006 David Zeuthen <davidz@redhat.com> - 0.0.3-1
  228. - Initial build.