polkit/polkit.spec

193 lines
5.6 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:13:55 -04:00
Name: polkit
2024-01-08 16:15:32 +08:00
Version: 123
Release: 1
2019-09-30 11:13:55 -04:00
Summary: Define and Handle authorizations tool
License: LGPLv2+
URL: http://www.freedesktop.org/wiki/Software/polkit
2023-02-01 16:00:57 +08:00
Source0: https://gitlab.freedesktop.org/polkit/polkit/-/archive/%{version}/%{name}-%{version}.tar.gz
2019-09-30 11:13:55 -04:00
2021-06-15 11:32:08 +08:00
Patch0: modify-admin-authorization-from-wheel-group-to-root.patch
2023-02-01 16:00:57 +08:00
BuildRequires: gcc-c++ glib2-devel >= 2.30.0 expat-devel pam-devel gtk-doc gettext-devel
BuildRequires: gobject-introspection-devel systemd systemd-devel dbus-devel
BuildRequires: pkgconfig(duktape) >= 2.2.0 meson git
Requires: dbus polkit-pkla-compat
2019-09-30 11:13:55 -04:00
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires(pre): shadow-utils
Requires(post): /sbin/ldconfig, systemd
Requires(preun): systemd
Requires(postun): /sbin/ldconfig, systemd
2023-02-01 16:00:57 +08:00
Obsoletes: PolicyKit <= 0.10 polkit-desktop-policy < 0.103 polkit-js-engine < 0.120-5 polkit < 0.113-3
2019-09-30 11:13:55 -04:00
Provides: PolicyKit = 0.11 polkit-desktop-policy = 0.103 polkit-js-engine = %{version}-%{release}
Conflicts: polkit-gnome < 0.97
%description
polkit is a toolkit for defining and handling authorizations. It is
used for allowing unprivileged processes to speak to privileged processes.
%package libs
Summary: Libraries for polkit
%description libs
Libraries files for polkit.
%package devel
Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: %{name}-help = %{version}-%{release}
Requires: glib2-devel
2023-02-01 16:00:57 +08:00
Obsoletes: PolicyKit-devel <= 0.10 PolicyKit-docs <= 0.10
2019-09-30 11:13:55 -04:00
Provides: PolicyKit-devel = 0.11 PolicyKit-docs = 0.11 polkit-docs
%description devel
Development files for polkit.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
2023-02-01 16:00:57 +08:00
%meson -D gtk_doc=true \
-D introspection=true \
-D man=true \
-D session_tracking=libsystemd-login \
-D examples=false \
-D tests=false \
-D js_engine=duktape
2019-09-30 11:13:55 -04:00
2023-02-01 16:00:57 +08:00
%meson_build
2019-09-30 11:13:55 -04:00
%install
2023-02-01 16:00:57 +08:00
%meson_install
2019-09-30 11:13:55 -04:00
%delete_la
%find_lang polkit-1
%pre
getent group polkitd >/dev/null || groupadd -r polkitd
getent passwd polkitd >/dev/null || useradd -r -g polkitd -d / -s /sbin/nologin -c "User for polkitd" polkitd
exit 0
%post
%systemd_post polkit.service
%preun
%systemd_preun polkit.service
%postun
%systemd_postun_with_restart polkit.service
%files -f polkit-1.lang
2023-02-01 16:00:57 +08:00
%doc COPYING NEWS.md README.md
2021-11-30 16:46:51 +08:00
%{_datadir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
2019-09-30 11:13:55 -04:00
%{_datadir}/dbus-1/system-services/*
2023-02-01 16:00:57 +08:00
%{_unitdir}/polkit.service
2019-09-30 11:13:55 -04:00
%dir %{_datadir}/polkit-1/
%dir %{_datadir}/polkit-1/actions
%attr(0700,polkitd,root) %dir %{_datadir}/polkit-1/rules.d
%{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy
2023-02-01 16:00:57 +08:00
%{_datadir}/polkit-1/policyconfig-1.dtd
%dir %{_sysconfdir}/polkit-1
%{_datadir}/polkit-1/rules.d/50-default.rules
%attr(0700,polkitd,root) %dir %{_sysconfdir}/polkit-1/rules.d
%{_sysconfdir}/pam.d/polkit-1
2019-09-30 11:13:55 -04:00
%{_bindir}/pkaction
%{_bindir}/pkcheck
%{_bindir}/pkttyagent
%dir %{_prefix}/lib/polkit-1
%{_prefix}/lib/polkit-1/polkitd
%attr(4755,root,root) %{_bindir}/pkexec
%attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files libs
%{_libdir}/lib*.so.*
%{_libdir}/girepository-1.0/*.typelib
%files devel
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib*.so
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gettext/its/polkit.its
%{_datadir}/gettext/its/polkit.loc
%{_datadir}/gtk-doc
%files help
%{_datadir}/man/man1/*
%{_datadir}/man/man8/*
%changelog
2024-01-08 16:15:32 +08:00
* Tue Jan 30 2024 wangyu <wangqingsan@huawei.com> - 123-1
- update to 123
- duktape:prevent wrongful termination of runway thread
- harden the security features of the systemd service
- add packit build tool
- systemd:set User/Group and don't change uid/gid if already set
- stop installing /usr/share/polkit-1/rules.d as 700/polkitd
- moving the 50-default.rules file location
* Fri Feb 17 2023 wangyu <wangyu283@huawei.com> - 122-2
- revert: delete the expired polkit-pkla-compat
2023-02-01 16:00:57 +08:00
* Wed Feb 01 2023 wangyu <wangyu283@huawei.com> - 122-1
- Upgrade to 122
2022-12-15 15:29:25 +08:00
* Thu Dec 15 2022 shenxiangwei <shenxiangwei1@huawei.com> - 0.120-8
- fix core dump problem
* Fri Nov 11 2022 wangyu <wangyu283@huawei.com> - 0.120-7
- remake even configure scripts and configuration headers that are newer than their input files
2022-08-22 15:47:42 +08:00
* Mon Aug 22 2022 gengqihu <qihu@nfschina.com> - 0.120-6
- delete the expired polkit-pkla-compat
2022-05-05 11:27:18 +08:00
* Thu May 5 2022 Hugel <gengqihu1@h-partners.com> - 0.120-5
- change jsauthority to duktape
2022-04-01 11:46:32 +08:00
* Fri Apr 1 2022 Hugel <gengqihu1@h-partners.com> - 0.120-4
- change jsauthority to mozjs91
2022-03-05 15:33:28 +08:00
* Sat Mar 5 2022 panxiaohe <panxh.life@foxmail.com> - 0.120-3
- Fix CVE-2021-4115
2022-01-26 17:03:18 +08:00
* Wed Jan 26 2022 panxiaohe <panxiaohe@huawei.com> - 0.120-2
- Fix CVE-2021-4034
2021-11-30 16:46:51 +08:00
* Mon Dec 6 2021 panxiaohe <panxiaohe@huawei.com> - 0.120-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 0.120
2021-06-15 11:32:08 +08:00
* Tue Jun 15 2021 panxiaohe <panxiaohe@huawei.com> - 0.118-2
- Fix CVE-2021-3560
2021-01-21 19:14:17 +08:00
* Thu Jan 21 2021 yixiangzhike <zhangxingliang3@huawei.com> - 0.118-1
- update to 0.118
2021-01-06 15:29:13 +08:00
* Wed Jan 6 2021 Liquor <lirui130@huawei.com> - 0.116-6
- remove 10-shutdown.rules
2020-11-13 10:40:07 +08:00
* Fri Nov 13 2020 Hugel <gengqihu1@huawei.com> - 0.116-5
- Port polkit to mozjs78
2019-09-30 11:13:55 -04:00
* Sun Sep 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.116-4
- Add libs
* Sat Sep 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.116-3
- Fix requires
* Tue Sep 24 2019 chengquan <chengquan3@huawei.com> - 0.116-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:revise requires of polkit
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.116-1
- Package init