diff --git a/dde-daemon.spec b/dde-daemon.spec index ecae27979c2e13686fb55d49ca16fbd956767d24..7d9043dc88f59338d74d93a099e1f697120fbfd6 100644 --- a/dde-daemon.spec +++ b/dde-daemon.spec @@ -12,12 +12,13 @@ Name: dde-daemon Version: 5.13.16.11 -Release: 1 +Release: 2 Summary: Daemon handling the DDE session settings License: GPLv3 URL: http://shuttle.corp.deepin.com/cache/tasks/18802/unstable-amd64/ Source0: %{name}-%{version}.orig.tar.xz Source1: vendor.tar.gz +Source2: %{sname}.sysusers BuildRequires: python3 BuildRequires: golang @@ -123,6 +124,8 @@ BUILDID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" export GOPATH=%{_builddir}/%{name}-%{version}/vendor:$GOPATH %make_install PAM_MODULE_DIR=%{_libdir}/security GOBUILD="go build -compiler gc -ldflags \"-B $BUILDID\"" +install -Dm644 %{SOURCE2} %{buildroot}/usr/lib/sysusers.d/%{sname}.conf + # fix systemd/logind config install -d %{buildroot}/usr/lib/systemd/logind.conf.d/ cat > %{buildroot}/usr/lib/systemd/logind.conf.d/10-%{sname}.conf < - 5.13.16.11-2 +- fix install + * Mon Jul 18 2022 konglidong - 5.13.16.11-1 - Update to 5.13.16.11 diff --git a/deepin-daemon.sysusers b/deepin-daemon.sysusers new file mode 100644 index 0000000000000000000000000000000000000000..a67608714d0b3454fff67c52be121401b53c9f0b --- /dev/null +++ b/deepin-daemon.sysusers @@ -0,0 +1,2 @@ +u deepin-daemon - "Deepin Daemon" +g deepin-daemon -