8 |
License: GPLv2 |
License: GPLv2 |
9 |
Url: https://github.com/pasmatt/%{name} |
Url: https://github.com/pasmatt/%{name} |
10 |
Source: pasmatt-%{name}-%{git}.zip |
Source: pasmatt-%{name}-%{git}.zip |
11 |
|
Source1: 14%{name} |
12 |
Patch0: %{name}-mageia_icon.patch |
Patch0: %{name}-mageia_icon.patch |
13 |
Group: Graphical desktop/Other |
Group: Graphical desktop/Other |
14 |
|
|
40 |
install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} |
install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} |
41 |
install -D -d -m 755 %{buildroot}%{_datadir}/%{name} |
install -D -d -m 755 %{buildroot}%{_datadir}/%{name} |
42 |
cp -R theme %{buildroot}%{_datadir}/%{name}/ |
cp -R theme %{buildroot}%{_datadir}/%{name}/ |
|
# ----------- patch wmsession.d ---------------------------- |
|
|
%__install -D -d -m 755 %{buildroot}%{_sysconfdir}/X11/wmsession.d |
|
|
|
|
|
file=%{name}-kdm.desktop |
|
|
name="$(sed -n 's,^Name=,,p' "$file")" |
|
|
comment="$(sed -n 's,^Comment=,,p' "$file")" |
|
|
tryexec="$(sed -n 's,^TryExec=,,p' "$file")" |
|
|
exec="$(sed -n 's,^Exec=,,p' "$file")" |
|
|
[ -n "$name" ] && [ -n "$comment" ] && [ -n "$exec" ] || exit 1 |
|
|
|
|
|
# EXEC needs to be absolute for chksession |
|
|
case $tryexec in |
|
|
*/*) ;; |
|
|
*) tryexec=%{_bindir}/$tryexec;; |
|
|
esac |
|
|
|
|
|
outfile=%{buildroot}%{_sysconfdir}/X11/wmsession.d/14$(basename $file .desktop) |
|
|
|
|
|
echo "NAME=$name" > $outfile |
|
|
[ -n "$tryexec" ] && echo "EXEC=$tryexec" >> $outfile |
|
|
echo "DESC=$comment" >> $outfile |
|
|
echo "SCRIPT:" >> $outfile |
|
|
echo "exec %{_bindir}/$exec" >> $outfile |
|
|
# --------- end patch ------------------------------------------ |
|
43 |
|
|
44 |
|
install -D -d -m 755 %{buildroot}%{_sysconfdir}/X11/wmsession.d |
45 |
|
install -D -m 755 %SOURCE1 %{buildroot}%{_sysconfdir}/X11/wmsession.d/ |
46 |
install -D -d -m 755 %{buildroot}%{_datadir}/%{name} |
install -D -d -m 755 %{buildroot}%{_datadir}/%{name} |
47 |
cp -R language %{buildroot}%{_datadir}/%{name}/ |
cp -R language %{buildroot}%{_datadir}/%{name}/ |
48 |
|
|