polkit-vl.spec 7.8 KB

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