]>
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 | |
8 | Summary: Default Enlightenment themes | |
3d99b0dd | 9 | Summary(pl.UTF-8): Domyślne motywy Enlightenmenta |
d5a22042 | 10 | Name: enlightenment-theme-default |
17f1ab67 | 11 | Version: 0.16.999.55225 |
9ab68d16 | 12 | Release: 0.1 |
d5a22042 | 13 | License: BSD |
14 | Group: Themes | |
17f1ab67 | 15 | Source0: http://download.enlightenment.org/snapshots/LATEST/%{src_name}-%{version}.tar.bz2 |
16 | # Source0-md5: 296e321c66e5819b21179307342e1d29 | |
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 | |
3d99b0dd | 30 | Summary(pl.UTF-8): Domyślny motyw Enlightenmenta z małymi teksturami |
d5a22042 | 31 | Group: Themes |
1d5990d7 | 32 | Requires: enlightenment >= %{version} |
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 | |
3d99b0dd | 43 | Summary(pl.UTF-8): Domyślny motyw Enlightenmenta z dużymi teksturami |
d5a22042 | 44 | Group: Themes |
1d5990d7 | 45 | Requires: enlightenment >= %{version} |
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 | %prep |
9ab68d16 | 55 | %setup -q -n %{src_name}-%{version} |
17f1ab67 | 56 | for DIR in themes; do |
d5a22042 | 57 | 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)/' \ |
58 | -e 's#@edje_cc@#%{_bindir}/edje_cc#' \ | |
59 | -e 's#$(top_srcdir)/data/#../#' \ | |
60 | -e 's#$(top_builddir)/data/#../#' \ | |
61 | data/$DIR/Makefile.am > data/$DIR/Makefile | |
62 | done | |
63 | ||
64 | %build | |
d5a22042 | 65 | %{__make} -C data/themes default.edj PROFILE=SLOW_PC |
66 | mv data/themes/{default.edj,default-slow_pc.edj} | |
67 | %{__make} -C data/themes default.edj PROFILE=FAST_PC | |
68 | mv data/themes/{default.edj,default-fast_pc.edj} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
17f1ab67 | 72 | install -d $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/themes |
d5a22042 | 73 | |
def73451 | 74 | install data/themes/default-{slow,fast}_pc.edj \ |
c2ab0663 | 75 | $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/themes/ |
76 | touch $RPM_BUILD_ROOT%{_datadir}/enlightenment/data/themes/default.edj | |
d5a22042 | 77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post slow_pc | |
c2ab0663 | 82 | [ -e %{_datadir}/enlightenment/data/themes/default.edj ] || \ |
83 | ln -sf %{_datadir}/enlightenment/data/themes/{default-slow_pc.edj,default.edj} | |
d5a22042 | 84 | |
85 | %post fast_pc | |
c2ab0663 | 86 | [ -e %{_datadir}/enlightenment/data/themes/default.edj ] || \ |
87 | ln -sf %{_datadir}/enlightenment/data/themes/{default-fast_pc.edj,default.edj} | |
d5a22042 | 88 | |
d5a22042 | 89 | %files slow_pc |
90 | %defattr(644,root,root,755) | |
c2ab0663 | 91 | %{_datadir}/enlightenment/data/themes/default-slow_pc.edj |
92 | %ghost %{_datadir}/enlightenment/data/themes/default.edj | |
d5a22042 | 93 | |
94 | %files fast_pc | |
95 | %defattr(644,root,root,755) | |
c2ab0663 | 96 | %{_datadir}/enlightenment/data/themes/default-fast_pc.edj |
97 | %ghost %{_datadir}/enlightenment/data/themes/default.edj |