3 %bcond_without gstreamer # don't build gstreamer decoder
4 %bcond_without xine # don't build xine decoder
5 %bcond_without static_libs # don't build static library
7 %if !%{with gstreamer} && !%{with xine}
8 %error at last one backend must be enabled
11 Summary: Enlightenment Fundation Libraries - Emotion
12 Summary(pl.UTF-8): Podstawowe biblioteki Enlightenmenta - Emotion
18 Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
19 # Source0-md5: e1550ff7a8f68b76b76a4d857073b3ee
20 URL: http://enlightenment.org/p.php?p=about/libs/emotion
21 BuildRequires: autoconf
22 BuildRequires: automake >= 1.4
23 # ecore-evas ecore-job
24 BuildRequires: ecore-devel >= 0.9.9
25 BuildRequires: edje >= 0.5.0
26 BuildRequires: edje-devel >= 0.5.0
27 BuildRequires: evas-devel >= 0.9.9
29 BuildRequires: gstreamer-devel >= 0.10.2
30 BuildRequires: gstreamer-plugins-base-devel >= 0.10.1
31 # gstreamer-cdio,gstreamer-ffmpeg for runtime, configure just warns if missing
33 BuildRequires: libtool
34 BuildRequires: pkgconfig
35 %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.1.1}
36 Requires: ecore-evas >= 0.9.9
37 Requires: ecore-job >= 0.9.9
38 Requires: edje-libs >= 0.5.0
39 Requires: evas >= 0.9.9
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Emotion is a Media Library.
45 %description -l pl.UTF-8
46 Emotion to biblioteka multimedialna.
49 Summary: Emotion header files
50 Summary(pl.UTF-8): Pliki nagłówkowe Emotion
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
53 # ecore-evas ecore-job
54 Requires: ecore-devel >= 0.9.9
55 Requires: edje-devel >= 0.5.0
56 Requires: evas-devel >= 0.9.9
59 Header files for Emotion.
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe Emotion.
65 Summary: Static Emotion library
66 Summary(pl.UTF-8): Statyczna biblioteka Emotion
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Static Emotion library.
73 %description static -l pl.UTF-8
74 Statyczna biblioteka Emotion.
76 %package decoder-gstreamer
77 Summary: Emotion decoder using gstreamer
78 Summary(pl.UTF-8): Dekoder Emotion używający gstreamera
79 Group: Development/Libraries
80 Requires: %{name} = %{version}-%{release}
81 Requires: gstreamer >= 0.10.2
82 Requires: gstreamer-plugins-base >= 0.10.1
83 Suggests: gstreamer-cdio
84 Suggests: gstreamer-ffmpeg
86 %description decoder-gstreamer
87 Emotion decoder using gstreamer.
89 %description decoder-gstreamer -l pl.UTF-8
90 Dekoder Emotion używający gstreamera.
93 Summary: Emotion decoder using xine
94 Summary(pl.UTF-8): Dekoder Emotion używający xine
95 Group: Development/Libraries
96 Requires: %{name} = %{version}-%{release}
97 Requires: xine-lib >= 2:1.1.1
99 %description decoder-xine
100 Emotion decoder using xine.
102 %description decoder-xine -l pl.UTF-8
103 Dekoder Emotion używający xine.
115 %{!?with_static_libs:--disable-static} \
116 %{!?with_gstreamer:--disable-gstreamer} \
117 %{!?with_xine:--disable-xine}
121 rm -rf $RPM_BUILD_ROOT
124 DESTDIR=$RPM_BUILD_ROOT
126 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la}
129 rm -rf $RPM_BUILD_ROOT
131 %post -p /sbin/ldconfig
132 %postun -p /sbin/ldconfig
135 %defattr(644,root,root,755)
136 %doc AUTHORS COPYING COPYING-PLAIN README TODO
137 %attr(755,root,root) %{_bindir}/emotion_*
138 %attr(755,root,root) %{_libdir}/libemotion.so.*.*.*
139 %dir %{_libdir}/%{name}
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/emotion-config
145 %attr(755,root,root) %{_libdir}/libemotion.so
146 %{_libdir}/libemotion.la
147 %{_includedir}/Emotion.h
148 %{_pkgconfigdir}/emotion.pc
150 %if %{with static_libs}
152 %defattr(644,root,root,755)
153 %{_libdir}/libemotion.a
156 %if %{with gstreamer}
157 %files decoder-gstreamer
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_gstreamer.so
164 %defattr(644,root,root,755)
165 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_xine.so