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
15 %define _snap 20060625
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: aa4f66fba709b4b08c2ed49eda196657
22 URL: http://enlightenment.org/p.php?p=about/libs/emotion
23 BuildRequires: autoconf
24 BuildRequires: automake
26 BuildRequires: edje-devel
28 BuildRequires: gstreamer-cdio
29 BuildRequires: gstreamer-devel >= 0.10.2
30 BuildRequires: gstreamer-ffmpeg
31 BuildRequires: gstreamer-plugins-base-devel >= 0.10.1
33 BuildRequires: libtool
34 BuildRequires: pkgconfig
35 %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.1.1}
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Emotion is a Media Library.
41 %description -l pl.UTF-8
42 Emotion to biblioteka multimedialna.
45 Summary: Emotion header files
46 Summary(pl.UTF-8): Pliki nagłówkowe Emotion
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
51 Header files for Emotion.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe Emotion.
57 Summary: Static Emotion library
58 Summary(pl.UTF-8): Statyczna biblioteka Emotion
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static Emotion library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka Emotion.
68 %package decoder-gstreamer
69 Summary: Emotion decoder using gstreamer
70 Summary(pl.UTF-8): Dekoder Emotion używający gstreamera
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
74 %description decoder-gstreamer
75 Emotion decoder using gstreamer.
77 %description decoder-gstreamer -l pl.UTF-8
78 Dekoder Emotion używający gstreamera.
81 Summary: Emotion decoder using xine
82 Summary(pl.UTF-8): Dekoder Emotion używający xine
83 Group: Development/Libraries
84 Requires: %{name} = %{version}-%{release}
86 %description decoder-xine
87 Emotion decoder using xine.
89 %description decoder-xine -l pl.UTF-8
90 Dekoder Emotion używający xine.
102 %{!?with_static_libs:--disable-static} \
103 %{!?with_gstreamer:--disable-gstreamer} \
104 %{!?with_xine:--disable-xine}
108 rm -rf $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %doc AUTHORS COPYING COPYING-PLAIN README TODO
122 %attr(755,root,root) %{_bindir}/emotion_*
123 %attr(755,root,root) %{_libdir}/libemotion.so.*.*.*
124 %dir %{_libdir}/%{name}
127 %if %{with gstreamer}
128 %files decoder-gstreamer
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_gstreamer.so
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_xine.so
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_bindir}/emotion-config
142 %attr(755,root,root) %{_libdir}/libemotion.so
143 %{_libdir}/libemotion.la
144 %{_libdir}/%{name}/emotion_decoder_gstreamer.la
145 #%{_libdir}/%{name}/emotion_decoder_xine.la
146 %{_includedir}/Emotion*
147 %{_pkgconfigdir}/emotion.pc
149 %if %{with static_libs}
151 %defattr(644,root,root,755)
152 %{_libdir}/libemotion.a