SPECS: emotion.spec - updated to 20060307 snap - added gstreamer a...

sparky sparky at pld-linux.org
Sun Mar 12 22:32:45 CET 2006


Author: sparky                       Date: Sun Mar 12 21:32:45 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 20060307 snap
- added gstreamer and xine bconds, and subpackages with same names, fixed BRs

---- Files affected:
SPECS:
   emotion.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/emotion.spec
diff -u SPECS/emotion.spec:1.9 SPECS/emotion.spec:1.10
--- SPECS/emotion.spec:1.9	Wed Nov 30 14:56:47 2005
+++ SPECS/emotion.spec	Sun Mar 12 22:32:38 2006
@@ -1,28 +1,34 @@
 # $Revision$, $Date$
 #
 # Conditional build:
+%bcond_without	gstreamer	# don't build gstreamer decoder
+%bcond_without	xine		# don't build xine decoder
 %bcond_without	static_libs	# don't build static library
 #
+%if %{without gstreamer} && %{without xine}
+error at last one backend must be enabled
+%endif
+#
 Summary:	Enlightenment Fundation Libraries - Emotion
 Summary(pl):	Podstawowe biblioteki Enlightenmenta - Emotion
 Name:		emotion
 Version:	0.0.1.004
-%define	_snap	20051116
+%define	_snap	20060307
 Release:	2.%{_snap}.1
 License:	BSD
 Group:		X11/Libraries
 #Source0:	http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
 Source0:	http://sparky.homelinux.org/snaps/enli/e17/libs/%{name}-%{_snap}.tar.bz2
-# Source0-md5:	6faafbf9a01a9d31f0ed9c1c60b9062a
+# Source0-md5:	fbc1342f7cc39575a117a76a87297b1d
 URL:		http://enlightenment.org/Libraries/Emotion/
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	edje
 BuildRequires:	edje-devel
-BuildRequires:	gstreamer-plugins-devel
+%{?with_gstreamer:BuildRequires:	gstreamer-plugins-base-devel >= 0.10}
 BuildRequires:	libtool
 BuildRequires:	pkgconfig
-BuildRequires:	xine-lib-devel
+%{?with_xine:BuildRequires:	xine-lib-devel >= 2:1.1.1}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,7 +42,6 @@
 Summary(pl):	Pliki nagłówkowe Emotion
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	xine-lib-devel
 
 %description devel
 Header files for Emotion.
@@ -56,6 +61,30 @@
 %description static -l pl
 Statyczna biblioteka Emotion.
 
+%package decoder-gstreamer
+Summary:	Emotion decoder using gstreamer
+Summary(pl):	Dekoder Emotion uzywajacy gstreamera
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description decoder-gstreamer
+Emotion decoder using gstreamer.
+
+%description decoder-gstreamer -l pl
+Dekoder Emotion uzywajacy gstreamera.
+
+%package decoder-xine
+Summary:	Emotion decoder using xine
+Summary(pl):	Dekoder Emotion uzywajacy xine
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description decoder-xine
+Emotion decoder using xine.
+
+%description decoder-xine -l pl
+Dekoder Emotion uzywajacy xine.
+
 %prep
 %setup -q -n %{name}
 
@@ -66,7 +95,9 @@
 %{__autoheader}
 %{__automake}
 %configure \
-	%{!?with_static_libs:--disable-static}
+	%{!?with_static_libs:--disable-static} \
+	%{?without_gstreamer:--disable-gstreamer} \
+	%{?without_xine:--disable-xine}
 %{__make}
 
 %install
@@ -75,9 +106,6 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.{la,a} \
-	$RPM_BUILD_ROOT%{_libdir}/%{name}/*.a
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -90,10 +118,19 @@
 %attr(755,root,root) %{_bindir}/emotion_*
 %attr(755,root,root) %{_libdir}/libemotion.so.*.*.*
 %dir %{_libdir}/%{name}
+%{_datadir}/%{name}
+
+%if %{with gstreamer}
+%files decoder-gstreamer
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_gstreamer.so
+%endif
+
+%if %{with xine}
+%files decoder-xine
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_xine.so
-%attr(755,root,root) %{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.so
-%{_datadir}/%{name}
+%endif
 
 %files devel
 %defattr(644,root,root,755)
@@ -101,7 +138,7 @@
 %attr(755,root,root) %{_libdir}/libemotion.so
 %{_libdir}/libemotion.la
 %{_libdir}/%{name}/emotion_decoder_gstreamer.la
-%{_libdir}/%{name}/emotion_decoder_xine.la
+#%{_libdir}/%{name}/emotion_decoder_xine.la
 %{_includedir}/Emotion*
 %{_pkgconfigdir}/emotion.pc
 
@@ -117,6 +154,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2006/03/12 21:32:38  sparky
+- updated to 20060307 snap
+- added gstreamer and xine bconds, and subpackages with same names, fixed BRs
+
 Revision 1.9  2005/11/30 13:56:47  charles
 - proper rel, BR: pkgconfig
 - bcond static_libs
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/emotion.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list