!7 Update startdde to 5.6.0.25
From: @weidongkl Reviewed-by: @yeqinglong01 Signed-off-by: @yeqinglong01
This commit is contained in:
commit
8bb2a732d7
BIN
startdde-5.6.0.25.tar.xz
Normal file
BIN
startdde-5.6.0.25.tar.xz
Normal file
Binary file not shown.
@ -1,16 +1,14 @@
|
|||||||
%global with_debug 1
|
%global _missing_build_ids_terminate_build 0
|
||||||
%global _unpackaged_files_terminate_build 0
|
|
||||||
%if 0%{?with_debug}
|
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: startdde
|
Name: startdde
|
||||||
Version: 5.4.0.1
|
Version: 5.6.0.25
|
||||||
Release: 4
|
Release: 1
|
||||||
Summary: Starter of deepin desktop environment
|
Summary: Starter of deepin desktop environment
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://shuttle.deepin.com/cache/repos/eagle/release-candidate/RERFNS4wLjAuMzUyOA/pool/main/s/startdde/
|
URL: https://github.com/linuxdeepin/startdde
|
||||||
Source0: https://shuttle.deepin.com/cache/repos/eagle/release-candidate/RERFNS4wLjAuMzUyOA/pool/main/s/${name}/%{name}_%{version}.orig.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
Source1: vendor.tar.gz
|
||||||
|
|
||||||
BuildRequires: golang jq
|
BuildRequires: golang jq
|
||||||
BuildRequires: dde-api
|
BuildRequires: dde-api
|
||||||
@ -26,43 +24,49 @@ BuildRequires: pulseaudio-libs-devel
|
|||||||
BuildRequires: libgnome-keyring-devel
|
BuildRequires: libgnome-keyring-devel
|
||||||
BuildRequires: alsa-lib-devel
|
BuildRequires: alsa-lib-devel
|
||||||
BuildRequires: alsa-lib
|
BuildRequires: alsa-lib
|
||||||
|
BuildRequires: pkgconfig(gudev-1.0)
|
||||||
|
|
||||||
%{?systemd_requires}
|
|
||||||
Requires: dde-daemon
|
Requires: dde-daemon
|
||||||
Requires: libcgroup-tools
|
Requires: libcgroup-tools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Startdde is used for launching DDE components and invoking user's
|
%{summary}.
|
||||||
custom applications which compliant with xdg autostart specification.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -n %{name}-%{version}
|
||||||
|
sed -i 's|/usr/lib/deepin-daemon|/usr/libexec/deepin-daemon|g' \
|
||||||
sed -i '/polkit/s|lib|libexec|' watchdog/dde_polkit_agent.go
|
misc/auto_launch/chinese.json misc/auto_launch/default.json
|
||||||
sed -i '/deepin-daemon/s|lib|libexec|' utils.go session.go misc/auto_launch/*.json
|
tar -xf %{SOURCE1}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
|
||||||
|
## Scripts in /etc/X11/Xsession.d are not executed after xorg start
|
||||||
|
sed -i 's|X11/Xsession.d|X11/xinit/xinitrc.d|g' Makefile
|
||||||
export GOPATH=%{_builddir}/%{name}-%{version}/vendor
|
export GOPATH=%{_builddir}/%{name}-%{version}/vendor
|
||||||
BUILD_ID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
|
|
||||||
%make_build GOBUILD="go build -mod=vendor -compiler gc -ldflags \"${LDFLAGS} -B $BUILD_ID\" -a -v -x"
|
%make_build GO_BUILD_FLAGS=-trimpath
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post dde-readahead.service
|
xsOptsFile=/etc/X11/Xsession.options
|
||||||
|
update-alternatives --install /usr/bin/x-session-manager x-session-manager \
|
||||||
%preun
|
/usr/bin/startdde 90 || true
|
||||||
%systemd_preun dde-readahead.service
|
if [ -f $xsOptsFile ];then
|
||||||
|
sed -i '/^use-ssh-agent/d' $xsOptsFile
|
||||||
%postun
|
if ! grep '^no-use-ssh-agent' $xsOptsFile >/dev/null; then
|
||||||
%systemd_postun_with_restart dde-readahead.service
|
echo no-use-ssh-agent >> $xsOptsFile
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_sysconfdir}/X11/Xsession.d/00deepin-dde-env
|
%{_sysconfdir}/X11/xinit/xinitrc.d/00deepin-dde-env
|
||||||
%{_sysconfdir}/X11/Xsession.d/01deepin-profile
|
%{_sysconfdir}/X11/xinit/xinitrc.d/01deepin-profile
|
||||||
|
%{_sysconfdir}/profile.d/deepin-xdg-dir.sh
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_sbindir}/deepin-fix-xauthority-perm
|
%{_sbindir}/deepin-fix-xauthority-perm
|
||||||
%{_datadir}/xsessions/deepin.desktop
|
%{_datadir}/xsessions/deepin.desktop
|
||||||
@ -72,6 +76,9 @@ BUILD_ID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
|
|||||||
/usr/lib/deepin-daemon/greeter-display-daemon
|
/usr/lib/deepin-daemon/greeter-display-daemon
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 20 2021 weidong <weidong@uniontech.com> - 5.6.0.25-1
|
||||||
|
- update to 5.6.0.25-1
|
||||||
|
|
||||||
* Thu Sep 3 2020 weidong <weidong@uniontech.com> - 5.4.0.1-4
|
* Thu Sep 3 2020 weidong <weidong@uniontech.com> - 5.4.0.1-4
|
||||||
- fix source url in spec
|
- fix source url in spec
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
vendor.tar.gz
Normal file
BIN
vendor.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user