###############################################################################
name = polkit
-version = 0.96
+version = 122
release = 1
groups = System/Libraries
-url = http://www.freedesktop.org/wiki/Software/PolicyKit
+url = https://gitlab.freedesktop.org/polkit/polkit/
license = LGPLv2+
-summary = PolicyKit Authorization Framework.
+summary = PolicyKit Authorization Framework
description
PolicyKit is a toolkit for defining and handling authorizations.
processes.
end
-source_dl =
+source_dl = https://gitlab.freedesktop.org/polkit/polkit/-/archive/%{version}/
build
requires
- eggdbus-devel
+ dbus-devel
+ docbook-xsl
+ duktape-devel
expat-devel
- intltool
- gettext
- glib2-devel
+ glib2-devel >= 2.30.0
+ gobject-introspection-devel
+ libxslt
+ meson
+ ninja
pam-devel
- perl-XML-Parser
pkg-config
+ systemd-devel
end
- configure_options += \
- --sysconfdir=/etc \
- --libexecdir=/usr/lib/polkit-1 \
- --localstatedir=/var \
- --disable-introspection \
- --disable-static
+ build
+ %{meson} \
+ -D authfw=pam \
+ -D introspection=true \
+ -D man=true \
+ -D session_tracking=libsystemd-login \
+ -D os_type=redhat
- prepare_cmds
- sed -e "s/^SUBDIRS.*/SUBDIRS = actions data src po/" -i Makefile*
+ %{meson_build}
+ end
+
+ install
+ %{meson_install}
end
end
packages
package %{name}
+
+ package %{name}-libs
+ template LIBS
end
package %{name}-devel
template DEVEL
+
+ requires = polkit-libs = %{thisver}
end
package %{name}-debuginfo