/[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 191611 by matteo, Thu Jan 5 15:10:45 2012 UTC revision 192068 by matteo, Fri Jan 6 00:11:44 2012 UTC
# Line 1  Line 1 
1  #define git 33b232a  #define git 33b232a
2  %define git 74aa84c  %define git 816c8f1
3    
4  Name:           antico  Name:           antico
5  Version:        0.2  Version:        0.2
6  Release:        %mkrel -c git 2  Release:        %mkrel -c git 3
7  Summary:        Antico Desktop/Window Manager  Summary:        Antico Desktop/Window Manager
8  License:        GPLv2  License:        GPLv2
9  Url:            http://www.giuseppecigala.it/Antico.html  Url:            https://github.com/pasmatt/%{name}
 #Source0:       https://github.com/antico/antico/tarball/master  
10  Source:         pasmatt-%{name}-%{git}.zip  Source:         pasmatt-%{name}-%{git}.zip
 #Source:                %{name}-%{name}-%{git}.tar.gz  
11  Patch0:         %{name}-mageia_icon.patch  Patch0:         %{name}-mageia_icon.patch
12  Group:          Graphical desktop/Other  Group:          Graphical desktop/Other
13    
14  BuildRequires:  qt4-devel  BuildRequires:  qt4-devel
15    
16  Requires: desktop-common-data  Requires:       desktop-common-data
17    Requires:       mageia-theme-Default
18    
19  %description  %description
20  Antico is a Qt4/X11 Desktop/Window Manager.  Antico is a Qt4/X11 Desktop/Window Manager.
# Line 29  without any other external dependencies. Line 28  without any other external dependencies.
28  %setup -q -n pasmatt-%{name}-%{git}  %setup -q -n pasmatt-%{name}-%{git}
29  %apply_patches  %apply_patches
30    
 # patch to make antico more modular  
 # fixed upstream (pasmatt fork on github)  
 #find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/antico.cfg"|QDir::homePath() + "/.antico.cfg"|g' {} \;  
 #find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/theme|QDir::rootPath() + "usr/share/antico/theme|g' {} \;  
 #find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/language|QDir::rootPath() + "usr/share/antico/language|g' {} \;  
   
31  %build  %build
32  %{qmake_qt4}  %{qmake_qt4}
 # FIXED - workaround to allow compilation on mga2 (why?)  
 #%make SUBLIBS="-lXext -lX11"  
33  %make  %make
34    
35  %install  %install
36  %__rm -fr %{buildroot}  rm -fr %{buildroot}
37    
38  %__install -D -d -m 755 %{buildroot}%{_bindir}  install -D -d -m 755 %{buildroot}%{_bindir}
39  %__install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name}  install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name}
40  %__install -D -d -m 755 %{buildroot}%{_datadir}/%{name}  install -D -d -m 755 %{buildroot}%{_datadir}/%{name}
41  %__cp -R theme %{buildroot}%{_datadir}/%{name}/  cp -R theme %{buildroot}%{_datadir}/%{name}/
42  # ----------- patch wmsession.d ----------------------------  # ----------- patch wmsession.d ----------------------------
43  %__install -D -d -m 755 %{buildroot}%{_sysconfdir}/X11/wmsession.d  %__install -D -d -m 755 %{buildroot}%{_sysconfdir}/X11/wmsession.d
44    
# Line 73  echo "SCRIPT:" >> $outfile Line 64  echo "SCRIPT:" >> $outfile
64  echo "exec %{_bindir}/$exec" >> $outfile  echo "exec %{_bindir}/$exec" >> $outfile
65  # --------- end patch ------------------------------------------  # --------- end patch ------------------------------------------
66    
67  %__install -D -d -m 755 %{buildroot}%{_datadir}/%{name}  install -D -d -m 755 %{buildroot}%{_datadir}/%{name}
68  %__cp -R language %{buildroot}%{_datadir}/%{name}/  cp -R language %{buildroot}%{_datadir}/%{name}/
69    
70  %__chmod -R 755 %{buildroot}%{_datadir}/%{name}/theme  chmod -R 755 %{buildroot}%{_datadir}/%{name}/theme
71  %__chmod -R 755 %{buildroot}%{_datadir}/%{name}/language  chmod -R 755 %{buildroot}%{_datadir}/%{name}/language
72    
73  %clean  %clean
74  %__rm -fr %{buildroot}  rm -fr %{buildroot}
75    
76  %files  %files
77  %defattr(-,root,root,-)  %defattr(-,root,root,-)

Legend:
Removed from v.191611  
changed lines
  Added in v.192068

  ViewVC Help
Powered by ViewVC 1.1.30