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 %{without gstreamer} && %{without xine}
8 error at last one backend must be enabled
11 Summary: Enlightenment Fundation Libraries - Emotion
12 Summary(pl): Podstawowe biblioteki Enlightenmenta - Emotion
15 %define _snap 20060307
19 #Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
20 Source0: http://sparky.homelinux.org/snaps/enli/e17/libs/%{name}-%{_snap}.tar.bz2
21 # Source0-md5: fbc1342f7cc39575a117a76a87297b1d
22 URL: http://enlightenment.org/Libraries/Emotion/
23 BuildRequires: autoconf
24 BuildRequires: automake
26 BuildRequires: edje-devel
27 %{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10}
28 BuildRequires: libtool
29 BuildRequires: pkgconfig
30 %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.1.1}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Emotion is a Media Library.
37 Emotion to biblioteka multimedialna.
40 Summary: Emotion header files
41 Summary(pl): Pliki nag³ówkowe Emotion
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
46 Header files for Emotion.
48 %description devel -l pl
49 Pliki nag³ówkowe Emotion.
52 Summary: Static Emotion library
53 Summary(pl): Statyczna biblioteka Emotion
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 Static Emotion library.
60 %description static -l pl
61 Statyczna biblioteka Emotion.
63 %package decoder-gstreamer
64 Summary: Emotion decoder using gstreamer
65 Summary(pl): Dekoder Emotion u¿ywaj±cy gstreamera
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
69 %description decoder-gstreamer
70 Emotion decoder using gstreamer.
72 %description decoder-gstreamer -l pl
73 Dekoder Emotion u¿ywaj±cy gstreamera.
76 Summary: Emotion decoder using xine
77 Summary(pl): Dekoder Emotion u¿ywaj±cy xine
78 Group: Development/Libraries
79 Requires: %{name} = %{version}-%{release}
81 %description decoder-xine
82 Emotion decoder using xine.
84 %description decoder-xine -l pl
85 Dekoder Emotion u¿ywaj±cy xine.
97 %{!?with_static_libs:--disable-static} \
98 %{?without_gstreamer:--disable-gstreamer} \
99 %{?without_xine:--disable-xine}
103 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT
109 rm -rf $RPM_BUILD_ROOT
111 %post -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
115 %defattr(644,root,root,755)
116 %doc AUTHORS COPYING COPYING-PLAIN README TODO
117 %attr(755,root,root) %{_bindir}/emotion_*
118 %attr(755,root,root) %{_libdir}/libemotion.so.*.*.*
119 %dir %{_libdir}/%{name}
122 %if %{with gstreamer}
123 %files decoder-gstreamer
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_gstreamer.so
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_xine.so
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/emotion-config
137 %attr(755,root,root) %{_libdir}/libemotion.so
138 %{_libdir}/libemotion.la
139 %{_libdir}/%{name}/emotion_decoder_gstreamer.la
140 #%{_libdir}/%{name}/emotion_decoder_xine.la
141 %{_includedir}/Emotion*
142 %{_pkgconfigdir}/emotion.pc
144 %if %{with static_libs}
146 %defattr(644,root,root,755)
147 %{_libdir}/libemotion.a