URL: http://www.tizen.org
Source0: %{name}-%{version}.tar.gz
Source1: uxlaunch.config
+Source2: xterm.desktop
Requires(preun): systemd
Requires(post): systemd
Requires(postun): systemd
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/%{_lib}/systemd/system/graphical.target.wants
-ln -s ../uxlaunch.service %{buildroot}/%{_lib}/systemd/system/graphical.target.wants/uxlaunch.service
+mkdir -p %{buildroot}/usr/lib/systemd/system/graphical.target.wants
+ln -s ../uxlaunch.service %{buildroot}/usr/lib/systemd/system/graphical.target.wants/uxlaunch.service
%make_install
install -D -p -m 0644 %{SOURCE1} \
%{buildroot}%{_sysconfdir}/sysconfig/uxlaunch
+install -D -p -m 0644 %{SOURCE1} \
+ %{buildroot}%{_datadir}/xsessions/xterm.desktop
+
%preun
if [ $1 == 0 ]; then
systemctl stop uxlaunch.service
%config(noreplace) %{_sysconfdir}/sysconfig/uxlaunch
%doc %{_mandir}/man1/uxlaunch.1*
%{_datadir}/uxlaunch/dmi-dpi
-/lib/systemd/system/uxlaunch.service
-/lib/systemd/system/graphical.target.wants/uxlaunch.service
+%{_datadir}/xsessions/xterm.desktop
+/usr/lib/systemd/system/uxlaunch.service
+/usr/lib/systemd/system/graphical.target.wants/uxlaunch.service
%files devel
%defattr(-,root,root,-)
%{_includedir}/uxlaunch-ipc.h
-%changelog
-