1 |
%define git 33b232a |
#define git 33b232a |
2 |
|
%define git 74aa84c |
3 |
|
|
4 |
Name: antico |
Name: antico |
5 |
Version: 0.2 |
Version: 0.2 |
6 |
Release: %mkrel -c git 1 |
Release: %mkrel -c git 2 |
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: http://www.giuseppecigala.it/Antico.html |
10 |
#Source0: https://github.com/antico/antico/tarball/master |
#Source0: https://github.com/antico/antico/tarball/master |
11 |
Source: %{name}-%{name}-%{git}.tar.gz |
Source: pasmatt-%{name}-%{git}.zip |
12 |
|
#Source: %{name}-%{name}-%{git}.tar.gz |
13 |
|
Patch0: %{name}-mageia_icon.patch |
14 |
Group: Graphical desktop/Other |
Group: Graphical desktop/Other |
15 |
|
|
16 |
BuildRequires: qt4-devel |
BuildRequires: qt4-devel |
26 |
without any other external dependencies. |
without any other external dependencies. |
27 |
|
|
28 |
%prep |
%prep |
29 |
%setup -q -n %{name}-%{name}-%{git} |
%setup -q -n pasmatt-%{name}-%{git} |
30 |
|
%apply_patches |
31 |
|
|
32 |
# patch to make antico more modular |
# patch to make antico more modular |
33 |
find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/antico.cfg"|QDir::homePath() + "/.antico.cfg"|g' {} \; |
# fixed upstream (pasmatt fork on github) |
34 |
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:]]"/antico.cfg"|QDir::homePath() + "/.antico.cfg"|g' {} \; |
35 |
find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/language|QDir::rootPath() + "usr/share/antico/language|g' {} \; |
#find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/theme|QDir::rootPath() + "usr/share/antico/theme|g' {} \; |
36 |
|
#find . -name "*.cpp" -type f -exec sed -i -e 's|QCoreApplication::applicationDirPath()[[:space:]]+[[:space:]]"/language|QDir::rootPath() + "usr/share/antico/language|g' {} \; |
37 |
|
|
38 |
%build |
%build |
39 |
%{qmake_qt4} |
%{qmake_qt4} |
40 |
# workaround to allow compilation on mga2 (why?) |
# FIXED - workaround to allow compilation on mga2 (why?) |
41 |
%make SUBLIBS="-lXext -lX11" |
#%make SUBLIBS="-lXext -lX11" |
42 |
|
%make |
43 |
|
|
44 |
%install |
%install |
45 |
%__rm -fr %{buildroot} |
%__rm -fr %{buildroot} |