deepin-daemon/deepin-daemon.spec

175 lines
5.5 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/
#
%define _name dde-daemon
Name: deepin-daemon
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 11:13:12 +00:00
Version: 3.2.7
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
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 11:13:12 +00:00
# PATCH-FIX-UPSTREAM deepin-daemon-fix-wrong-policy-settings.patch hillwood@opensuse.org - Fix wrong policyconfig settings.
Patch0: %{name}-fix-wrong-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 11:13:12 +00:00
# PATCH-FIX-OPENSUSE deepin-daemon-libinput.patch.patch hillwood@opensuse.org - Fix build on libinput.
Patch1: %{name}-libinput.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 11:13:12 +00:00
BuildRequires: deepin-gettext-tools
BuildRequires: golang-gir-generator
BuildRequires: fontpackages-devel
BuildRequires: pam-devel
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)
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)
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 11:13:12 +00:00
BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(libnl-genl-3.0)
BuildRequires: golang-dbus-factory >= 3.1.9
BuildRequires: golang-go-lib
BuildRequires: golang-deepin-api-source
BuildRequires: golang-github-linuxdeepin-go-x11-client
BuildRequires: golang-github-burntsushi-xgb
BuildRequires: golang-github-burntsushi-xgbutil
BuildRequires: golang-github-axgle-mahonia
BuildRequires: golang-github-msteinert-pam
BuildRequires: golang-github-nfnt-resize
BuildRequires: golang-github-alecthomas-kingpin
BuildRequires: golang-gopkgin-yaml
BuildRequires: golang-org-x-tools
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 11:13:12 +00:00
BuildRequires: golang-org-x-text >= 1.5.2+git20161209
BuildRequires: golang-org-x-net
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 11:13:12 +00:00
BuildRequires: rsvg-view
Requires: deepin-desktop-base
Requires: deepin-desktop-schemas
Requires: deepin-notifications
Requires: deepin-polkit-agent
Requires: acpid
Requires: gvfs
Requires: iw
Requires: rfkill
Requires: upower
Requires: xdotool
Requires: systemd
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 11:13:12 +00:00
Recommends: %{name}-lang = {version}
Recommends: NetworkManager-vpnc-gnome
Recommends: NetworkManager-pptp-gnome
Recommends: NetworkManager-l2tp-gnome
Recommends: NetworkManager-strongswan-gnome
Recommends: NetworkManager-openvpn-gnome
Recommends: NetworkManager-openconnect-gnome
Recommends: iso-codes
Recommends: mobile-broadband-provider-info
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Deepin Daemon is a daemon for handling the deepin session settings
%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 11:13:12 +00:00
%patch1 -p1
# Fix library exec path
sed -i '/ldflags/d' Makefile
# Fix grub.cfg path
sed -i 's|boot/grub|boot/grub2|' grub2/{theme,log,entry,config}.go
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 11:13:12 +00:00
sed -i 's|default_background.jpg|background.png|' accounts/user.go
%build
make %{?_smp_mflags}
%install
%make_install
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 11:13:12 +00: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 11:13:12 +00: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
%find_lang %{_name}
%post
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
if [ $1 -eq 0 ]; then
%{_sbindir}/alternatives --remove x-terminal-emulator \
%{_libexecdir}/%{name}/default-terminal
fi
%postun
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,-)
%doc README.md LICENSE
%{_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 11:13:12 +00:00
%{_datadir}/icons/hicolor/*/status/*
%{_var}/cache/appearance/
%files lang -f %{_name}.lang
%changelog