polkit-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. Summary: PolicyKit Authorization Framework
  2. Summary(ja): PolicyKit 認証フレームワーク
  3. Name: polkit
  4. Version: 0.112
  5. Release: 2%{?_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: js-devel
  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. Obsoletes: polkit-desktop-policy < 0.103
  23. Provides: polkit-desktop-policy = 0.103
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. %description
  27. PolicyKit is a toolkit for defining and handling authorizations.
  28. It is used for allowing unprivileged processes to speak to privileged
  29. processes.
  30. %package devel
  31. Summary: Development files for PolicyKit
  32. Summary(ja): PolicyKit の開発用ファイル
  33. Group: Development/Libraries
  34. Requires: %name = %{version}-%{release}
  35. Requires: %name-docs = %{version}-%{release}
  36. Requires: pkgconfig
  37. Requires: glib2-devel
  38. %description devel
  39. Development files for PolicyKit.
  40. %package docs
  41. Summary: Development documentation for PolicyKit
  42. Summary(ja): PolicyKit の開発用ドキュメント
  43. Group: Development/Libraries
  44. Requires: %name-devel = %{version}-%{release}
  45. Requires: gtk-doc
  46. %description docs
  47. Development documentation for PolicyKit.
  48. %prep
  49. %setup -q
  50. %build
  51. %configure \
  52. --with-os-type=redhat \
  53. --enable-gtk-doc \
  54. --disable-static \
  55. --libexecdir=%{_libexecdir}/polkit-1 \
  56. --enable-introspection \
  57. --disable-systemd \
  58. --enable-examples
  59. make
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. make install DESTDIR=$RPM_BUILD_ROOT
  63. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  64. rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.la
  65. %find_lang polkit-1
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT
  68. %pre
  69. groupadd -g 27 -r polkitd 2>&1 > /dev/null || :
  70. useradd -u 27 -g polkitd -r -d '/' -s /sbin/nologin -c "User for polkitd" polkitd 2>&1 > /dev/null || :
  71. exit 0
  72. %post -p /sbin/ldconfig
  73. %postun -p /sbin/ldconfig
  74. %files -f polkit-1.lang
  75. %defattr(-,root,root,-)
  76. %doc COPYING NEWS README
  77. %{_libdir}/lib*.so.*
  78. %{_datadir}/man/man1/*
  79. %{_datadir}/man/man8/*
  80. %{_datadir}/dbus-1/system-services/*
  81. %dir %{_datadir}/polkit-1/
  82. %dir %{_datadir}/polkit-1/actions
  83. %attr(0700,polkitd,root) %dir %{_datadir}/polkit-1/rules.d
  84. %{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy
  85. %dir %{_sysconfdir}/polkit-1
  86. %{_sysconfdir}/polkit-1/rules.d/50-default.rules
  87. %attr(0700,polkitd,root) %dir %{_sysconfdir}/polkit-1/rules.d
  88. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
  89. %{_sysconfdir}/pam.d/polkit-1
  90. %{_bindir}/pkaction
  91. %{_bindir}/pkcheck
  92. %{_bindir}/pkttyagent
  93. %dir %{_prefix}/lib/polkit-1
  94. %{_prefix}/lib/polkit-1/polkitd
  95. %{_libdir}/girepository-1.0/*.typelib
  96. # see upstream docs for why these permissions are necessary
  97. %attr(4755,root,root) %{_bindir}/pkexec
  98. %attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1
  99. %files devel
  100. %defattr(-,root,root,-)
  101. %{_libdir}/lib*.so
  102. %{_libdir}/pkgconfig/*.pc
  103. %{_datadir}/gir-1.0/*.gir
  104. %{_includedir}/*
  105. %{_bindir}/pk-example-frobnicate
  106. %{_datadir}/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
  107. %files docs
  108. %defattr(-,root,root,-)
  109. %{_datadir}/gtk-doc/html/*
  110. %changelog
  111. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.112-2
  112. - new upstream release
  113. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.112-1
  114. - new upstream release
  115. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.110-1
  116. - new upstream release
  117. * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.107-1
  118. - new upstream release
  119. - add BuildRequires: js-devel
  120. - remove BuildRequires: eggdbus-devel
  121. - remove polkit-desktop-policy subpackage (based on fedora)
  122. - historical changelogs are following:
  123. * Tue May 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.105-1
  124. - new upstream release
  125. * Sat Feb 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.104-1
  126. - new upstream release
  127. * Sat Aug 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.102-1
  128. - new upstream release
  129. * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99-1
  130. - new upstream release
  131. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.96-2
  132. - build with rpm-4.8.1-1 for pkg-config file
  133. * Mon Feb 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.96-1
  134. - update to 0.96
  135. - BR: eggdbus-devel >= 0.6
  136. * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.95-0.2.git20090913
  137. - remove Obsoletes:/Provides: PolicyKit*
  138. * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.95-0.1.git20090913
  139. - initial build for Vine Linux
  140. * Wed Jul 11 2012 David Zeuthen <davidz@redhat.com> 0.107-1%{?dist}
  141. - Update to upstream release 0.107
  142. * Fri Jun 29 2012 David Zeuthen <davidz@redhat.com> 0.106-2%{?dist}
  143. - Add forgotten Requires(pre): shadow-utils
  144. * Thu Jun 07 2012 David Zeuthen <davidz@redhat.com> 0.106-1%{?dist}
  145. - Update to upstream release 0.106
  146. - Authorizations are no longer controlled by .pkla files - from now
  147. on, use the new .rules files described in the polkit(8) man page
  148. * Tue Apr 24 2012 David Zeuthen <davidz@redhat.com> 0.105-1%{?dist}
  149. - Update to upstream release 0.105
  150. - Nuke patches that are now upstream
  151. - Change 'PolicyKit' to 'polkit' in summary and descriptions
  152. * Thu Mar 08 2012 David Zeuthen <davidz@redhat.com> 0.104-6%{?dist}
  153. - Don't leak file descriptors (bgo #671486)
  154. * Mon Feb 13 2012 Matthias Clasen <mclasen@redhat.com> - 0.104-5%{?dist}
  155. - Make the -docs subpackage noarch
  156. * Mon Feb 06 2012 David Zeuthen <davidz@redhat.com> 0.104-4%{?dist}
  157. - Set error if we cannot obtain a PolkitUnixSession for a given PID (#787222)
  158. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-3
  159. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  160. * Tue Jan 03 2012 David Zeuthen <davidz@redhat.com> 0.104-2%{?dist}
  161. - Nuke the ConsoleKit run-time requirement
  162. * Tue Jan 03 2012 David Zeuthen <davidz@redhat.com> 0.104-1%{?dist}
  163. - Update to upstream release 0.104
  164. - Force usage of systemd (instead of ConsoleKit) for session tracking
  165. * Tue Dec 06 2011 David Zeuthen <davidz@redhat.com> 0.103-1%{?dist}
  166. - Update to upstream release 0.103
  167. - Drop upstreamed patch
  168. - Drop Fedora-specific policy, it is now upstream (fdo #41008)
  169. * Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.102-3
  170. - Rebuilt for glibc bug#747377
  171. * Tue Oct 18 2011 David Zeuthen <davidz@redhat.com> 0.102-2%{?dist}
  172. - Add patch to neuter the annoying systemd behavior where stdout/stderr
  173. is sent to the system logs
  174. * Thu Aug 04 2011 David Zeuthen <davidz@redhat.com> 0.102-1
  175. - Update to 0.102 release
  176. * Fri May 13 2011 Bastien Nocera <bnocera@redhat.com> 0.101-7
  177. - Allow setting the pretty hostname without a password for wheel,
  178. change matches systemd in git
  179. * Mon May 2 2011 Matthias Clasen <mclasen@redhat.com> - 0.101-6
  180. - Update the action id of the datetime mechanism
  181. * Tue Apr 19 2011 David Zeuthen <davidz@redhat.com> - 0.101-5
  182. - CVE-2011-1485 (#697951)
  183. * Tue Mar 22 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.101-4
  184. - Also allow org.kde.kcontrol.kcmclock.save without password for wheel
  185. * Thu Mar 17 2011 David Zeuthen <davidz@redhat.com> - 0.101-3
  186. - Fix typo in pkla file (thanks notting)
  187. * Thu Mar 17 2011 David Zeuthen <davidz@redhat.com> - 0.101-2
  188. - Nuke desktop_admin_r and desktop_user_r groups - just use the
  189. wheel group instead (#688363)
  190. - Update the set of configuration directives that gives users
  191. in the wheel group extra privileges
  192. * Thu Mar 03 2011 David Zeuthen <davidz@redhat.com> - 0.101-1
  193. - New upstream version
  194. * Mon Feb 21 2011 David Zeuthen <davidz@redhat.com> - 0.100-1
  195. - New upstream version
  196. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-7
  197. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  198. * Fri Jan 28 2011 Matthias Clasen <mclasen@redhat.com> - 0.98-6
  199. - Own /usr/libexec/polkit-1
  200. * Sun Nov 14 2010 Matthias Clasen <mclasen@redhat.com> - 0.98-5
  201. - Enable introspection
  202. * Thu Sep 02 2010 David Zeuthen <davidz@redhat.com> - 0.98-4
  203. - Fix #629515 in a way that doesn't require autoreconf
  204. * Thu Sep 02 2010 David Zeuthen <davidz@redhat.com> - 0.98-2
  205. - Include polkitagentenumtypes.h (#629515)
  206. * Mon Aug 23 2010 Matthias Clasen <mclasen@redhat.com> - 0.98-1
  207. - Update to upstream release 0.98
  208. - Co-own /usr/share/gtk-doc (#604410)
  209. * Wed Aug 18 2010 Matthias Clasen <mclasen@redhat.com> - 0.97-5
  210. - Rebuid to work around bodhi limitations
  211. * Wed Aug 18 2010 Matthias Clasen <mclasen@redhat.com> - 0.97-4
  212. - Fix a ConsoleKit interaction bug
  213. * Fri Aug 13 2010 David Zeuthen <davidz@redhat.com> - 0.97-3
  214. - Add a patch to make pkcheck(1) work the way libvirtd uses it (#623257)
  215. - Require GLib >= 2.25.12 instead of 2.25.11
  216. - Ensure polkit-gnome packages earlier than 0.97 are not used with
  217. these packages
  218. * Mon Aug 09 2010 David Zeuthen <davidz@redhat.com> - 0.97-2
  219. - Rebuild
  220. * Mon Aug 09 2010 David Zeuthen <davidz@redhat.com> - 0.97-1
  221. - Update to 0.97. This release contains a port from EggDBus to the
  222. GDBus code available in recent GLib releases.
  223. * Fri Jan 15 2010 David Zeuthen <davidz@redhat.com> - 0.96-1
  224. - Update to 0.96
  225. - Disable introspection support for the time being
  226. * Fri Nov 13 2009 David Zeuthen <davidz@redhat.com> - 0.95-2
  227. - Rebuild
  228. * Fri Nov 13 2009 David Zeuthen <davidz@redhat.com> - 0.95-1
  229. - Update to 0.95
  230. - Drop upstreamed patches
  231. * Tue Oct 20 2009 Matthias Clasen <mclasen@redhat.com> - 0.95-0.git20090913.3
  232. - Fix a typo in pklocalauthority(8)
  233. * Mon Sep 14 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913.2
  234. - Refine how Obsolete: is used and also add Provides: (thanks Jesse
  235. Keating and nim-nim)
  236. * Mon Sep 14 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913.1
  237. - Add bugfix for polkit_unix_process_new_full() (thanks Bastien Nocera)
  238. - Obsolete old PolicyKit packages
  239. * Sun Sep 13 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913
  240. - Update to git snapshot
  241. - Drop upstreamed patches
  242. - Turn on GObject introspection
  243. - Don't delete desktop_admin_r and desktop_user_r groups when
  244. uninstalling polkit-desktop-policy
  245. * Fri Sep 11 2009 David Zeuthen <davidz@redhat.com> - 0.94-4
  246. - Add some patches from git master
  247. - Sort pkaction(1) output
  248. - Bug 23867 – UnixProcess vs. SystemBusName aliasing
  249. * Thu Aug 13 2009 David Zeuthen <davidz@redhat.com> - 0.94-3
  250. - Add desktop_admin_r and desktop_user_r groups along with a first cut
  251. of default authorizations for users in these groups.
  252. * Wed Aug 12 2009 David Zeuthen <davidz@redhat.com> - 0.94-2
  253. - Disable GObject Introspection for now as it breaks the build
  254. * Wed Aug 12 2009 David Zeuthen <davidz@redhat.com> - 0.94-1
  255. - Update to upstream release 0.94
  256. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3
  257. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  258. * Mon Jul 20 2009 David Zeuthen <davidz@redhat.com> - 0.93-2
  259. - Rebuild
  260. * Mon Jul 20 2009 David Zeuthen <davidz@redhat.com> - 0.93-1
  261. - Update to 0.93
  262. * Tue Jun 09 2009 David Zeuthen <davidz@redhat.com> - 0.92-3
  263. - Don't make docs noarch (I *heart* multilib)
  264. - Change license to LGPLv2+
  265. * Mon Jun 08 2009 David Zeuthen <davidz@redhat.com> - 0.92-2
  266. - Rebuild
  267. * Mon Jun 08 2009 David Zeuthen <davidz@redhat.com> - 0.92-1
  268. - Update to 0.92 release
  269. * Wed May 27 2009 David Zeuthen <davidz@redhat.com> - 0.92-0.git20090527
  270. - Update to 0.92 snapshot
  271. * Mon Feb 9 2009 David Zeuthen <davidz@redhat.com> - 0.91-1
  272. - Initial spec file.