deepin-daemon/deepin-daemon.spec

332 lines
16 KiB
RPMSpec
Raw Normal View History

#
# spec file for package deepin-daemon
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2019-04-25 03:52:57 +02:00
%define _name dde-daemon
%define import_path pkg.deepin.io/dde/daemon
Name: deepin-daemon
2019-04-25 03:52:57 +02:00
Version: 3.27.0
Release: 0
Summary: Daemon handling the DDE session settings
License: GPL-3.0+
URL: https://github.com/linuxdeepin/dde-daemon
Source0: https://github.com/linuxdeepin/dde-daemon/archive/%{version}/%{_name}-%{version}.tar.gz
Source1: %{name}.sysusers
Source99: %{name}-rpmlintrc
2019-04-25 03:52:57 +02:00
# PATCH-FIX-UPSTREAM deepin-daemon-fix-policy-settings.patch
# hillwood@opensuse.org - Fix policy settings.
Patch0: %{name}-fix-policy-settings.patch
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
# PATCH-FIX-OPENSUSE deepin-daemon-libinput.patch.patch hillwood@opensuse.org - Fix build on libinput.
Patch1: %{name}-libinput.patch
2019-04-25 03:52:57 +02:00
# PATCH-FIX-OPENSUSE disable-gobuild-in-makefile.patch hillwood@opensuse.org
# Use gobuild macro instead of makefile to build go binaries
Patch2: disable-gobuild-in-makefile.patch
Group: System/GUI/Other
BuildRequires: golang-packaging
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
BuildRequires: deepin-gettext-tools
BuildRequires: fontpackages-devel
BuildRequires: pam-devel
2019-04-25 03:52:57 +02:00
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libbamf3)
BuildRequires: pkgconfig(libcanberra)
2019-04-25 03:52:57 +02:00
BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(libnl-genl-3.0)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libinput)
BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xkbfile)
2019-04-25 03:52:57 +02:00
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.policykit1)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.login1)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.accounts)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.sessionmanager)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.wm)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.cursorhelper)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.soundthemeplayer)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.dbus)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.mpris.mediaplayer2)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/net.reactivated.fprint)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.device)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.bluez)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.dde.daemon.launcher)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.dde.launcher)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.daemon)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.gesture)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.notifications)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.audio)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.display)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.helper.backlight)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.inputdevices)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.localehelper)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.network)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.lastore)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.system.power)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.pinyin)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.miracle.wfd)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.miracle.wifi)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.networkmanager)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.system.network)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.modemmanager1)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.secrets)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.sessionwatcher)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/net.hadess.sensorproxy)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.screensaver)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.timedate1)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.udisks2)
BuildRequires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.timedated)
BuildRequires: golang(pkg.deepin.io/dde/api/lang_info)
BuildRequires: golang(pkg.deepin.io/dde/api/theme_thumb)
BuildRequires: golang(pkg.deepin.io/dde/api/themes)
BuildRequires: golang(pkg.deepin.io/dde/api/soundutils)
BuildRequires: golang(pkg.deepin.io/dde/api/session)
BuildRequires: golang(pkg.deepin.io/dde/api/userenv)
BuildRequires: golang(pkg.deepin.io/dde/api/thumbnails/cursor)
BuildRequires: golang(pkg.deepin.io/dde/api/thumbnails/gtk)
BuildRequires: golang(pkg.deepin.io/dde/api/thumbnails/icon)
BuildRequires: golang(pkg.deepin.io/dde/api/thumbnails/images)
BuildRequires: golang(pkg.deepin.io/dde/api/drandr)
BuildRequires: golang(pkg.deepin.io/dde/api/dxinput)
BuildRequires: golang(pkg.deepin.io/dde/api/dxinput/utils)
BuildRequires: golang(pkg.deepin.io/dde/api/language_support)
BuildRequires: golang(pkg.deepin.io/dde/api/powersupply/battery)
BuildRequires: golang(pkg.deepin.io/dde/api/powersupply)
BuildRequires: golang(github.com/msteinert/pam)
BuildRequires: golang(github.com/axgle/mahonia)
BuildRequires: golang(gopkg.in/yaml.v2)
BuildRequires: golang(github.com/gosexy/gettext)
BuildRequires: golang-github-linuxdeepin-dde-api
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
BuildRequires: rsvg-view
2019-04-25 03:52:57 +02:00
BuildRequires: systemd
Requires: deepin-desktop-base
Requires: deepin-desktop-schemas
2019-04-25 03:52:57 +02:00
Requires: deepin-osd
Requires: deepin-polkit-agent
Requires: acpid
Requires: gvfs
Requires: iw
Requires: rfkill
Requires: upower
Requires: xdotool
2019-04-25 03:52:57 +02:00
Requires: wallpaper-branding-openSUSE
Recommends: %{name}-lang = %{version}
Recommends: iso-codes
Recommends: mobile-broadband-provider-info
2019-04-25 03:52:57 +02:00
AutoReqProv: Off
BuildRoot: %{_tmppath}/%{name}-%{version}-build
2019-04-25 03:52:57 +02:00
%{?systemd_requires}
%description
Deepin Daemon is a daemon for handling the deepin session settings
2019-04-25 03:52:57 +02:00
%package -n golang-github-linuxdeepin-deepin-daemon
Summary: Deepin daemon golang codes
Group: Development/Languages/Golang
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.policykit1)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.login1)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.accounts)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.sessionmanager)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.wm)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.cursorhelper)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.soundthemeplayer)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.dbus)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.mpris.mediaplayer2)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/net.reactivated.fprint)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.device)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.bluez)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.apps)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.dde.daemon.launcher)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.dde.launcher)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.daemon)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.gesture)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.notifications)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.audio)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.display)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.helper.backlight)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.inputdevices)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.localehelper)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.network)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.lastore)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.system.power)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.api.pinyin)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.miracle.wfd)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.miracle.wifi)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.networkmanager)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.system.network)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.modemmanager1)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.secrets)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.sessionwatcher)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/net.hadess.sensorproxy)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.screensaver)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.timedate1)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/org.freedesktop.udisks2)
Requires: golang(github.com/linuxdeepin/go-dbus-factory/com.deepin.daemon.timedated)
Requires: golang(pkg.deepin.io/dde/api/lang_info)
Requires: golang(pkg.deepin.io/dde/api/theme_thumb)
Requires: golang(pkg.deepin.io/dde/api/themes)
Requires: golang(pkg.deepin.io/dde/api/soundutils)
Requires: golang(pkg.deepin.io/dde/api/session)
Requires: golang(pkg.deepin.io/dde/api/userenv)
Requires: golang(pkg.deepin.io/dde/api/thumbnails/cursor)
Requires: golang(pkg.deepin.io/dde/api/thumbnails/gtk)
Requires: golang(pkg.deepin.io/dde/api/thumbnails/icon)
Requires: golang(pkg.deepin.io/dde/api/thumbnails/images)
Requires: golang(pkg.deepin.io/dde/api/drandr)
Requires: golang(pkg.deepin.io/dde/api/dxinput)
Requires: golang(pkg.deepin.io/dde/api/dxinput/utils)
Requires: golang(pkg.deepin.io/dde/api/language_support)
Requires: golang(pkg.deepin.io/dde/api/powersupply/battery)
Requires: golang(pkg.deepin.io/dde/api/powersupply)
Requires: golang(github.com/msteinert/pam)
Requires: golang(github.com/axgle/mahonia)
Requires: golang(gopkg.in/yaml.v2)
Requires: golang(github.com/gosexy/gettext)
Requires: golang-github-linuxdeepin-dde-api
2019-04-25 03:52:57 +02:00
BuildArch: noarch
AutoReqProv: On
%{go_provides}
%description -n golang-github-linuxdeepin-deepin-daemon
This package contains library source intended forbuilding other packages which
use import path with pkg.deepin.io/dde/daemon prefix.
%lang_package
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
%patch1 -p1
2019-04-25 03:52:57 +02:00
%patch2 -p1
sed -i '/systemd/s|lib|usr/lib|' Makefile
sed -i 's|lib/NetworkManager|lib|' network/utils_test.go
# Fix grub.cfg path and don't change openSUSE default grub2 theme
2019-04-25 03:52:57 +02:00
sed -i 's|boot/grub/deepin|boot/grub2/openSUSE|' grub2/*.go
sed -i 's|/usr/share/backgrounds/default_background.jpg|/usr/share/wallpapers/openSUSEdefault/contents/images/1920x1080.jpg|' accounts/user.go
%build
2019-04-25 03:52:57 +02:00
%goprep %{import_path}
%gobuild ...
make %{?_smp_mflags}
%install
2019-04-25 03:52:57 +02:00
%goinstall
%gosrc
%make_install
2019-04-25 03:52:57 +02:00
pushd %{buildroot}%{_libexecdir}/deepin-daemon
ln -s ../../bin/* .
popd
%gofilelist
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
install -Dm644 %{S:1} %{buildroot}%{_libexecdir}/sysusers.d/deepin-daemon.conf
# fix systemd/logind config
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
install -d %{buildroot}%{_libexecdir}/systemd/logind.conf.d/
cat > %{buildroot}%{_libexecdir}/systemd/logind.conf.d/10-%{name}.conf <<EOF
[Login]
HandlePowerKey=ignore
HandleSuspendKey=ignore
EOF
2019-04-25 03:52:57 +02:00
install -d %{buildroot}%{_sbindir}
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdeepin-accounts-daemon
%find_lang %{_name}
2019-04-25 03:52:57 +02:00
%pre
%service_add_pre deepin-accounts-daemon.service
%post
2019-04-25 03:52:57 +02:00
%service_add_post deepin-accounts-daemon.service
if [ $1 -ge 1 ]; then
%sysusers_create deepin-daemon.conf
%{_sbindir}/alternatives --install %{_bindir}/x-terminal-emulator \
x-terminal-emulator %{_libexecdir}/%{name}/default-terminal 30
fi
%preun
2019-04-25 03:52:57 +02:00
%service_del_preun deepin-accounts-daemon.service
if [ $1 -eq 0 ]; then
%{_sbindir}/alternatives --remove x-terminal-emulator \
%{_libexecdir}/%{name}/default-terminal
fi
%postun
2019-04-25 03:52:57 +02:00
%service_del_postun deepin-accounts-daemon.service
if [ $1 -eq 0 ]; then
rm -f /var/cache/deepin/mark-setup-network-services
rm -f /var/log/deepin.log
fi
%files
%defattr(-,root,root,-)
2019-04-25 03:52:57 +02:00
%doc README.md
%license LICENSE
%{_bindir}/*
%dir %{_sysconfdir}/default/grub.d
%config %{_sysconfdir}/default/grub.d/10_deepin.cfg
%config %{_sysconfdir}/pam.d/deepin-auth-keyboard
%dir %{_sysconfdir}/grub.d
%{_sysconfdir}/grub.d/35_deepin_gfxmode
%{_libexecdir}/%{name}/
%dir %{_sysusersdir}
%{_sysusersdir}/%{name}.conf
%dir %{_libexecdir}/systemd/logind.conf.d
%{_libexecdir}/systemd/logind.conf.d/10-%{name}.conf
%{_datadir}/dbus-1/services/*.service
%{_datadir}/dbus-1/system-services/*.service
%dir %{_datadir}/dbus-1/system.d
%{_datadir}/dbus-1/system.d/*.conf
%{_datadir}/%{_name}/
%{_datadir}/dde/
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/*.policy
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
%{_datadir}/icons/hicolor/*/status/*
2019-04-25 03:52:57 +02:00
%dir %{_datadir}/pam-configs
%{_datadir}/pam-configs/deepin-auth
/var/cache/appearance/
%{_unitdir}/deepin-accounts-daemon.service
%{_sbindir}/rcdeepin-accounts-daemon
%dir /var/lib/polkit-1
%dir /var/lib/polkit-1/localauthority
%dir /var/lib/polkit-1/localauthority/10-vendor.d
/var/lib/polkit-1/localauthority/10-vendor.d/com.deepin.daemon.Accounts.pkla
/var/lib/polkit-1/localauthority/10-vendor.d/com.deepin.daemon.Grub2.pkla
%files -n golang-github-linuxdeepin-deepin-daemon -f file.lst
%defattr(-,root,root,-)
%files lang -f %{_name}.lang
%changelog