ConsoleKit-vl.spec 9.8 KB

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