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. |
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 |
|
|
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,-) |