Hello community,
here is the log from the commit of package rubygem-webyast-users for
openSUSE:Factory checked in at 2013-08-23 11:04:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-webyast-users (Old)
and /work/SRC/openSUSE:Factory/.rubygem-webyast-users.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-webyast-users"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-webyast-users/rubygem-webyast-users.changes
2013-03-08 09:50:40.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-webyast-users.new/rubygem-webyast-users.changes
2013-08-23 11:04:27.000000000 +0200
@@ -1,0 +2,11 @@
+Tue May 21 15:44:57 UTC 2013 - [email protected]
+
+- Add explicit dependency on yast2-users package
+
+-------------------------------------------------------------------
+Mon Apr 22 13:49:04 UTC 2013 - [email protected]
+
+- support for the new polkit (Javascript rules file) (bnc#816478)
+- 0.3.13
+
+-------------------------------------------------------------------
Old:
----
webyast-users-0.3.12.gem
New:
----
40-default-webyast-users.rules
webyast-users-0.3.13.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-webyast-users.spec ++++++
--- /var/tmp/diff_new_pack.RDOJ8n/_old 2013-08-23 11:04:28.000000000 +0200
+++ /var/tmp/diff_new_pack.RDOJ8n/_new 2013-08-23 11:04:28.000000000 +0200
@@ -17,12 +17,13 @@
Name: rubygem-webyast-users
-Version: 0.3.12
+Version: 0.3.13
Release: 0
%define mod_name webyast-users
%define mod_full_name %{mod_name}-%{version}
#
#
+Requires: yast2-users
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: rubygems_with_buildroot_patch
%rubygems_requires
@@ -30,6 +31,7 @@
BuildRequires: webyast-base >= 0.3.31
BuildRequires: webyast-base-testsuite
PreReq: webyast-base >= 0.3.31
+Requires: rubygem-webyast-roles
Obsoletes: webyast-users-ui < %{version}
Obsoletes: webyast-users-ws < %{version}
@@ -42,6 +44,7 @@
Group: Productivity/Networking/Web/Utilities
Source: %{mod_full_name}.gem
Source1: org.opensuse.yast.modules.yapi.users.policy
+Source2: 40-default-webyast-users.rules
%package doc
Summary: RDoc documentation for %{mod_name}
@@ -86,6 +89,10 @@
# Policies
mkdir -p $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir}
install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir}
+%if %suse_version >= 1230
+mkdir -p $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
+install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
+%endif
%webyast_build_plugin_assets
@@ -93,12 +100,14 @@
%{__rm} -rf $RPM_BUILD_ROOT
%post
+%if %suse_version < 1230
#
# granting all permissions for root
#
/usr/sbin/grantwebyastrights --user root --action grant > /dev/null || :
# and for webyast
/usr/sbin/grantwebyastrights --user %{webyast_user} --action grant > /dev/null
||:
+%endif
%restart_webyast
@@ -118,6 +127,9 @@
%dir /usr/share/%{webyast_polkit_dir}
%attr(644,root,root) %config
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.users.policy
+%if %suse_version >= 1230
+/etc/polkit-1/rules.d/40-default-webyast-users.rules
+%endif
%restart_script_name
++++++ 40-default-webyast-users.rules ++++++
// default permissions for "webyast" and "root" users
polkit.addRule(function(action, subject) {
if ((action.id == "org.opensuse.yast.modules.yapi.users.groupsget"
|| action.id == "org.opensuse.yast.modules.yapi.users.groupget"
|| action.id == "org.opensuse.yast.modules.yapi.users.groupadd"
|| action.id == "org.opensuse.yast.modules.yapi.users.groupmodify"
|| action.id == "org.opensuse.yast.modules.yapi.users.groupdelete"
|| action.id == "org.opensuse.yast.modules.yapi.users.usersget"
|| action.id == "org.opensuse.yast.modules.yapi.users.userget"
|| action.id == "org.opensuse.yast.modules.yapi.users.usermodify"
|| action.id == "org.opensuse.yast.modules.yapi.users.useradd"
|| action.id == "org.opensuse.yast.modules.yapi.users.userdelete"
) && (subject.user == "webyast" || subject.user == "root"))
{
return polkit.Result.YES;
}
});
// vim: syntax=javascript
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]