Package init
This commit is contained in:
commit
d2983c85e8
BIN
cups-pk-helper-0.2.6.tar.xz
Normal file
BIN
cups-pk-helper-0.2.6.tar.xz
Normal file
Binary file not shown.
42
cups-pk-helper.spec
Normal file
42
cups-pk-helper.spec
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
Name: cups-pk-helper
|
||||||
|
Version: 0.2.6
|
||||||
|
Release: 7
|
||||||
|
Summary: Cups config helper
|
||||||
|
License: GPLv2+
|
||||||
|
|
||||||
|
URL: http://www.freedesktop.org/wiki/Software/cups-pk-helper/
|
||||||
|
Source0: http://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-%{version}.tar.xz
|
||||||
|
|
||||||
|
#Get Patch from fedora
|
||||||
|
Patch0: polkit_result.patch
|
||||||
|
|
||||||
|
BuildRequires: libtool >= 1.4.3 cups-devel >= 1.2 glib2-devel >= 2.29.8 gtk2-devel >= 2.12.0
|
||||||
|
BuildRequires: dbus-glib-devel >= 0.74 polkit-devel >= 0.97 polkit-gnome >= 0.97
|
||||||
|
BuildRequires: intltool >= 0.40.6 gettext-devel >= 0.17 gnome-common >= 2.26
|
||||||
|
|
||||||
|
Requires: cups-libs >= 1.2 dbus-glib >= 0.74 dbus >= 1.2 glib2 >= 2.29.8
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package provides a helper to configure cups.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%find_lang %{name}
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%doc AUTHORS COPYING NEWS
|
||||||
|
%{_sysconfdir}/dbus-1/system.d/org.opensuse.CupsPkHelper.Mechanism.conf
|
||||||
|
%{_libexecdir}/cups-pk-helper-mechanism
|
||||||
|
%{_datadir}/dbus-1/system-services/org.opensuse.CupsPkHelper.Mechanism.service
|
||||||
|
%{_datadir}/polkit-1/actions/org.opensuse.cupspkhelper.mechanism.policy
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Sep 7 2019 guan yanjie <guanyanjie@huawei.com> - 24-5
|
||||||
|
- Package init for openEuler
|
||||||
11
polkit_result.patch
Normal file
11
polkit_result.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- cups-pk-helper-0.1.3/src/cups-pk-helper-mechanism.c 2011-09-02 11:30:26.000000000 +0200
|
||||||
|
+++ cups-pk-helper-0.1.3/src/cups-pk-helper-mechanism.c 2011-09-02 11:31:34.000000000 +0200
|
||||||
|
@@ -291,7 +291,7 @@ _check_polkit_for_action_internal (CphMe
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (!polkit_authorization_result_get_is_authorized (pk_result)) {
|
||||||
|
+ if (pk_result == NULL || !polkit_authorization_result_get_is_authorized (pk_result)) {
|
||||||
|
g_set_error (error,
|
||||||
|
CPH_MECHANISM_ERROR,
|
||||||
|
CPH_MECHANISM_ERROR_NOT_PRIVILEGED,
|
||||||
Loading…
x
Reference in New Issue
Block a user