1 |
matteo |
191611 |
#define git 33b232a |
2 |
matteo |
192068 |
%define git 816c8f1 |
3 |
matteo |
189320 |
|
4 |
|
|
Name: antico |
5 |
|
|
Version: 0.2 |
6 |
matteo |
192068 |
Release: %mkrel -c git 3 |
7 |
matteo |
189320 |
Summary: Antico Desktop/Window Manager |
8 |
|
|
License: GPLv2 |
9 |
matteo |
192068 |
Url: https://github.com/pasmatt/%{name} |
10 |
matteo |
191611 |
Source: pasmatt-%{name}-%{git}.zip |
11 |
|
|
Patch0: %{name}-mageia_icon.patch |
12 |
matteo |
189320 |
Group: Graphical desktop/Other |
13 |
|
|
|
14 |
|
|
BuildRequires: qt4-devel |
15 |
|
|
|
16 |
matteo |
192068 |
Requires: desktop-common-data |
17 |
|
|
Requires: mageia-theme-Default |
18 |
matteo |
189320 |
|
19 |
|
|
%description |
20 |
|
|
Antico is a Qt4/X11 Desktop/Window Manager. |
21 |
|
|
The goal is to create a Window/Desktop manager simple and fast. |
22 |
|
|
All parameters must be configured from few files, |
23 |
|
|
avoiding unnecessary complications, following the K.I.S.S. philosophy. |
24 |
|
|
The whole project is be based only on Qt4 libraries, |
25 |
|
|
without any other external dependencies. |
26 |
|
|
|
27 |
|
|
%prep |
28 |
matteo |
191611 |
%setup -q -n pasmatt-%{name}-%{git} |
29 |
|
|
%apply_patches |
30 |
matteo |
189320 |
|
31 |
|
|
%build |
32 |
|
|
%{qmake_qt4} |
33 |
matteo |
191611 |
%make |
34 |
matteo |
189320 |
|
35 |
|
|
%install |
36 |
matteo |
192068 |
rm -fr %{buildroot} |
37 |
matteo |
189320 |
|
38 |
matteo |
192068 |
install -D -d -m 755 %{buildroot}%{_bindir} |
39 |
|
|
install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} |
40 |
|
|
install -D -d -m 755 %{buildroot}%{_datadir}/%{name} |
41 |
|
|
cp -R theme %{buildroot}%{_datadir}/%{name}/ |
42 |
matteo |
189320 |
# ----------- patch wmsession.d ---------------------------- |
43 |
|
|
%__install -D -d -m 755 %{buildroot}%{_sysconfdir}/X11/wmsession.d |
44 |
|
|
|
45 |
|
|
file=%{name}-kdm.desktop |
46 |
|
|
name="$(sed -n 's,^Name=,,p' "$file")" |
47 |
|
|
comment="$(sed -n 's,^Comment=,,p' "$file")" |
48 |
|
|
tryexec="$(sed -n 's,^TryExec=,,p' "$file")" |
49 |
|
|
exec="$(sed -n 's,^Exec=,,p' "$file")" |
50 |
|
|
[ -n "$name" ] && [ -n "$comment" ] && [ -n "$exec" ] || exit 1 |
51 |
|
|
|
52 |
|
|
# EXEC needs to be absolute for chksession |
53 |
|
|
case $tryexec in |
54 |
|
|
*/*) ;; |
55 |
|
|
*) tryexec=%{_bindir}/$tryexec;; |
56 |
|
|
esac |
57 |
|
|
|
58 |
|
|
outfile=%{buildroot}%{_sysconfdir}/X11/wmsession.d/14$(basename $file .desktop) |
59 |
|
|
|
60 |
|
|
echo "NAME=$name" > $outfile |
61 |
|
|
[ -n "$tryexec" ] && echo "EXEC=$tryexec" >> $outfile |
62 |
|
|
echo "DESC=$comment" >> $outfile |
63 |
|
|
echo "SCRIPT:" >> $outfile |
64 |
|
|
echo "exec %{_bindir}/$exec" >> $outfile |
65 |
|
|
# --------- end patch ------------------------------------------ |
66 |
|
|
|
67 |
matteo |
192068 |
install -D -d -m 755 %{buildroot}%{_datadir}/%{name} |
68 |
|
|
cp -R language %{buildroot}%{_datadir}/%{name}/ |
69 |
matteo |
189320 |
|
70 |
matteo |
192068 |
chmod -R 755 %{buildroot}%{_datadir}/%{name}/theme |
71 |
|
|
chmod -R 755 %{buildroot}%{_datadir}/%{name}/language |
72 |
matteo |
189320 |
|
73 |
|
|
%clean |
74 |
matteo |
192068 |
rm -fr %{buildroot} |
75 |
matteo |
189320 |
|
76 |
|
|
%files |
77 |
|
|
%defattr(-,root,root,-) |
78 |
matteo |
189420 |
%doc CHANGELOG COPYING README |
79 |
matteo |
189320 |
%{_bindir}/antico |
80 |
|
|
%{_sysconfdir}/X11/wmsession.d |
81 |
|
|
%{_datadir}/%{name} |