/[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 192575 by matteo, Fri Jan 6 00:50:30 2012 UTC revision 192576 by matteo, Fri Jan 6 15:09:11 2012 UTC
# Line 1  Line 1 
1  #define git 33b232a  %define git b2f0ba3
 %define git 816c8f1  
2    
3  Name:           antico  Name:           antico
4  Version:        0.2  Version:        0.2
# Line 10  Url:           https://github.com/pasmatt/%{name} Line 9  Url:           https://github.com/pasmatt/%{name}
9  Source:         pasmatt-%{name}-%{git}.zip  Source:         pasmatt-%{name}-%{git}.zip
10  Source1:        14%{name}  Source1:        14%{name}
11  Patch0:         %{name}-mageia_icon.patch  Patch0:         %{name}-mageia_icon.patch
12    Patch1:         %{name}-%{name}cpp-mageia_theme.patch
13  Group:          Graphical desktop/Other  Group:          Graphical desktop/Other
14    
15  BuildRequires:  qt4-devel  BuildRequires:  qt4-devel
# Line 39  rm -fr %{buildroot} Line 39  rm -fr %{buildroot}
39  install -D -d -m 755 %{buildroot}%{_bindir}  install -D -d -m 755 %{buildroot}%{_bindir}
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}/  install -D -d -m 755 %{buildroot}%{_sysconfdir}/skel/.%{name}
43    cp -R theme %{buildroot}%{_sysconfdir}/skel/.%{name}/
44    cp -R language %{buildroot}%{_datadir}/%{name}/
45    
46  install -D -d -m 755 %{buildroot}%{_sysconfdir}/X11/wmsession.d  install -D -d -m 755 %{buildroot}%{_sysconfdir}/X11/wmsession.d
47  install -D -m 755 %SOURCE1 %{buildroot}%{_sysconfdir}/X11/wmsession.d/  install -D -m 755 %SOURCE1 %{buildroot}%{_sysconfdir}/X11/wmsession.d/
 install -D -d -m 755 %{buildroot}%{_datadir}/%{name}  
 cp -R language %{buildroot}%{_datadir}/%{name}/  
48    
49  chmod -R 755 %{buildroot}%{_datadir}/%{name}/theme  chmod -R 755 %{buildroot}%{_sysconfdir}/skel/.%{name}/theme
50  chmod -R 755 %{buildroot}%{_datadir}/%{name}/language  chmod -R 755 %{buildroot}%{_datadir}/%{name}/language
51    
 %clean  
 rm -fr %{buildroot}  
   
52  %files  %files
53  %defattr(-,root,root,-)  %defattr(-,root,root,-)
54  %doc CHANGELOG COPYING README  %doc CHANGELOG COPYING README
55  %{_bindir}/antico  %{_bindir}/antico
56  %{_sysconfdir}/X11/wmsession.d  %{_sysconfdir}/X11/wmsession.d
57    %{_sysconfdir}/skel/.%{name}
58  %{_datadir}/%{name}  %{_datadir}/%{name}
59    
60    %post
61    # copy theme directory into already existing user home directories
62    for i in `cat /etc/passwd|grep "/home"|awk -F':' '{print $1":"$6}'`;
63    do
64            homepath=`echo "${i}" | awk -F':' '{print $2}'`
65            cp -R %{_sysconfdir}/skel/.antico "${homepath}/"
66            user=`echo "${i}" | awk -F':' '{print $1}'`
67            chown -R $user.$user "${homepath}/.antico"
68    done

Legend:
Removed from v.192575  
changed lines
  Added in v.192576

  ViewVC Help
Powered by ViewVC 1.1.28