/[packages]/cauldron/antico/current/SPECS/antico.spec
ViewVC logotype

Diff of /cauldron/antico/current/SPECS/antico.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 192119 by matteo, Fri Jan 6 00:11:44 2012 UTC revision 192120 by matteo, Fri Jan 6 00:50:30 2012 UTC
# Line 8  Summary:       Antico Desktop/Window Manager Line 8  Summary:       Antico Desktop/Window Manager
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    
# Line 39  install -D -d -m 755 %{buildroot}%{_bind Line 40  install -D -d -m 755 %{buildroot}%{_bind
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    

Legend:
Removed from v.192119  
changed lines
  Added in v.192120

  ViewVC Help
Powered by ViewVC 1.1.28