]>
Commit | Line | Data |
---|---|---|
af51f0e1 KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
b4598747 | 4 | %bcond_with remix # remix support (not used now as multisense is disabled) |
af51f0e1 | 5 | # |
b4598747 JB |
6 | %define ecore_ver 1.7.0 |
7 | %define eet_ver 1.7.0 | |
8 | %define eina_ver 1.7.0 | |
9 | %define eio_ver 1.7.0 | |
10 | %define embryo_ver 1.7.0 | |
11 | %define evas_ver 1.7.0 | |
1b64f69f | 12 | Summary: Complex Graphical Design/Layout Engine |
6cf2a602 | 13 | Summary(pl.UTF-8): Złożony silnik graficznego projektowania/planowania |
1b64f69f | 14 | Name: edje |
b4598747 | 15 | Version: 1.7.0 |
01fd3afe | 16 | Release: 1 |
954792f6 | 17 | License: BSD |
1b64f69f | 18 | Group: X11/Libraries |
8fd946e6 | 19 | Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2 |
b4598747 | 20 | # Source0-md5: 489b667a122891a16de35a2c90d41b52 |
01fd3afe | 21 | Patch0: %{name}-deps.patch |
107ae361 | 22 | URL: http://trac.enlightenment.org/e/wiki/Edje |
01fd3afe JB |
23 | # for alsa_snd_player plugin for remix |
24 | %{?with_remix:BuildRequires: alsa-lib-devel >= 1.0.21} | |
5af407e9 JB |
25 | BuildRequires: autoconf >= 2.52 |
26 | BuildRequires: automake >= 1.6 | |
954792f6 | 27 | BuildRequires: ecore-devel >= %{ecore_ver} |
5af407e9 | 28 | BuildRequires: ecore-evas-devel >= %{ecore_ver} |
954792f6 JB |
29 | BuildRequires: ecore-file-devel >= %{ecore_ver} |
30 | BuildRequires: ecore-imf-devel >= %{ecore_ver} | |
31 | BuildRequires: ecore-imf-evas-devel >= %{ecore_ver} | |
d56fc2c2 | 32 | BuildRequires: eina-devel >= %{eina_ver} |
b4598747 | 33 | BuildRequires: eio-devel >= %{eio_ver} |
d98139d1 BZ |
34 | BuildRequires: eet-devel >= %{eet_ver} |
35 | BuildRequires: embryo-devel >= %{embryo_ver} | |
36 | BuildRequires: evas-devel >= %{evas_ver} | |
01fd3afe JB |
37 | BuildRequires: flac-devel >= 1.2.1 |
38 | BuildRequires: libogg-devel >= 1:1.1.4 | |
39 | BuildRequires: libsndfile-devel >= 1.0.21 | |
40 | BuildRequires: libvorbis-devel >= 1:1.2.3 | |
1b64f69f | 41 | BuildRequires: libtool |
954792f6 JB |
42 | BuildRequires: lua51 >= 5.1.0 |
43 | BuildRequires: pkgconfig >= 1:0.22 | |
44 | BuildRequires: python >= 1:2.5 | |
01fd3afe JB |
45 | %{?with_remix:BuildRequires: remix-devel >= 0.2.4} |
46 | %{?with_remix:Requires: alsa-lib >= 1.0.21} | |
f2a53523 | 47 | Requires: %{name}-libs = %{version}-%{release} |
d98139d1 BZ |
48 | Requires: evas-engine-buffer >= %{evas_ver} |
49 | Requires: evas-loader-png >= %{evas_ver} | |
01fd3afe JB |
50 | Requires: flac >= 1.2.1 |
51 | Requires: libogg >= 1:1.1.4 | |
52 | Requires: libvorbis >= 1:1.2.3 | |
1b64f69f | 53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
8e2d5a68 | 55 | %undefine __cxx |
c8474e58 | 56 | %define specflags_x86_64 -mfpmath=387 |
57 | %define specflags_amd64 -mfpmath=387 | |
8e2d5a68 | 58 | |
1b64f69f | 59 | %description |
60 | Edje is a complex graphical design and layout engine. It provides a | |
61 | mechanism for allowing configuration data to define visual elements in | |
62 | terms of layout, behavior, and appearance. Edje allows for multiple | |
63 | collections of layouts in one file, allowing a complete set of images, | |
64 | animations, and controls to exist as a unified whole. | |
65 | ||
66 | Edje separates the arrangement, appearance, and behavior logic into | |
67 | distinct independent entities. This allows visual objects to share | |
68 | image data and configuration information without requiring them to do | |
69 | so. This separation and simplistic event driven style of programming | |
70 | can produce almost any look and feel one could want for basic visual | |
71 | elements. Anything more complex is likely the domain of an application | |
8caade6f | 72 | or widget set that may use Edje as a convenient way of being able to |
1b64f69f | 73 | configure parts of the display. |
74 | ||
1c868423 JR |
75 | %description -l pl.UTF-8 |
76 | Edje to złożony silnik graficznego projektowania i planowania. | |
77 | Dostarcza mechanizm pozwalający na definiowanie elementów graficznych | |
78 | za pomocą danych konfiguracyjnych poprzez rozmieszczenie, zachowanie i | |
79 | wygląd. Edje pozwala na wiele kolekcji projektów w jednym pliku, | |
80 | zezwalając na istnienie pełnego zbioru obrazów, animacji i kontrolek | |
81 | jako całości. | |
82 | ||
83 | Edje oddziela rozmieszczenie, wygląd i logikę zachowania na różne, | |
84 | niezależne elementy. Pozwala to na współdzielenie danych obrazów i | |
85 | informacji o konfiguracji elementów graficznych bez wymagania tego. | |
8caade6f | 86 | Rozdzielenie to i uproszczony model programowania sterowanego |
1c868423 JR |
87 | zdarzeniami może stworzyć prawie dowolny wygląd i zachowanie |
88 | podstawowych elementów graficznych. Wszystko bardziej złożone jest | |
89 | raczej domeną aplikacji lub zbioru widgetów, które mogą używać Edje | |
90 | jako wygodnego sposobu konfigurowania części ekranu. | |
8caade6f | 91 | |
f2a53523 | 92 | %package libs |
93 | Summary: Edje library | |
6cf2a602 | 94 | Summary(pl.UTF-8): Biblioteka edje |
f2a53523 | 95 | Group: X11/Libraries |
954792f6 JB |
96 | Requires: ecore >= %{ecore_ver} |
97 | Requires: ecore-file >= %{ecore_ver} | |
98 | Requires: ecore-imf >= %{ecore_ver} | |
99 | Requires: ecore-imf-evas >= %{ecore_ver} | |
abf3461e | 100 | Requires: eina >= %{eina_ver} |
b4598747 | 101 | Requires: eio >= %{eio_ver} |
d98139d1 BZ |
102 | Requires: eet >= %{eet_ver} |
103 | Requires: embryo >= %{embryo_ver} | |
104 | Requires: evas >= %{evas_ver} | |
01fd3afe JB |
105 | Requires: libsndfile >= 1.0.21 |
106 | %{?with_remix:Requires: remix >= 0.2.4} | |
f2a53523 | 107 | |
108 | %description libs | |
109 | Edje library. | |
110 | ||
1c868423 | 111 | %description libs -l pl.UTF-8 |
f2a53523 | 112 | Biblioteka edje. |
113 | ||
1b64f69f | 114 | %package devel |
8caade6f | 115 | Summary: Edje header files |
6cf2a602 | 116 | Summary(pl.UTF-8): Pliki nagłówkowe Edje |
1b64f69f | 117 | Group: Development/Libraries |
f2a53523 | 118 | Requires: %{name}-libs = %{version}-%{release} |
954792f6 JB |
119 | Requires: ecore-devel >= %{ecore_ver} |
120 | Requires: ecore-file-devel >= %{ecore_ver} | |
121 | Requires: ecore-imf-devel >= %{ecore_ver} | |
122 | Requires: ecore-imf-evas-devel >= %{ecore_ver} | |
d98139d1 | 123 | Requires: eet-devel >= %{eet_ver} |
b4598747 | 124 | Requires: eio-devel >= %{eio_ver} |
d98139d1 BZ |
125 | Requires: embryo-devel >= %{embryo_ver} |
126 | Requires: evas-devel >= %{evas_ver} | |
01fd3afe JB |
127 | Requires: libsndfile-devel >= 1.0.21 |
128 | %{?with_remix:Requires: remix-devel >= 0.2.4} | |
1b64f69f | 129 | |
130 | %description devel | |
8caade6f JB |
131 | Header files for Edje. |
132 | ||
1c868423 JR |
133 | %description devel -l pl.UTF-8 |
134 | Pliki nagłówkowe Edje. | |
1b64f69f | 135 | |
136 | %package static | |
ac05b8b7 | 137 | Summary: Static Edje library |
6cf2a602 | 138 | Summary(pl.UTF-8): Statyczna biblioteka Edje |
1b64f69f | 139 | Group: Development/Libraries |
8caade6f | 140 | Requires: %{name}-devel = %{version}-%{release} |
1b64f69f | 141 | |
142 | %description static | |
ac05b8b7 | 143 | Static Edje library. |
8caade6f | 144 | |
1c868423 | 145 | %description static -l pl.UTF-8 |
ac05b8b7 | 146 | Statyczna biblioteka Edje. |
1b64f69f | 147 | |
06d2f063 JB |
148 | %package -n vim-syntax-edc |
149 | Summary: EDC syntax support for Vim | |
150 | Summary(pl.UTF-8): Obsługa składni EDC dla Vima | |
151 | Group: Applications/Editors/Vim | |
152 | Requires: vim-rt | |
153 | ||
154 | %description -n vim-syntax-edc | |
155 | EDC syntax support for Vim. | |
156 | ||
157 | %description -n vim-syntax-edc -l pl.UTF-8 | |
158 | Obsługa składni EDC dla Vima. | |
159 | ||
1b64f69f | 160 | %prep |
8fd946e6 | 161 | %setup -q |
785c68ff | 162 | %patch0 -p1 |
1b64f69f | 163 | |
164 | %build | |
312766ff | 165 | %{__libtoolize} |
dd65346c | 166 | %{__aclocal} -I m4 |
312766ff | 167 | %{__autoconf} |
168 | %{__autoheader} | |
169 | %{__automake} | |
976715d1 | 170 | %configure \ |
954792f6 | 171 | --disable-silent-rules \ |
01fd3afe | 172 | %{!?with_remix:--disable-remix} \ |
af51f0e1 | 173 | %{!?with_static_libs:--disable-static} \ |
06d2f063 JB |
174 | --enable-edje-cc \ |
175 | --with-vim=/usr/share/vim/vimfiles | |
954792f6 | 176 | %{__make} |
1b64f69f | 177 | |
178 | %install | |
179 | rm -rf $RPM_BUILD_ROOT | |
8caade6f | 180 | |
1b64f69f | 181 | %{__make} install \ |
182 | DESTDIR=$RPM_BUILD_ROOT | |
183 | ||
48c321a9 | 184 | install -d $RPM_BUILD_ROOT%{_libdir}/edje/modules |
37481ba9 | 185 | install -D data/edc.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax/edc.vim |
06d2f063 | 186 | |
01fd3afe JB |
187 | %if %{with remix} |
188 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/remix/*.la | |
189 | %endif | |
190 | ||
1b64f69f | 191 | %clean |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
06d2f063 JB |
194 | %post libs -p /sbin/ldconfig |
195 | %postun libs -p /sbin/ldconfig | |
1b64f69f | 196 | |
197 | %files | |
198 | %defattr(644,root,root,755) | |
d56fc2c2 | 199 | %doc AUTHORS COPYING ChangeLog NEWS README |
312766ff | 200 | %attr(755,root,root) %{_bindir}/edje_cc |
201 | %attr(755,root,root) %{_bindir}/edje_decc | |
954792f6 JB |
202 | %attr(755,root,root) %{_bindir}/edje_external_inspector |
203 | %attr(755,root,root) %{_bindir}/edje_inspector | |
dd65346c | 204 | %attr(755,root,root) %{_bindir}/edje_player |
312766ff | 205 | %attr(755,root,root) %{_bindir}/edje_recc |
b4598747 | 206 | %attr(755,root,root) %{_bindir}/edje_watch |
3e111412 | 207 | %attr(755,root,root) %{_bindir}/inkscape2edc |
d56fc2c2 JB |
208 | %dir %{_libdir}/%{name}/utils |
209 | %attr(755,root,root) %dir %{_libdir}/%{name}/utils/epp | |
1b64f69f | 210 | %{_datadir}/%{name} |
dd65346c | 211 | %{_datadir}/mime/packages/edje.xml |
1b64f69f | 212 | |
f2a53523 | 213 | %files libs |
214 | %defattr(644,root,root,755) | |
954792f6 JB |
215 | %attr(755,root,root) %{_libdir}/libedje.so.*.*.* |
216 | %attr(755,root,root) %ghost %{_libdir}/libedje.so.1 | |
48c321a9 JB |
217 | %dir %{_libdir}/%{name} |
218 | %dir %{_libdir}/%{name}/modules | |
01fd3afe JB |
219 | %if %{with remix} |
220 | %attr(755,root,root) %{_libdir}/remix/libalsa_snd_player.so | |
221 | %attr(755,root,root) %{_libdir}/remix/libeet_sndfile_reader.so | |
222 | %endif | |
f2a53523 | 223 | |
1b64f69f | 224 | %files devel |
225 | %defattr(644,root,root,755) | |
226 | %attr(755,root,root) %{_libdir}/libedje.so | |
227 | %{_libdir}/libedje.la | |
954792f6 | 228 | %{_includedir}/edje-1 |
1b64f69f | 229 | %{_pkgconfigdir}/edje.pc |
230 | ||
af51f0e1 | 231 | %if %{with static_libs} |
1b64f69f | 232 | %files static |
233 | %defattr(644,root,root,755) | |
234 | %{_libdir}/libedje.a | |
af51f0e1 | 235 | %endif |
06d2f063 JB |
236 | |
237 | %files -n vim-syntax-edc | |
238 | %defattr(644,root,root,755) | |
37481ba9 | 239 | %{_datadir}/vim/vimfiles/syntax/edc.vim |