]>
Commit | Line | Data |
---|---|---|
d5a22042 | 1 | # |
2 | # TODO: | |
3 | # - some smart way to create symlink when one theme is uninstalled | |
4 | # but other still exists | |
5 | ||
6 | %define _src_name enlightenment | |
7 | ||
8 | Summary: Default Enlightenment themes | |
9 | Name: enlightenment-theme-default | |
10 | Version: 0.16.999.029 | |
11 | Release: 1 | |
12 | License: BSD | |
13 | Group: Themes | |
14 | Source0: http://enlightenment.freedesktop.org/files/%{_src_name}-%{version}.tar.gz | |
15 | # Source0-md5: 96699aea25f0ad0bfc4ad1123488e244 | |
16 | Source1: e17_icon_background.png | |
17 | # Source1-md5: 5087c23fc21bc27dc8561d2735a1be64 | |
18 | URL: http://enlightenment.org/ | |
19 | BuildRequires: edje | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %undefine __cxx | |
24 | ||
25 | %description | |
26 | Enlightenment default theme. | |
27 | ||
28 | %package slow_pc | |
29 | Summary: Default Enlightenment theme with small textures | |
30 | Group: Themes | |
31 | Requires: enlightenmentDR17 | |
32 | Provides: enlightenment-theme-default | |
33 | ||
34 | %description slow_pc | |
35 | Default Enlightenment theme with small textures. | |
36 | ||
37 | %package fast_pc | |
38 | Summary: Default Enlightenment theme with large textures | |
39 | Group: Themes | |
40 | Requires: enlightenmentDR17 | |
41 | Provides: enlightenment-theme-default | |
42 | ||
43 | %description fast_pc | |
44 | Default Enlightenment theme with large textures. | |
45 | ||
46 | %package -n enlightenment-init-default-slow_pc | |
47 | Summary: Default Enlightenment init theme for slow computers | |
48 | Group: Themes | |
49 | Requires: enlightenmentDR17 | |
50 | Provides: enlightenment-init-default | |
51 | ||
52 | %description -n enlightenment-init-default-slow_pc | |
53 | Default Enlightenment init theme with small textures and half number of frames. | |
54 | ||
55 | %package -n enlightenment-init-default-medium_pc | |
56 | Summary: Default Enlightenment init theme for medium speed computers | |
57 | Group: Themes | |
58 | Requires: enlightenmentDR17 | |
59 | Provides: enlightenment-init-default | |
60 | ||
61 | %description -n enlightenment-init-default-medium_pc | |
62 | Default Enlightenment init theme with large textures and half number of frames. | |
63 | ||
64 | %package -n enlightenment-init-default-fast_pc | |
65 | Summary: Default Enlightenment init theme with large textures and all frames | |
66 | Group: Themes | |
67 | Requires: enlightenmentDR17 | |
68 | Provides: enlightenment-init-default | |
69 | ||
70 | %description -n enlightenment-init-default-fast_pc | |
71 | Default Enlightenment init theme with large textures and all frames. | |
72 | ||
73 | %prep | |
74 | %setup -q -n %{_src_name}-%{version} | |
75 | install %{SOURCE1} data/themes/images/e17_icon_background.png | |
76 | for DIR in init themes; do | |
77 | sed -e 's/@EDJE_DEF@/-DLOWRES_PDA=1 -DMEDIUMRES_PDA=2 -DHIRES_PDA=3 -DSLOW_PC=4 -DMEDIUM_PC=5 -DFAST_PC=6 -DE17_PROFILE=$(PROFILE)/' \ | |
78 | -e 's#@edje_cc@#%{_bindir}/edje_cc#' \ | |
79 | -e 's#$(top_srcdir)/data/#../#' \ | |
80 | -e 's#$(top_builddir)/data/#../#' \ | |
81 | data/$DIR/Makefile.am > data/$DIR/Makefile | |
82 | done | |
83 | ||
84 | %build | |
85 | %{__make} -C data/init init.edj PROFILE=SLOW_PC | |
86 | mv data/init/{init.edj,init-slow_pc.edj} | |
87 | %{__make} -C data/init init.edj PROFILE=MEDIUM_PC | |
88 | mv data/init/{init.edj,init-medium_pc.edj} | |
89 | %{__make} -C data/init init.edj PROFILE=FAST_PC | |
90 | mv data/init/{init.edj,init-fast_pc.edj} | |
91 | ||
92 | %{__make} -C data/themes default.edj PROFILE=SLOW_PC | |
93 | mv data/themes/{default.edj,default-slow_pc.edj} | |
94 | %{__make} -C data/themes default.edj PROFILE=FAST_PC | |
95 | mv data/themes/{default.edj,default-fast_pc.edj} | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | install -d $RPM_BUILD_ROOT%{_datadir}/enlightenmentDR17/data/{init,themes} | |
100 | ||
101 | install data/init/{init-slow_pc.edj,init-medium_pc.edj,init-fast_pc.edj} \ | |
102 | $RPM_BUILD_ROOT%{_datadir}/enlightenmentDR17/data/init/ | |
103 | touch $RPM_BUILD_ROOT%{_datadir}/enlightenmentDR17/data/init/init.edj | |
104 | ||
105 | install data/themes/{default-slow_pc.edj,default-fast_pc.edj} \ | |
106 | $RPM_BUILD_ROOT%{_datadir}/enlightenmentDR17/data/themes/ | |
107 | touch $RPM_BUILD_ROOT%{_datadir}/enlightenmentDR17/data/themes/default.edj | |
108 | ||
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post slow_pc | |
113 | [ -e %{_datadir}/enlightenmentDR17/data/themes/default.edj ] || \ | |
114 | ln -s %{_datadir}/enlightenmentDR17/data/themes/{default-slow_pc.edj,default.edj} | |
115 | ||
116 | %post fast_pc | |
117 | [ -e %{_datadir}/enlightenmentDR17/data/themes/default.edj ] || \ | |
118 | ln -s %{_datadir}/enlightenmentDR17/data/themes/{default-fast_pc.edj,default.edj} | |
119 | ||
120 | %post -n enlightenment-init-default-slow_pc | |
121 | [ -e %{_datadir}/enlightenmentDR17/data/init/default.edj ] || \ | |
122 | ln -s %{_datadir}/enlightenmentDR17/data/init/{init-slow_pc.edj,init.edj} | |
123 | ||
124 | %post -n enlightenment-init-default-medium_pc | |
125 | [ -e %{_datadir}/enlightenmentDR17/data/init/default.edj ] || \ | |
126 | ln -s %{_datadir}/enlightenmentDR17/data/init/{init-medium_pc.edj,init.edj} | |
127 | ||
128 | %post -n enlightenment-init-default-fast_pc | |
129 | [ -e %{_datadir}/enlightenmentDR17/data/init/default.edj ] || \ | |
130 | ln -s %{_datadir}/enlightenmentDR17/data/init/{init-fast_pc.edj,init.edj} | |
131 | ||
132 | %files slow_pc | |
133 | %defattr(644,root,root,755) | |
134 | %{_datadir}/enlightenmentDR17/data/themes/default-slow_pc.edj | |
135 | %ghost %{_datadir}/enlightenmentDR17/data/themes/default.edj | |
136 | ||
137 | %files fast_pc | |
138 | %defattr(644,root,root,755) | |
139 | %{_datadir}/enlightenmentDR17/data/themes/default-fast_pc.edj | |
140 | %ghost %{_datadir}/enlightenmentDR17/data/themes/default.edj | |
141 | ||
142 | %files -n enlightenment-init-default-slow_pc | |
143 | %defattr(644,root,root,755) | |
144 | %{_datadir}/enlightenmentDR17/data/init/init-slow_pc.edj | |
145 | %ghost %{_datadir}/enlightenmentDR17/data/init/init.edj | |
146 | ||
147 | %files -n enlightenment-init-default-medium_pc | |
148 | %defattr(644,root,root,755) | |
149 | %{_datadir}/enlightenmentDR17/data/init/init-medium_pc.edj | |
150 | %ghost %{_datadir}/enlightenmentDR17/data/init/init.edj | |
151 | ||
152 | %files -n enlightenment-init-default-fast_pc | |
153 | %defattr(644,root,root,755) | |
154 | %{_datadir}/enlightenmentDR17/data/init/init-fast_pc.edj | |
155 | %ghost %{_datadir}/enlightenmentDR17/data/init/init.edj |