]>
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 | ||
1d5990d7 | 6 | %define src_name enlightenment |
d5a22042 | 7 | |
a26c22e1 JR |
8 | # /usr/share/enlightenment/data/themes/default.edj must be in both packages |
9 | %define _duplicate_files_terminate_build 0 | |
10 | ||
d5a22042 | 11 | Summary: Default Enlightenment themes |
3d99b0dd | 12 | Summary(pl.UTF-8): Domyślne motywy Enlightenmenta |
d5a22042 | 13 | Name: enlightenment-theme-default |
2b33d526 | 14 | Version: 0.17.2.1 |
6910a5f4 | 15 | Release: 1 |
d5a22042 | 16 | License: BSD |
17 | Group: Themes | |
2b33d526 JR |
18 | Source0: http://download.enlightenment.org/releases/%{src_name}-%{version}.tar.bz2 |
19 | # Source0-md5: a0da142a9a44540506149936bfc6e28c | |
d5a22042 | 20 | URL: http://enlightenment.org/ |
21 | BuildRequires: edje | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
d5a22042 | 25 | %description |
26 | Enlightenment default theme. | |
27 | ||
59e28291 JR |
28 | %description -l pl.UTF-8 |
29 | Domyślne motywy Enlightenmenta. | |
7df8978b | 30 | |
d5a22042 | 31 | %package slow_pc |
32 | Summary: Default Enlightenment theme with small textures | |
3d99b0dd | 33 | Summary(pl.UTF-8): Domyślny motyw Enlightenmenta z małymi teksturami |
d5a22042 | 34 | Group: Themes |
1d5990d7 | 35 | Requires: enlightenment >= %{version} |
3c05f8b9 | 36 | Provides: enlightenment-theme-default = %{version} |
d5a22042 | 37 | |
38 | %description slow_pc | |
39 | Default Enlightenment theme with small textures. | |
40 | ||
59e28291 JR |
41 | %description slow_pc -l pl.UTF-8 |
42 | Domyślny motyw Enlightenmenta z małymi teksturami. | |
7df8978b | 43 | |
d5a22042 | 44 | %package fast_pc |
45 | Summary: Default Enlightenment theme with large textures | |
3d99b0dd | 46 | Summary(pl.UTF-8): Domyślny motyw Enlightenmenta z dużymi teksturami |
d5a22042 | 47 | Group: Themes |
1d5990d7 | 48 | Requires: enlightenment >= %{version} |
3c05f8b9 | 49 | Provides: enlightenment-theme-default = %{version} |
d5a22042 | 50 | |
51 | %description fast_pc | |
52 | Default Enlightenment theme with large textures. | |
53 | ||
59e28291 JR |
54 | %description fast_pc -l pl.UTF-8 |
55 | Domyślny motyw Enlightenmenta z dużymi teksturami. | |
7df8978b | 56 | |
d5a22042 | 57 | %prep |
9ab68d16 | 58 | %setup -q -n %{src_name}-%{version} |
17f1ab67 | 59 | for DIR in themes; do |
d5a22042 | 60 | 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)/' \ |
61 | -e 's#@edje_cc@#%{_bindir}/edje_cc#' \ | |
62 | -e 's#$(top_srcdir)/data/#../#' \ | |
63 | -e 's#$(top_builddir)/data/#../#' \ | |
64 | data/$DIR/Makefile.am > data/$DIR/Makefile | |
65 | done | |
66 | ||
67 | %build | |
d5a22042 | 68 | %{__make} -C data/themes default.edj PROFILE=SLOW_PC |
69 | mv data/themes/{default.edj,default-slow_pc.edj} | |
70 | %{__make} -C data/themes default.edj PROFILE=FAST_PC | |
71 | mv data/themes/{default.edj,default-fast_pc.edj} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
17f1ab67 | 75 | install -d $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/themes |
d5a22042 | 76 | |
def73451 | 77 | install data/themes/default-{slow,fast}_pc.edj \ |
c2ab0663 | 78 | $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/themes/ |
79 | touch $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/themes/default.edj | |
d5a22042 | 80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post slow_pc | |
c2ab0663 | 85 | [ -e %{_datadir}/enlightenment/data/themes/default.edj ] || \ |
86 | ln -sf %{_datadir}/enlightenment/data/themes/{default-slow_pc.edj,default.edj} | |
d5a22042 | 87 | |
88 | %post fast_pc | |
c2ab0663 | 89 | [ -e %{_datadir}/enlightenment/data/themes/default.edj ] || \ |
90 | ln -sf %{_datadir}/enlightenment/data/themes/{default-fast_pc.edj,default.edj} | |
d5a22042 | 91 | |
d5a22042 | 92 | %files slow_pc |
93 | %defattr(644,root,root,755) | |
c2ab0663 | 94 | %{_datadir}/enlightenment/data/themes/default-slow_pc.edj |
95 | %ghost %{_datadir}/enlightenment/data/themes/default.edj | |
d5a22042 | 96 | |
97 | %files fast_pc | |
98 | %defattr(644,root,root,755) | |
c2ab0663 | 99 | %{_datadir}/enlightenment/data/themes/default-fast_pc.edj |
100 | %ghost %{_datadir}/enlightenment/data/themes/default.edj |