|
|
b107101 |
%global repo dde-session-ui
|
|
|
b107101 |
|
|
|
b107101 |
Name: deepin-session-ui
|
|
|
b107101 |
Version: 4.0.13.1
|
|
|
b107101 |
Release: 1%{?dist}
|
|
|
b107101 |
Summary: Deepin desktop-environment - Session UI module
|
|
|
b107101 |
License: GPLv3
|
|
|
b107101 |
URL: https://github.com/linuxdeepin/dde-session-ui
|
|
|
b107101 |
Source0: %{url}/archive/%{version}/%{repo}-%{version}.tar.gz
|
|
|
b107101 |
|
|
|
b107101 |
BuildRequires: deepin-gettext-tools
|
|
|
b107101 |
BuildRequires: pkgconfig(dtkwidget) = 2.0
|
|
|
b107101 |
BuildRequires: pkgconfig(dframeworkdbus)
|
|
|
b107101 |
BuildRequires: pkgconfig(gsettings-qt)
|
|
|
b107101 |
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
b107101 |
BuildRequires: pkgconfig(liblightdm-qt5-3)
|
|
|
b107101 |
BuildRequires: pkgconfig(libsystemd)
|
|
|
b107101 |
BuildRequires: pkgconfig(Qt5Core)
|
|
|
b107101 |
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
b107101 |
BuildRequires: pkgconfig(Qt5X11Extras)
|
|
|
b107101 |
BuildRequires: pkgconfig(Qt5Multimedia)
|
|
|
b107101 |
BuildRequires: pkgconfig(xtst)
|
|
|
b107101 |
BuildRequires: pam-devel
|
|
|
b107101 |
BuildRequires: qt5-linguist
|
|
|
b107101 |
Requires: deepin-control-center
|
|
|
b107101 |
Requires: deepin-daemon
|
|
|
b107101 |
Requires: startdde
|
|
|
b107101 |
Requires: lightdm
|
|
|
b107101 |
Provides: lightdm-deepin-greeter%{?_isa} = %{version}-%{release}
|
|
|
b107101 |
|
|
|
b107101 |
%description
|
|
|
b107101 |
This project include those sub-project:
|
|
|
b107101 |
|
|
|
b107101 |
- dde-shutdown: User interface of shutdown.
|
|
|
b107101 |
- dde-lock: User interface of lock screen.
|
|
|
b107101 |
- dde-lockservice: The back-end service of locking screen.
|
|
|
b107101 |
- lightdm-deepin-greeter: The user interface when you login in.
|
|
|
b107101 |
- dde-switchtogreeter: The tools to switch the user to login in.
|
|
|
b107101 |
- dde-lowpower: The user interface of reminding low power.
|
|
|
b107101 |
- dde-osd: User interface of on-screen display.
|
|
|
b107101 |
- dde-hotzone: User interface of setting hot zone.
|
|
|
b107101 |
|
|
|
b107101 |
%prep
|
|
|
b107101 |
%setup -q -n %{repo}-%{version}
|
|
|
b107101 |
sed -i 's|lrelease|lrelease-qt5|g' translate_generation.sh
|
|
|
b107101 |
|
|
|
b107101 |
sed -i 's|lib|libexec|' \
|
|
|
b107101 |
misc/applications/deepin-toggle-desktop.desktop* \
|
|
|
b107101 |
dde-osd/dde-osd_autostart.desktop \
|
|
|
b107101 |
dde-osd/com.deepin.dde.osd.service \
|
|
|
b107101 |
dde-welcome/com.deepin.dde.welcome.service \
|
|
|
b107101 |
dde-offline-upgrader/dde-offline-upgrader.pro \
|
|
|
b107101 |
dde-suspend-dialog/dde-suspend-dialog.pro \
|
|
|
b107101 |
dde-warning-dialog/dde-warning-dialog.pro \
|
|
|
b107101 |
dde-lowpower/dde-lowpower.pro \
|
|
|
b107101 |
dde-welcome/dde-welcome.pro \
|
|
|
b107101 |
dde-osd/dde-osd.pro
|
|
|
b107101 |
|
|
|
b107101 |
%build
|
|
|
b107101 |
%qmake_qt5 PREFIX=%{_prefix}
|
|
|
b107101 |
%make_build
|
|
|
b107101 |
|
|
|
b107101 |
%install
|
|
|
b107101 |
%make_install INSTALL_ROOT=%{buildroot}
|
|
|
b107101 |
|
|
|
b107101 |
# lightdm.conf
|
|
|
b107101 |
#https://wiki.archlinux.org/index.php/Deepin_Desktop_Environment#Via_a_Display_Manager
|
|
|
b107101 |
install -d %{buildroot}%{_sysconfdir}/lightdm/lightdm.conf.d
|
|
|
b107101 |
cat > %{buildroot}%{_sysconfdir}/lightdm/lightdm.conf.d/deepin.conf <
|
|
|
b107101 |
[Seat:*]
|
|
|
b107101 |
greeter-session=lightdm-deepin-greeter
|
|
|
b107101 |
EOF
|
|
|
b107101 |
|
|
|
b107101 |
%post
|
|
|
b107101 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
|
|
|
b107101 |
/usr/bin/update-desktop-database -q ||:
|
|
|
b107101 |
|
|
|
b107101 |
%postun
|
|
|
b107101 |
if [ $1 -eq 0 ]; then
|
|
|
b107101 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
|
|
|
b107101 |
/usr/bin/gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||:
|
|
|
b107101 |
fi
|
|
|
b107101 |
/usr/bin/update-desktop-database -q ||:
|
|
|
b107101 |
|
|
|
b107101 |
%posttrans
|
|
|
b107101 |
/usr/bin/gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||:
|
|
|
b107101 |
|
|
|
b107101 |
%files
|
|
|
b107101 |
%doc README.md
|
|
|
b107101 |
%license LICENSE
|
|
|
b107101 |
%config(noreplace) %{_sysconfdir}/lightdm/lightdm.conf.d/deepin.conf
|
|
|
b107101 |
%{_sysconfdir}/xdg/autostart/dde-osd_autostart.desktop
|
|
|
b107101 |
%{_bindir}/dde-*
|
|
|
b107101 |
%{_bindir}/lightdm-deepin-greeter
|
|
|
b107101 |
%{_libexecdir}/deepin-daemon/dde-*
|
|
|
b107101 |
%{_datadir}/%{repo}/
|
|
|
b107101 |
%{_datadir}/applications/*.desktop
|
|
|
b107101 |
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
b107101 |
%{_datadir}/dbus-1/services/*.service
|
|
|
b107101 |
%{_datadir}/xgreeters/lightdm-deepin-greeter.desktop
|
|
|
b107101 |
|
|
|
b107101 |
%changelog
|
|
|
b107101 |
* Sun Aug 20 2017 mosquito <sensor.wen@gmail.com> - 4.0.13.1-1
|
|
|
b107101 |
- Update to 4.0.13.1
|
|
|
b107101 |
|
|
|
b107101 |
* Sun Aug 6 2017 mosquito <sensor.wen@gmail.com> - 4.0.13-1
|
|
|
b107101 |
- Rebuild
|
|
|
b107101 |
|
|
|
b107101 |
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 4.0.13-1.git4cadab1
|
|
|
b107101 |
- Update to 4.0.13
|
|
|
b107101 |
|
|
|
b107101 |
* Fri May 19 2017 mosquito <sensor.wen@gmail.com> - 4.0.6-1.git1511ccf
|
|
|
b107101 |
- Update to 4.0.6
|
|
|
b107101 |
|
|
|
b107101 |
* Sun Feb 26 2017 mosquito <sensor.wen@gmail.com> - 3.0.27-1.git6a09cb4
|
|
|
b107101 |
- Update to 3.0.27
|
|
|
b107101 |
|
|
|
b107101 |
* Tue Jan 17 2017 mosquito <sensor.wen@gmail.com> - 3.0.23-1.git9db2f1d
|
|
|
b107101 |
- Update to 3.0.23
|
|
|
b107101 |
|
|
|
b107101 |
* Sun Dec 11 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.22-1
|
|
|
b107101 |
- Initial package build
|