startdde/startdde.spec

117 lines
3.3 KiB
RPMSpec
Raw Normal View History

2021-07-07 15:45:17 +08:00
%global _missing_build_ids_terminate_build 0
##%global debug_package %{nil}
2020-07-14 11:14:34 +08:00
%define specrelease 2%{?dist}
2022-07-29 09:23:36 +08:00
%if 0%{?openeuler}
%define specrelease 2
2022-07-29 09:23:36 +08:00
%endif
2020-07-14 11:14:34 +08:00
Name: startdde
2022-07-29 09:23:36 +08:00
Version: 5.8.11.3
Release: %{specrelease}
2020-07-14 11:14:34 +08:00
Summary: Starter of deepin desktop environment
License: GPLv3
2021-07-07 15:45:17 +08:00
URL: https://github.com/linuxdeepin/startdde
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.gz
2020-07-14 11:14:34 +08:00
2022-07-29 09:23:36 +08:00
BuildRequires: golang
BuildRequires: jq
2020-07-14 11:14:34 +08:00
BuildRequires: glib2-devel
2022-07-29 09:23:36 +08:00
BuildRequires: pkgconfig(x11)
2020-07-14 11:14:34 +08:00
BuildRequires: libXcursor-devel
BuildRequires: libXfixes-devel
BuildRequires: gtk3-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: libgnome-keyring-devel
BuildRequires: alsa-lib-devel
2021-07-07 15:45:17 +08:00
BuildRequires: pkgconfig(gudev-1.0)
2022-07-29 09:23:36 +08:00
BuildRequires: dde-api-devel
BuildRequires: libsecret-devel
2020-07-14 11:14:34 +08:00
2022-07-29 09:23:36 +08:00
Provides: x-session-manager
2020-07-14 11:14:34 +08:00
Requires: dde-daemon
2022-07-29 09:23:36 +08:00
Requires: procps
Requires: deepin-desktop-schemas
Requires: dde-kwin
Requires: libXfixes
Requires: libXcursor
Requires: libsecret
Recommends: dde-qt5integration
2020-07-14 11:14:34 +08:00
%description
2021-07-07 15:45:17 +08:00
%{summary}.
2020-07-14 11:14:34 +08:00
%prep
2021-07-07 15:45:17 +08:00
%autosetup -n %{name}-%{version}
sed -i 's|/usr/lib/deepin-daemon|/usr/libexec/deepin-daemon|g' \
misc/auto_launch/chinese.json misc/auto_launch/default.json
2022-07-29 09:23:36 +08:00
patch Makefile < rpm/Makefile.patch
patch main.go < rpm/main.go.patch
2021-07-07 15:45:17 +08:00
tar -xf %{SOURCE1}
2020-07-14 11:14:34 +08:00
%build
2022-07-29 09:23:36 +08:00
export GOPATH=%{_builddir}/%{name}-%{version}/vendor:$GOPATH
2021-07-07 15:45:17 +08:00
## Scripts in /etc/X11/Xsession.d are not executed after xorg start
sed -i 's|X11/Xsession.d|X11/xinit/xinitrc.d|g' Makefile
%make_build GO_BUILD_FLAGS=-trimpath
2020-07-14 11:14:34 +08:00
%install
%make_install
%post
2021-07-07 15:45:17 +08:00
xsOptsFile=/etc/X11/Xsession.options
update-alternatives --install /usr/bin/x-session-manager x-session-manager \
/usr/bin/startdde 90 || true
if [ -f $xsOptsFile ];then
sed -i '/^use-ssh-agent/d' $xsOptsFile
if ! grep '^no-use-ssh-agent' $xsOptsFile >/dev/null; then
echo no-use-ssh-agent >> $xsOptsFile
fi
fi
2020-07-14 11:14:34 +08:00
%files
%doc README.md
%license LICENSE
2021-07-07 15:45:17 +08:00
%{_sysconfdir}/X11/xinit/xinitrc.d/00deepin-dde-env
%{_sysconfdir}/X11/xinit/xinitrc.d/01deepin-profile
%{_sysconfdir}/profile.d/deepin-xdg-dir.sh
2020-07-14 11:14:34 +08:00
%{_bindir}/%{name}
%{_sbindir}/deepin-fix-xauthority-perm
%{_datadir}/xsessions/deepin.desktop
%{_datadir}/lightdm/lightdm.conf.d/60-deepin.conf
%{_datadir}/%{name}/auto_launch.json
%{_datadir}/%{name}/memchecker.json
2022-07-29 09:23:36 +08:00
%{_datadir}/%{name}/app_startup.conf
%{_datadir}/%{name}/filter.conf
%{_datadir}/glib-2.0/schemas/com.deepin.dde.display.gschema.xml
%{_datadir}/glib-2.0/schemas/com.deepin.dde.startdde.gschema.xml
2020-07-14 11:14:34 +08:00
/usr/lib/deepin-daemon/greeter-display-daemon
%changelog
* Wed Dec 21 2022 liweiganga <liweiganga@uniontech.com> - 5.8.11.3-2
- enable debuginfo for fix strip
2022-07-29 09:23:36 +08:00
* Tue Jul 19 2022 konglidong <konglidong@uniontech.com> - 5.8.11.3-1
- update to 5.8.11.3
* Thu Aug 26 2021 zhangkea <zhangkea@uniontech.com> - 5.6.0.25-2
- Update vendor
2021-07-07 15:45:17 +08:00
* Tue Jul 20 2021 weidong <weidong@uniontech.com> - 5.6.0.25-1
- update to 5.6.0.25-1
2020-09-04 13:57:06 +08:00
* Thu Sep 3 2020 weidong <weidong@uniontech.com> - 5.4.0.1-4
2020-09-03 14:46:57 +08:00
- fix source url in spec
2020-09-02 16:29:40 +08:00
* Wed Sep 2 2020 chenbo pan <panchenbo@uniontech.com> - 5.4.0.1-3
- fix requires golang devel
2020-08-18 18:38:04 +08:00
* Tue Aug 18 2020 chenbo pan <panchenbo@uniontech.com> - 5.4.0.1-2
- remove golang devel
2020-07-30 16:57:05 +08:00
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.4.0.1-1
- Package init