polkit-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. Summary: PolicyKit Authorization Framework
  2. Summary(ja): PolicyKit 認証フレームワーク
  3. Name: polkit
  4. Version: 0.96
  5. Release: 2%{?_dist_release}
  6. License: LGPLv2+
  7. URL: http://www.freedesktop.org/wiki/Software/PolicyKit
  8. Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. Group: System Environment/Libraries
  11. BuildRequires: glib2-devel
  12. BuildRequires: expat-devel
  13. BuildRequires: pam-devel
  14. BuildRequires: eggdbus-devel >= 0.6
  15. BuildRequires: gtk-doc
  16. BuildRequires: intltool
  17. BuildRequires: gobject-introspection-devel
  18. Requires: ConsoleKit
  19. Requires: dbus
  20. #Obsoletes: PolicyKit <= 0.10
  21. #Provides: PolicyKit = 0.11
  22. %description
  23. PolicyKit is a toolkit for defining and handling authorizations.
  24. It is used for allowing unprivileged processes to speak to privileged
  25. processes.
  26. %package devel
  27. Summary: Development files for PolicyKit
  28. Summary(ja): PolicyKit の開発用ファイル
  29. Group: Development/Libraries
  30. Requires: %name = %{version}-%{release}
  31. Requires: %name-docs = %{version}-%{release}
  32. Requires: pkgconfig
  33. Requires: glib2-devel
  34. #Obsoletes: PolicyKit-devel <= 0.10
  35. #Provides: PolicyKit-devel = 0.11
  36. %description devel
  37. Development files for PolicyKit.
  38. %package docs
  39. Summary: Development documentation for PolicyKit
  40. Summary(ja): PolicyKit の開発用ドキュメント
  41. Group: Development/Libraries
  42. Requires: %name-devel = %{version}-%{release}
  43. Requires: gtk-doc
  44. #Obsoletes: PolicyKit-docs <= 0.10
  45. #Provides: PolicyKit-docs = 0.11
  46. %description docs
  47. Development documentation for PolicyKit.
  48. %package desktop-policy
  49. Summary: Roles and default policy for desktop usage
  50. Summary(ja): デスクトップ用途のロールとデフォルトポリシー
  51. Group: Development/Libraries
  52. #Requires: %name = %{version}-%{release}
  53. Requires(pre): /usr/sbin/groupadd
  54. Requires(preun): /usr/sbin/groupdel
  55. %description desktop-policy
  56. Roles and default policy for desktop usage.
  57. %prep
  58. %setup -q
  59. %build
  60. %configure --enable-gtk-doc --disable-static --libexecdir=%{_libexecdir}/polkit-1 --enable-introspection --enable-examples
  61. make
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. make install DESTDIR=$RPM_BUILD_ROOT
  65. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  66. rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.la
  67. %find_lang polkit-1
  68. ###
  69. ### BEGIN DESKTOP POLICY CONFIGURATION ###
  70. ###
  71. cat > $RPM_BUILD_ROOT%{_sysconfdir}/polkit-1/localauthority.conf.d/60-desktop-policy.conf << EOF
  72. # This allows users in the desktop_admin_r group to authenticate as
  73. # the administrator.
  74. #
  75. # DO NOT EDIT THIS FILE, it will be overwritten on update.
  76. [Configuration]
  77. AdminIdentities=unix-group:desktop_admin_r
  78. EOF
  79. cat > $RPM_BUILD_ROOT%{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla << EOF
  80. # Authorizations/policy for the desktop_admin_r and desktop_user_r groups.
  81. #
  82. # DO NOT EDIT THIS FILE, it will be overwritten on update.
  83. # Allow "standard users" to do some things without being interrupted by
  84. # password dialogs (TODO: not complete)
  85. #
  86. [Desktop User Permissions]
  87. Identity=unix-group:desktop_user_r
  88. Action=org.gnome.clockapplet.mechanism.settimezone
  89. ResultAny=no
  90. ResultInactive=no
  91. ResultActive=yes
  92. # Allow "administrative users" to do a lot of things without being interrupted by
  93. # password dialogs (TODO: not complete)
  94. #
  95. [Desktop Administrator Permissions]
  96. Identity=unix-group:desktop_admin_r
  97. Action=org.gnome.clockapplet.mechanism.*;org.freedesktop.devicekit.disks.*;org.freedesktop.RealtimeKit1.*
  98. ResultAny=no
  99. ResultInactive=no
  100. ResultActive=yes
  101. EOF
  102. ###
  103. ### END DESKTOP POLICY CONFIGURATION
  104. ###
  105. %clean
  106. rm -rf $RPM_BUILD_ROOT
  107. %post -p /sbin/ldconfig
  108. %postun -p /sbin/ldconfig
  109. %pre desktop-policy
  110. /usr/sbin/groupadd -r desktop_admin_r 2> /dev/null || :
  111. /usr/sbin/groupadd -r desktop_user_r 2> /dev/null || :
  112. %files desktop-policy
  113. %{_sysconfdir}/polkit-1/localauthority.conf.d/60-desktop-policy.conf
  114. %{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla
  115. %files -f polkit-1.lang
  116. %defattr(-,root,root,-)
  117. %doc COPYING
  118. %{_libdir}/lib*.so.*
  119. %dir %{_libdir}/polkit-1
  120. %dir %{_libdir}/polkit-1/extensions
  121. %{_libdir}/polkit-1/extensions/*.so
  122. %{_datadir}/man/man1/*
  123. %{_datadir}/man/man8/*
  124. %{_datadir}/dbus-1/system-services/*
  125. %dir %{_datadir}/polkit-1/
  126. %dir %{_datadir}/polkit-1/actions
  127. %{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy
  128. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
  129. %{_sysconfdir}/pam.d/polkit-1
  130. %{_sysconfdir}/polkit-1
  131. %{_bindir}/pkaction
  132. %{_bindir}/pkcheck
  133. %{_libexecdir}/polkit-1/polkitd
  134. %{_libdir}/girepository-1.0/*.typelib
  135. # see upstream docs for why these permissions are necessary
  136. %attr(4755,root,root) %{_bindir}/pkexec
  137. %attr(4755,root,root) %{_libexecdir}/polkit-1/polkit-agent-helper-1
  138. %attr(0700,root,root) %dir %{_localstatedir}/lib/polkit-1/
  139. %dir %{_localstatedir}/lib/polkit-1/localauthority
  140. %dir %{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d
  141. %dir %{_localstatedir}/lib/polkit-1/localauthority/20-org.d
  142. %dir %{_localstatedir}/lib/polkit-1/localauthority/30-site.d
  143. %dir %{_localstatedir}/lib/polkit-1/localauthority/50-local.d
  144. %dir %{_localstatedir}/lib/polkit-1/localauthority/90-mandatory.d
  145. %files devel
  146. %defattr(-,root,root,-)
  147. %{_libdir}/lib*.so
  148. %{_libdir}/pkgconfig/*.pc
  149. %{_datadir}/gir-1.0/*.gir
  150. %{_includedir}/*
  151. %{_bindir}/pk-example-frobnicate
  152. %{_datadir}/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
  153. %files docs
  154. %defattr(-,root,root,-)
  155. %{_datadir}/gtk-doc/html/*
  156. %changelog
  157. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.96-2
  158. - build with rpm-4.8.1-1 for pkg-config file
  159. * Mon Feb 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.96-1
  160. - update to 0.96
  161. - BR: eggdbus-devel >= 0.6
  162. * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.95-0.2.git20090913
  163. - remove Obsoletes:/Provides: PolicyKit*
  164. * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.95-0.1.git20090913
  165. - initial build for Vine Linux
  166. * Mon Sep 14 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913.2
  167. - Refine how Obsolete: is used and also add Provides: (thanks Jesse
  168. Keating and nim-nim)
  169. * Mon Sep 14 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913.1
  170. - Add bugfix for polkit_unix_process_new_full() (thanks Bastien Nocera)
  171. - Obsolete old PolicyKit packages
  172. * Sun Sep 13 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913
  173. - Update to git snapshot
  174. - Drop upstreamed patches
  175. - Turn on GObject introspection
  176. - Don't delete desktop_admin_r and desktop_user_r groups when
  177. uninstalling polkit-desktop-policy
  178. * Fri Sep 11 2009 David Zeuthen <davidz@redhat.com> - 0.94-4
  179. - Add some patches from git master
  180. - Sort pkaction(1) output
  181. - Bug 23867 – UnixProcess vs. SystemBusName aliasing
  182. * Thu Aug 13 2009 David Zeuthen <davidz@redhat.com> - 0.94-3
  183. - Add desktop_admin_r and desktop_user_r groups along with a first cut
  184. of default authorizations for users in these groups.
  185. * Wed Aug 12 2009 David Zeuthen <davidz@redhat.com> - 0.94-2
  186. - Disable GObject Introspection for now as it breaks the build
  187. * Wed Aug 12 2009 David Zeuthen <davidz@redhat.com> - 0.94-1
  188. - Update to upstream release 0.94
  189. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3
  190. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  191. * Mon Jul 20 2009 David Zeuthen <davidz@redhat.com> - 0.93-2
  192. - Rebuild
  193. * Mon Jul 20 2009 David Zeuthen <davidz@redhat.com> - 0.93-1
  194. - Update to 0.93
  195. * Tue Jun 09 2009 David Zeuthen <davidz@redhat.com> - 0.92-3
  196. - Don't make docs noarch (I *heart* multilib)
  197. - Change license to LGPLv2+
  198. * Mon Jun 08 2009 David Zeuthen <davidz@redhat.com> - 0.92-2
  199. - Rebuild
  200. * Mon Jun 08 2009 David Zeuthen <davidz@redhat.com> - 0.92-1
  201. - Update to 0.92 release
  202. * Wed May 27 2009 David Zeuthen <davidz@redhat.com> - 0.92-0.git20090527
  203. - Update to 0.92 snapshot
  204. * Mon Feb 9 2009 David Zeuthen <davidz@redhat.com> - 0.91-1
  205. - Initial spec file.