代码拉取完成,页面将自动刷新
同步操作将从 src-anolis-dde/dde-daemon 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global _smp_mflags -j1
%global debug_package %{nil}
%global _unpackaged_files_terminate_build 0
%global _missing_build_ids_terminate_build 0
%define __debug_install_post \
%{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"\
%{nil}
%global sname deepin-daemon
%global release_name server-industry
Name: dde-daemon
Version: 5.13.97
Release: 2%{?dist}
Summary: Daemon handling the DDE session settings
License: GPLv3
URL: http://shuttle.corp.deepin.com/cache/tasks/18802/unstable-amd64/
Source0: %{name}-%{version}.tar.gz
Source1: 99-deepin-accounts-daemon.preset
Patch1000: locale.go.patch
BuildRequires: python3
BuildRequires: compiler(go-compiler)
BuildRequires: deepin-gettext-tools
BuildRequires: fontpackages-devel
BuildRequires: librsvg2-tools
BuildRequires: pam-devel >= 1.3.1
BuildRequires: pam >= 1.3.1
BuildRequires: glib2-devel
BuildRequires: gtk3-devel
BuildRequires: systemd-devel
BuildRequires: alsa-lib-devel
BuildRequires: alsa-lib
BuildRequires: pulseaudio-libs-devel
BuildRequires: gdk-pixbuf2-xlib-devel
BuildRequires: gdk-pixbuf2-xlib
BuildRequires: libnl3-devel
BuildRequires: libnl3
BuildRequires: libgudev-devel
BuildRequires: libgudev
BuildRequires: libinput-devel
BuildRequires: libinput
BuildRequires: librsvg2-devel
BuildRequires: librsvg2
BuildRequires: libXcursor-devel
BuildRequires: libddcutil-devel
BuildRequires: pkgconfig(sqlite3)
BuildRequires: golang-github-linuxdeepin-go-x11-client-devel
BuildRequires: golang-github-linuxdeepin-go-dbus-factory-devel
BuildRequires: go-lib-devel
BuildRequires: go-gir-generator
BuildRequires: dde-api-devel
#BuildRequires: gocode
BuildRequires: golang-github-fsnotify-fsnotify-devel
BuildRequires: golang-dbus
BuildRequires: golang-github-rickb777-date-devel
BuildRequires: golang-github-mattn-go-sqlite3-devel
BuildRequires: golang-gopkg-alecthomas-kingpin-devel
BuildRequires: golang-github-disintegration-imaging-devel
BuildRequires: golang-github-fogleman-gg-devel
BuildRequires: golang-github-gosexy-gettext-devel
BuildRequires: golang-github-davecgh-go-spew-devel
BuildRequires: golang-github-axgle-mahonia-devel
BuildRequires: golang-github-cryptix-wav-devel
BuildRequires: golang-github-kelvins-sunrisesunset-devel
BuildRequires: golang-github-lofanmi-pinyin
BuildRequires: golang-github-nfnt-resize-devel
BuildRequires: golang-x-image-devel
BuildRequires: golang-x-text-devel
BuildRequires: golang-github-mozillazg-pinyin
BuildRequires: golang-x-xerrors-devel
BuildRequires: golang-github-msteinert-pam-devel
BuildRequires: golang-github-stretchr-testify-devel
Requires: bluez-libs
Requires: deepin-desktop-base
Requires: deepin-desktop-schemas
Requires: dde-session-ui
Requires: dde-polkit-agent
Requires: rfkill
Requires: gvfs
Requires: iw
Recommends: iso-codes
Recommends: imwheel
Recommends: mobile-broadband-provider-info
Recommends: google-noto-mono-fonts
Recommends: google-noto-sans-fonts
%description
Daemon handling the DDE session settings
%prep
%autosetup -p1
#patch langselector/locale.go < rpm/locale.go.patch
# Fix library exec path
sed -i '/deepin/s|lib|libexec|' Makefile
sed -i '/${DESTDIR}\/usr\/lib\/deepin-daemon\/service-trigger/s|${DESTDIR}/usr/lib/deepin-daemon/service-trigger|${DESTDIR}/usr/libexec/deepin-daemon/service-trigger|g' Makefile
sed -i '/${DESTDIR}${PREFIX}\/lib\/deepin-daemon/s|${DESTDIR}${PREFIX}/lib/deepin-daemon|${DESTDIR}${PREFIX}/usr/libexec/deepin-daemon|g' Makefile
sed -i 's|lib/NetworkManager|libexec|' network/utils_test.go
for file in $(grep "/usr/lib/deepin-daemon" * -nR |awk -F: '{print $1}')
do
sed -i 's|/usr/lib/deepin-daemon|/usr/libexec/deepin-daemon|g' $file
done
# Fix grub.cfg path
sed -i 's|boot/grub|boot/grub2|' grub2/{grub2,grub_params,theme}.go
# Fix activate services failed (Permission denied)
# dbus service
pushd misc/system-services/
sed -i '$aSystemdService=deepin-accounts-daemon.service' com.deepin.system.Power.service \
com.deepin.daemon.{Accounts,Apps,Daemon}.service \
com.deepin.daemon.{Gesture,SwapSchedHelper,Timedated}.service
sed -i '$aSystemdService=dbus-com.deepin.dde.lockservice.service' com.deepin.dde.LockService.service
popd
# systemd service
cat > misc/systemd/services/dbus-com.deepin.dde.lockservice.service <<EOF
[Unit]
Description=Deepin Lock Service
Wants=user.slice dbus.socket
After=user.slice dbus.socket
[Service]
Type=dbus
BusName=com.deepin.dde.LockService
ExecStart=%{_libexecdir}/%{sname}/dde-lockservice
[Install]
WantedBy=graphical.target
EOF
# Replace reference of google-chrome to chromium-browser
sed -i 's/google-chrome/chromium-browser/g' misc/dde-daemon/mime/data.json
%build
BUILDID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
export GO111MODULE=off
export GOPATH=/usr/share/gocode
%make_build GO_BUILD_FLAGS=-trimpath GOBUILD="go build -compiler gc -ldflags \"-B $BUILDID\""
#make GOPATH=/usr/share/gocode
%install
BUILDID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
export GO111MODULE=off
export GOPATH=/usr/share/gocode
%make_install PAM_MODULE_DIR=%{_libdir}/security GOBUILD="go build -compiler gc -ldflags \"-B $BUILDID\""
install -Dm0644 %{SOURCE1} -t %{buildroot}/%{_presetdir}
# fix systemd/logind config
install -d %{buildroot}/usr/lib/systemd/logind.conf.d/
cat > %{buildroot}/usr/lib/systemd/logind.conf.d/10-%{sname}.conf <<EOF
[Login]
HandlePowerKey=ignore
HandleSuspendKey=ignore
EOF
%if 0%{?fedora}
# install default settings
install -Dm644 %{SOURCE1} \
%{buildroot}%{_datadir}/deepin-default-settings/fontconfig.json
%endif
%find_lang %{name}
%post
if [ $1 -ge 1 ]; then
systemd-sysusers %{sname}.conf
%{_sbindir}/alternatives --install %{_bindir}/x-terminal-emulator \
x-terminal-emulator %{_libexecdir}/%{sname}/default-terminal 30
fi
%systemd_post deepin-accounts-daemon.service
%preun
if [ $1 -eq 0 ]; then
%{_sbindir}/alternatives --remove x-terminal-emulator \
%{_libexecdir}/%{sname}/default-terminal
fi
%systemd_preun deepin-accounts-daemon.service
%postun
if [ $1 -eq 0 ]; then
rm -f /var/cache/deepin/mark-setup-network-services
rm -f /var/log/deepin.log
fi
%systemd_postun_with_restart deepin-accounts-daemon.service
%files -f %{name}.lang
%doc README.md
%license LICENSE
%{_sysconfdir}/default/grub.d/10_deepin.cfg
%{_sysconfdir}/grub.d/35_deepin_gfxmode
%{_sysconfdir}/pam.d/deepin-auth-keyboard
%{_libexecdir}/%{sname}/
%{_prefix}/lib/systemd/logind.conf.d/10-%{sname}.conf
%{_datadir}/dbus-1/services/*.service
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/dbus-1/system.d/*.conf
%{_datadir}/icons/hicolor/*/status/*
%{_datadir}/%{name}/
%{_datadir}/dde/
%{_datadir}/polkit-1/actions/*.policy
%{_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
%{_sysconfdir}/acpi/actions/deepin_lid.sh
%{_sysconfdir}/acpi/events/deepin_lid
%{_sysconfdir}/pulse/daemon.conf.d/10-deepin.conf
/lib/udev/rules.d/80-deepin-fprintd.rules
/var/lib/polkit-1/localauthority/10-vendor.d/com.deepin.daemon.Fprintd.pkla
/lib/systemd/system/dbus-com.deepin.dde.lockservice.service
/lib/systemd/system/deepin-accounts-daemon.service
/etc/NetworkManager/conf.d/deepin.dde.daemon.conf
/etc/lightdm/deepin/xsettingsd.conf
/usr/libexec/dde-daemon/keybinding/shortcut-dde-grand-search.sh
/usr/lib/systemd/system-preset/99-deepin-accounts-daemon.preset
%changelog
* Thu Jul 21 2022 liuxingwei liuxingwei@uniontech.com - 5.13.97-2
- rebuild for an8.6
* Thu Nov 11 2021 huzhengming <huzhengming@uniontech.com> - 5.13.97-1
- Update to 5.13.97
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。