Emotion: Really disable vlc
[profile/ivi/emotion.git] / emotion.spec.in
index 52b44fe..04a069c 100644 (file)
@@ -1,3 +1,4 @@
+%{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}}
 %define _missing_doc_files_terminate_build 0
 
 Summary: emotion
@@ -11,8 +12,9 @@ Source: ftp://ftp.enlightenment.org/pub/emotion/%{name}-%{version}.tar.gz
 Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
 Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
 Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
-#BuildSuggests: xorg-x11-devel libxine1-devel xine-lib-devel gstreamer-devel gstreamer-plugins-devel
-BuildRequires: XFree86-devel eet-devel evas-devel edje-devel
+#BuildSuggests: xorg-x11-devel XFree86-devel libX11-devel libxine1-devel xine-lib-devel
+#BuildSuggests: gstreamer-devel gstreamer-plugins-devel gstreamer-plugins-base-devel gstreamer-ffmpeg
+BuildRequires: eet-devel evas-devel edje-devel edje-bin
 BuildRequires: /usr/bin/xine-config
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
@@ -23,7 +25,7 @@ Emotion is a Media Library
 Summary: Emotion headers, static libraries, documentation and test programs
 Group: System Environment/Libraries
 Requires: %{name} = %{version}
-Requires: XFree86-devel
+Requires: eet-devel evas-devel edje-devel
 
 %description devel
 Headers, static libraries, test programs and documentation for Emotion
@@ -32,13 +34,16 @@ Headers, static libraries, test programs and documentation for Emotion
 %setup -q
 
 %build
-%{configure} --prefix=%{_prefix}
+%{configure} --prefix=%{_prefix} --enable-static --enable-shared
 %{__make} %{?_smp_mflags} %{?mflags}
 
 %install
 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
 test -x `which doxygen` && sh gendoc || :
 
+# Remove useless static modules
+%{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/*a
+
 %post
 /sbin/ldconfig || :
 
@@ -51,24 +56,24 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-, root, root)
 %doc AUTHORS COPYING* README
-%{_libdir}/libemotion.a
+%dir %{_libdir}/%{name}
+%{_bindir}/%{name}_*
 %{_libdir}/libemotion.so.*
-%{_bindir}/emotion_*
-%{_libdir}/emotion/emotion_decoder_xine.a
-#%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.a
-%{_datadir}/emotion
+%{_libdir}/%{name}/*.so
+#%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.so
+%{_datadir}/%{name}
 
 %files devel
 %defattr(-, root, root)
 %doc doc/html
-%{_bindir}/emotion-config
-%{_libdir}/pkgconfig/emotion.pc
-%{_libdir}/libemotion.so
+%{_includedir}/emotion-0/*.h
+%{_libdir}/libemotion.a
 %{_libdir}/libemotion.la
-%{_libdir}/emotion/emotion_decoder_xine.la
-%{_libdir}/emotion/emotion_decoder_xine.so
-#%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.so
+%{_libdir}/libemotion.so
+%{_libdir}/edje/modules/emotion/*/module.la
+%{_libdir}/edje/modules/emotion/*/module.so
+#%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.a
 #%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.la
-%{_includedir}/Emotion*
+%{_libdir}/pkgconfig/%{name}.pc
 
 %changelog