ConsoleKit-vl.spec 10 KB

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