ConsoleKit-vl.spec 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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.3
  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. * Thu Dec 30 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.3-1
  141. - new upstream release
  142. * Wed Oct 13 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.2-1
  143. - new upstream release
  144. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.1-2
  145. - rebuilt with rpm-4.8.1 for pkg-config
  146. * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.1-1
  147. - new upstream release
  148. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-6
  149. - add patch11 to enable policy access to the Manager.GetSessions
  150. method in the default ConsoleKit.conf
  151. https://bugs.freedesktop.org/show_bug.cgi?id=20471
  152. http://bugzilla.gnome.org/show_bug.cgi?id=580259
  153. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-5
  154. - add patch10 to fix dbus permissions
  155. https://bugs.freedesktop.org/show_bug.cgi?id=19020
  156. (This patch is already committed to master)
  157. * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.0-4
  158. - changed Group to System Environment/Daemons
  159. - changed x11 subpackage's Group to System Environment/Daemons
  160. - changed libs subpackage's Group to System Environment/Libraries
  161. - added %%post, %%postun section fo libs subpackage
  162. * Sat Aug 09 2008 Shu KONNO <owa@bg.wakwak.com> 0.3.0-3
  163. - changed %%{_libdir}/ConsoleKit to %%{_prefix}/lib/ConsoleKit
  164. * Thu Aug 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-2
  165. - remove init script, console-kit-daemon is now launched from dbus.
  166. * Mon Aug 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-1
  167. - new upstream release
  168. * Tue Jul 1 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.10-3
  169. - fix Japanese description
  170. - spec in UTF-8
  171. - add Source10 (init.d script for console-kit-daemon);
  172. add %%post/%%preun scripts, until "initng" being introduced to Vine
  173. * Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.10-2
  174. - rebuilt with PolicyKit-0.8
  175. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.10-1
  176. - new upstream release
  177. - new versioning policy
  178. * Tue Jan 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.3-0vl1
  179. - initial build for Vine Linux
  180. * Mon Oct 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.3-2
  181. - Rebuild against new dbus-glib
  182. * Tue Sep 18 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.3-1
  183. - Update to 0.2.3
  184. * Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.2-1
  185. - Update to 0.2.2
  186. * Mon Aug 6 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.1-4
  187. - Update license field
  188. * Fri Jul 6 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.1-3
  189. - Add LSB header to init script (#246894)
  190. * Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-2
  191. - Set doc directory correctly
  192. * Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-1
  193. - Update to upstream release 0.2.1
  194. - Drop the patch to daemonize properly as that was merged upstream
  195. * Mon Apr 02 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-0.git20070402
  196. - Update to git snapshot to get a lot of bug fixes
  197. - Use libX11 rather than gtk2 to verify X11 sessions; update BR and R
  198. - Split X11-using bits into a new subpackage ConsoleKit-x11 (#233982)
  199. - Use correct location for PAM module on 64-bit (#234545)
  200. - Build developer documentation and put them in ConsoleKit-docs
  201. * Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-2
  202. - BR gtk2-devel and make ConsoleKit Require gtk2 (could just be
  203. libX11 with a simple patch)
  204. * Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-1
  205. - Update to upstream release 0.2.0
  206. - Daemonize properly (#229206)
  207. * Sat Mar 3 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301.1
  208. - Allow caller to pass uid=0 in libck-connector
  209. * Thu Mar 1 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301
  210. - Update to git snapshot
  211. - Drop all patches as they are committed upstream
  212. - New tool ck-list-sessions
  213. - New -libs subpackage with run-time libraries and a PAM module
  214. - New -devel subpackage with headers
  215. * Tue Feb 6 2007 David Zeuthen <davidz@redhat.com> - 0.1.0-5%{?dist}
  216. - Start ConsoleKit a bit earlier so it starts before HAL (98 -> 90)
  217. - Minimize stack usage so VIRT size is more reasonable (mclasen)
  218. - Make session inactive when switching to non-session (davidz)
  219. * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-4
  220. - Don't mark initscripts %%config
  221. - Use proper lock and pid ile names
  222. * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-3
  223. - More package review feedback
  224. * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-2
  225. - Incorporate package review feedback
  226. * Thu Jan 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-1
  227. - Update to the first public release 0.1.0
  228. - Some spec cleanups
  229. * Mon Oct 23 2006 David Zeuthen <davidz@redhat.com> - 0.0.3-1
  230. - Initial build.