fc49bdf
Name:           startdde
f3401f5
Version:        3.1.33
f946cc4
Release:        1%{?dist}
fc49bdf
Summary:        Starter of deepin desktop environment
fc49bdf
License:        GPLv3
fc49bdf
URL:            https://github.com/linuxdeepin/startdde
fc49bdf
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
fc49bdf
fc49bdf
ExclusiveArch:  %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
f946cc4
BuildRequires:  golang jq
fc49bdf
BuildRequires:  deepin-gir-generator
f3401f5
BuildRequires:  golang-deepin-dbus-factory-devel >= 3.1.16
f3401f5
BuildRequires:  golang(pkg.deepin.io/dde/api/dxinput) >= 3.1.26
f3401f5
BuildRequires:  golang(pkg.deepin.io/lib) >= 1.2.11
f946cc4
BuildRequires:  golang(github.com/linuxdeepin/go-dbus-factory)
f3401f5
BuildRequires:  golang(github.com/linuxdeepin/go-x11-client)
abb2a76
BuildRequires:  golang(github.com/cryptix/wav)
fc49bdf
BuildRequires:  golang(github.com/BurntSushi/xgb)
fc49bdf
BuildRequires:  golang(github.com/BurntSushi/xgbutil)
abb2a76
BuildRequires:  pkgconfig(alsa)
fc49bdf
BuildRequires:  pkgconfig(libcanberra)
88fd550
BuildRequires:  pkgconfig(libpulse)
76bb664
BuildRequires:  pkgconfig(gobject-2.0)
76bb664
BuildRequires:  pkgconfig(glib-2.0)
76bb664
BuildRequires:  pkgconfig(gdk-3.0)
abb2a76
BuildRequires:  pkgconfig(gdk-pixbuf-xlib-2.0)
f946cc4
BuildRequires:  pkgconfig(gnome-keyring-1)
76bb664
BuildRequires:  pkgconfig(x11)
76bb664
BuildRequires:  pkgconfig(xi)
fc49bdf
BuildRequires:  pkgconfig(systemd)
fc49bdf
%{?systemd_requires}
fc49bdf
Requires:       deepin-daemon
76bb664
Requires:       deepin-wm
76bb664
Requires:       deepin-metacity
f3401f5
Requires:       libcgroup-tools
fc49bdf
fc49bdf
%description
fc49bdf
Startdde is used for launching DDE components and invoking user's
fc49bdf
custom applications which compliant with xdg autostart specification.
fc49bdf
fc49bdf
%prep
fc49bdf
%setup -q
fc49bdf
fc49bdf
sed -i '/polkit-1/s|lib|libexec|' watchdog/dde_polkit_agent.go
f3401f5
sed -i '/deepin-daemon/s|lib|libexec|' utils.go session.go misc/auto_launch/*.json
fc49bdf
fc49bdf
%build
fc49bdf
export GOPATH="%{gopath}"
abb2a76
BUILD_ID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
abb2a76
%make_build GOBUILD="go build -compiler gc -ldflags \"${LDFLAGS} -B $BUILD_ID\" -a -v -x"
fc49bdf
fc49bdf
%install
fc49bdf
%make_install
fc49bdf
fc49bdf
%post
fc49bdf
%systemd_post dde-readahead.service
fc49bdf
fc49bdf
%preun
fc49bdf
%systemd_preun dde-readahead.service
fc49bdf
fc49bdf
%postun
fc49bdf
%systemd_postun_with_restart dde-readahead.service
fc49bdf
fc49bdf
%files
fc49bdf
%doc README.md
fc49bdf
%license LICENSE
fc49bdf
%{_bindir}/%{name}
f946cc4
%{_sbindir}/deepin-session
f946cc4
%{_sbindir}/deepin-fix-xauthority-perm
fc49bdf
%{_datadir}/xsessions/deepin.desktop
f946cc4
%{_datadir}/lightdm/lightdm.conf.d/60-deepin.conf
f946cc4
%{_datadir}/%{name}/auto_launch.json
f946cc4
%{_datadir}/%{name}/memchecker.json
fc49bdf
fc49bdf
%changelog
f3401f5
* Fri Jul 20 2018 mosquito <sensor.wen@gmail.com> - 3.1.33-1
f3401f5
- Update to 3.1.33
f946cc4
b68a262
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 3.1.24-3
b68a262
- Rebuild with fixed binutils
b68a262
2615caf
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.24-2
2615caf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2615caf
035e1f7
* Fri Feb 16 2018 mosquito <sensor.wen@gmail.com> - 3.1.24-1
035e1f7
- Update to 3.1.24
035e1f7
9c4da94
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.23-2
9c4da94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9c4da94
abb2a76
* Thu Dec 21 2017 mosquito <sensor.wen@gmail.com> - 3.1.23-1
abb2a76
- Update to 3.1.23
abb2a76
88fd550
* Sat Dec  2 2017 mosquito <sensor.wen@gmail.com> - 3.1.22-1
88fd550
- Update to 3.1.22
88fd550
88fd550
* Fri Oct 27 2017 mosquito <sensor.wen@gmail.com> - 3.1.17-1
88fd550
- Update to 3.1.17
88fd550
76bb664
* Fri Oct 13 2017 mosquito <sensor.wen@gmail.com> - 3.1.16-1
76bb664
- Update to 3.1.16
76bb664
fc49bdf
* Sat Aug 26 2017 mosquito <sensor.wen@gmail.com> - 3.1.15-1
fc49bdf
- Update to 3.1.15
fc49bdf
fc49bdf
* Tue Aug  1 2017 mosquito <sensor.wen@gmail.com> - 3.1.14-1
fc49bdf
- Update to 3.1.14
fc49bdf
fc49bdf
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 3.1.13-1.git08de5b9
fc49bdf
- Update to 3.1.13
fc49bdf
fc49bdf
* Fri May 19 2017 mosquito <sensor.wen@gmail.com> - 3.1.8-1.gita9130d0
fc49bdf
- Update to 3.1.8
fc49bdf
fc49bdf
* Sun Feb 26 2017 mosquito <sensor.wen@gmail.com> - 3.1.2-1.gitd7c1216
fc49bdf
- Update to 3.1.2
fc49bdf
fc49bdf
* Tue Jan 17 2017 mosquito <sensor.wen@gmail.com> - 3.0.14.1-1.gitd3ba123
fc49bdf
- Update to 3.0.14.1
fc49bdf
fc49bdf
* Wed Dec 28 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.13-2
fc49bdf
- Updated GO dependencies
fc49bdf
- Fixed wrong system path for dde-readahead
fc49bdf
fc49bdf
* Sun Dec 18 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.13-1
fc49bdf
- Update to package 3.0.13
fc49bdf
fc49bdf
* Sat Oct 01 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.12-1
fc49bdf
- Update to package 3.0.12
fc49bdf
fc49bdf
* Sat Oct 01 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.11-1
fc49bdf
- Initial package build