]>
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 | |
59e28291 | 9 | Summary(pl.UTF-8): Domyślne motywy Enlightenmenta |
d5a22042 | 10 | Name: enlightenment-theme-default |
def73451 | 11 | Version: 0.16.999.036 |
d5a22042 | 12 | Release: 1 |
13 | License: BSD | |
14 | Group: Themes | |
15 | Source0: http://enlightenment.freedesktop.org/files/%{_src_name}-%{version}.tar.gz | |
def73451 | 16 | # Source0-md5: bf9ce15f009b7a8d8875fddea2ea065f |
d5a22042 | 17 | URL: http://enlightenment.org/ |
18 | BuildRequires: edje | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
d5a22042 | 22 | %description |
23 | Enlightenment default theme. | |
24 | ||
59e28291 JR |
25 | %description -l pl.UTF-8 |
26 | Domyślne motywy Enlightenmenta. | |
7df8978b | 27 | |
d5a22042 | 28 | %package slow_pc |
29 | Summary: Default Enlightenment theme with small textures | |
59e28291 | 30 | Summary(pl.UTF-8): Domyślny motyw Enlightenmenta z małymi teksturami |
d5a22042 | 31 | Group: Themes |
c2ab0663 | 32 | Requires: enlightenment >= 0.16.999 |
3c05f8b9 | 33 | Provides: enlightenment-theme-default = %{version} |
d5a22042 | 34 | |
35 | %description slow_pc | |
36 | Default Enlightenment theme with small textures. | |
37 | ||
59e28291 JR |
38 | %description slow_pc -l pl.UTF-8 |
39 | Domyślny motyw Enlightenmenta z małymi teksturami. | |
7df8978b | 40 | |
d5a22042 | 41 | %package fast_pc |
42 | Summary: Default Enlightenment theme with large textures | |
59e28291 | 43 | Summary(pl.UTF-8): Domyślny motyw Enlightenmenta z dużymi teksturami |
d5a22042 | 44 | Group: Themes |
c2ab0663 | 45 | Requires: enlightenment >= 0.16.999 |
3c05f8b9 | 46 | Provides: enlightenment-theme-default = %{version} |
d5a22042 | 47 | |
48 | %description fast_pc | |
49 | Default Enlightenment theme with large textures. | |
50 | ||
59e28291 JR |
51 | %description fast_pc -l pl.UTF-8 |
52 | Domyślny motyw Enlightenmenta z dużymi teksturami. | |
7df8978b | 53 | |
d5a22042 | 54 | %package -n enlightenment-init-default-slow_pc |
55 | Summary: Default Enlightenment init theme for slow computers | |
59e28291 | 56 | Summary(pl.UTF-8): Domyślny początkowy motyw Enlightenmenta dla wolnych komputerów |
d5a22042 | 57 | Group: Themes |
c2ab0663 | 58 | Requires: enlightenment >= 0.16.999 |
d5a22042 | 59 | Provides: enlightenment-init-default |
60 | ||
61 | %description -n enlightenment-init-default-slow_pc | |
44c9d416 | 62 | Default Enlightenment init theme with small textures and half number |
63 | of frames. | |
d5a22042 | 64 | |
59e28291 JR |
65 | %description -n enlightenment-init-default-slow_pc -l pl.UTF-8 |
66 | Domyślny początkowy motyw Enlightenmenta z małymi teksturami i dwa | |
7df8978b JB |
67 | razy mniejszej liczbie ramek. |
68 | ||
d5a22042 | 69 | %package -n enlightenment-init-default-medium_pc |
70 | Summary: Default Enlightenment init theme for medium speed computers | |
59e28291 | 71 | Summary(pl.UTF-8): Domyślny początkowy motyw Enlightenmenta dla komputerów średniej szybkości |
d5a22042 | 72 | Group: Themes |
c2ab0663 | 73 | Requires: enlightenment >= 0.16.999 |
d5a22042 | 74 | Provides: enlightenment-init-default |
75 | ||
76 | %description -n enlightenment-init-default-medium_pc | |
44c9d416 | 77 | Default Enlightenment init theme with large textures and half number |
78 | of frames. | |
d5a22042 | 79 | |
59e28291 JR |
80 | %description -n enlightenment-init-default-medium_pc -l pl.UTF-8 |
81 | Domyślny początkowy motyw Enlightenmenta z dużymi teksturami i dwa | |
7df8978b JB |
82 | razy mniejszej liczbie ramek. |
83 | ||
d5a22042 | 84 | %package -n enlightenment-init-default-fast_pc |
85 | Summary: Default Enlightenment init theme with large textures and all frames | |
59e28291 | 86 | Summary(pl.UTF-8): Domyślny początkowy motyw Enlightenmenta z dużymi teksturami i wszystkimi ramkami |
d5a22042 | 87 | Group: Themes |
c2ab0663 | 88 | Requires: enlightenment >= 0.16.999 |
d5a22042 | 89 | Provides: enlightenment-init-default |
90 | ||
91 | %description -n enlightenment-init-default-fast_pc | |
92 | Default Enlightenment init theme with large textures and all frames. | |
93 | ||
59e28291 JR |
94 | %description -n enlightenment-init-default-fast_pc -l pl.UTF-8 |
95 | Domyślny początkowy motyw Enlightenmenta z dużymi tekstorami i | |
7df8978b JB |
96 | wszystkimi ramkami. |
97 | ||
d5a22042 | 98 | %prep |
99 | %setup -q -n %{_src_name}-%{version} | |
d5a22042 | 100 | for DIR in init themes; do |
101 | 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)/' \ | |
102 | -e 's#@edje_cc@#%{_bindir}/edje_cc#' \ | |
103 | -e 's#$(top_srcdir)/data/#../#' \ | |
104 | -e 's#$(top_builddir)/data/#../#' \ | |
105 | data/$DIR/Makefile.am > data/$DIR/Makefile | |
106 | done | |
107 | ||
108 | %build | |
def73451 | 109 | %{__make} -C data/init default.edj PROFILE=SLOW_PC |
110 | mv data/init/{default.edj,default-slow_pc.edj} | |
111 | %{__make} -C data/init default.edj PROFILE=MEDIUM_PC | |
112 | mv data/init/{default.edj,default-medium_pc.edj} | |
113 | %{__make} -C data/init default.edj PROFILE=FAST_PC | |
114 | mv data/init/{default.edj,default-fast_pc.edj} | |
d5a22042 | 115 | |
116 | %{__make} -C data/themes default.edj PROFILE=SLOW_PC | |
117 | mv data/themes/{default.edj,default-slow_pc.edj} | |
118 | %{__make} -C data/themes default.edj PROFILE=FAST_PC | |
119 | mv data/themes/{default.edj,default-fast_pc.edj} | |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
c2ab0663 | 123 | install -d $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/{init,themes} |
d5a22042 | 124 | |
def73451 | 125 | install data/init/default-{slow,medium,fast}_pc.edj \ |
c2ab0663 | 126 | $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/init/ |
def73451 | 127 | touch $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/init/default.edj |
d5a22042 | 128 | |
def73451 | 129 | install data/themes/default-{slow,fast}_pc.edj \ |
c2ab0663 | 130 | $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/themes/ |
131 | touch $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/themes/default.edj | |
d5a22042 | 132 | |
133 | %clean | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %post slow_pc | |
c2ab0663 | 137 | [ -e %{_datadir}/enlightenment/data/themes/default.edj ] || \ |
138 | ln -sf %{_datadir}/enlightenment/data/themes/{default-slow_pc.edj,default.edj} | |
d5a22042 | 139 | |
140 | %post fast_pc | |
c2ab0663 | 141 | [ -e %{_datadir}/enlightenment/data/themes/default.edj ] || \ |
142 | ln -sf %{_datadir}/enlightenment/data/themes/{default-fast_pc.edj,default.edj} | |
d5a22042 | 143 | |
144 | %post -n enlightenment-init-default-slow_pc | |
def73451 | 145 | [ -e %{_datadir}/enlightenment/data/init/default.edj ] || \ |
146 | ln -sf %{_datadir}/enlightenment/data/init/{default-slow_pc.edj,default.edj} | |
d5a22042 | 147 | |
148 | %post -n enlightenment-init-default-medium_pc | |
def73451 | 149 | [ -e %{_datadir}/enlightenment/data/init/default.edj ] || \ |
150 | ln -sf %{_datadir}/enlightenment/data/init/{default-medium_pc.edj,default.edj} | |
d5a22042 | 151 | |
152 | %post -n enlightenment-init-default-fast_pc | |
def73451 | 153 | [ -e %{_datadir}/enlightenment/data/init/default.edj ] || \ |
154 | ln -sf %{_datadir}/enlightenment/data/init/{default-fast_pc.edj,default.edj} | |
d5a22042 | 155 | |
156 | %files slow_pc | |
157 | %defattr(644,root,root,755) | |
c2ab0663 | 158 | %{_datadir}/enlightenment/data/themes/default-slow_pc.edj |
159 | %ghost %{_datadir}/enlightenment/data/themes/default.edj | |
d5a22042 | 160 | |
161 | %files fast_pc | |
162 | %defattr(644,root,root,755) | |
c2ab0663 | 163 | %{_datadir}/enlightenment/data/themes/default-fast_pc.edj |
164 | %ghost %{_datadir}/enlightenment/data/themes/default.edj | |
d5a22042 | 165 | |
166 | %files -n enlightenment-init-default-slow_pc | |
167 | %defattr(644,root,root,755) | |
def73451 | 168 | %{_datadir}/enlightenment/data/init/default-slow_pc.edj |
169 | %ghost %{_datadir}/enlightenment/data/init/default.edj | |
d5a22042 | 170 | |
171 | %files -n enlightenment-init-default-medium_pc | |
172 | %defattr(644,root,root,755) | |
def73451 | 173 | %{_datadir}/enlightenment/data/init/default-medium_pc.edj |
174 | %ghost %{_datadir}/enlightenment/data/init/default.edj | |
d5a22042 | 175 | |
176 | %files -n enlightenment-init-default-fast_pc | |
177 | %defattr(644,root,root,755) | |
def73451 | 178 | %{_datadir}/enlightenment/data/init/default-fast_pc.edj |
179 | %ghost %{_datadir}/enlightenment/data/init/default.edj |