Hello community,
here is the log from the commit of package rubygem-webyast-roles for
openSUSE:Factory checked in at 2013-08-27 21:10:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-webyast-roles (Old)
and /work/SRC/openSUSE:Factory/.rubygem-webyast-roles.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-webyast-roles"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-webyast-roles/rubygem-webyast-roles.changes
2013-03-08 21:16:59.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-webyast-roles.new/rubygem-webyast-roles.changes
2013-08-27 21:22:23.000000000 +0200
@@ -1,0 +2,12 @@
+Mon Aug 26 08:19:43 UTC 2013 - [email protected]
+
+- restart WebYast when the plugin is uninstalled
+- 0.3.16
+
+-------------------------------------------------------------------
+Mon Apr 22 13:49:04 UTC 2013 - [email protected]
+
+- support for the new polkit (Javascript rules file) (bnc#816478)
+- 0.3.15
+
+-------------------------------------------------------------------
Old:
----
webyast-roles-0.3.14.gem
New:
----
40-default-webyast-roles.rules
webyast-roles-0.3.16.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-webyast-roles.spec ++++++
--- /var/tmp/diff_new_pack.8T4ibf/_old 2013-08-27 21:22:24.000000000 +0200
+++ /var/tmp/diff_new_pack.8T4ibf/_new 2013-08-27 21:22:24.000000000 +0200
@@ -17,7 +17,7 @@
Name: rubygem-webyast-roles
-Version: 0.3.14
+Version: 0.3.16
Release: 0
%define mod_name webyast-roles
%define mod_full_name %{mod_name}-%{version}
@@ -45,6 +45,7 @@
Source1: roles.yml
Source2: roles_assign.yml
Source3: org.opensuse.yast.modules.yapi.roles.policy
+Source4: 40-default-webyast-roles.rules
%package doc
Summary: RDoc documentation for %{mod_name}
@@ -90,6 +91,10 @@
# Policies
mkdir -p $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir}
install -m 0644 %SOURCE3 $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 %SOURCE4 $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
+%endif
%webyast_build_restdoc
%webyast_build_plugin_assets
@@ -98,17 +103,20 @@
%{__rm} -rf $RPM_BUILD_ROOT
%post
+%if %suse_version < 1230
#
# granting all permissions for root
#
/usr/sbin/grantwebyastrights --user root --action grant > /dev/null
# XXX not nice to get webyast all permissions, but now not better solution
/usr/sbin/grantwebyastrights --user %{webyast_user} --action grant > /dev/null
+%endif
%restart_webyast
%postun
%webyast_remove_assets
+%webyast_plugin_postun
%files
@@ -125,6 +133,9 @@
%attr(0700,%{webyast_user},%{webyast_user}) %dir %{webyast_vardir}/roles
%attr(0600,%{webyast_user},%{webyast_user}) %config %{webyast_vardir}/roles/*
%attr(644,root,root) %config
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.roles.policy
+%if %suse_version >= 1230
+/etc/polkit-1/rules.d/40-default-webyast-roles.rules
+%endif
%restart_script_name
++++++ 40-default-webyast-roles.rules ++++++
// default permissions for "webyast" and "root" users
polkit.addRule(function(action, subject) {
if ((action.id == "org.opensuse.yast.modules.yapi.roles.read"
|| action.id == "org.opensuse.yast.modules.yapi.roles.write"
) && (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]