polkit-vl.spec 13 KB

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