]> git.pld-linux.org Git - packages/totem.git/commitdiff
- build default with xine-lib which is more stable than gst
authoraflinta <aflinta@pld-linux.org>
Fri, 9 Apr 2004 15:47:54 +0000 (15:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added gstreamer bcond
- added nvtv bcond
- it now requires xine-lib rc3c

Changed files:
    totem.spec -> 1.27

totem.spec

index df92d8adfe31e5e9fc9ecd7c796eae0d0aea630b..8f9c9cf5900a8a197fb59128e1d49e90769641d9 100644 (file)
@@ -1,3 +1,9 @@
+#
+# Conditional build
+%bcond_with     gstreamer       # build with gstreamer instead xine-lib
+%bcond_without  nvtv           # build without nvtv support
+#
+
 Summary:       Movie player for GNOME 2 based on the gstreamer engine
 Summary(pl):   Odtwarzacz filmów dla GNOME 2 oparty na silniku gstreamer
 Name:          totem
@@ -14,23 +20,30 @@ BuildRequires:      autoconf
 BuildRequires: automake
 BuildRequires: gnome-desktop-devel
 BuildRequires: gnome-vfs2-devel
+%if %{with gstreamer}
 BuildRequires: gstreamer-GConf-devel >= 0.8.0
 BuildRequires: gstreamer-plugins-devel >= 0.8.0
+%endif
 BuildRequires: gtk+2-devel >= 2:2.4.0
 BuildRequires: intltool >= 0.20
 BuildRequires: libglade2-devel
 BuildRequires: libgnomeui-devel >= 2.4.0.1
 BuildRequires: libtool
+%{?with_nvtv:BuildRequires: nvtv}
 BuildRequires: pkgconfig
+%{!?with_gstreamer:BuildRequires:       xine-lib-devel >= 1:1.0-0.rc3c.1}
 Requires(post):        GConf2
 Requires(post):        scrollkeeper
 Requires:      XFree86-libs >= 4.3.0-1.3
 Requires:      gnome-desktop >= 2.4.0
+%if %{with gstreamer}
 Requires:      gstreamer-colorspace >= 0.8.0
 Requires:      gstreamer-videosink >= 0.8.0
+%endif
 Requires:      gtk+2 >= 2:2.4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%if %{with gstreamer}
 %description
 Totem is simple movie player for the GNOME desktop based on gstreamer.
 It features a simple playlist, a full-screen mode, seek and volume
@@ -41,6 +54,20 @@ Totem to prosty odtwarzacz film
 gstreamer. Ma prost± listê odtwarzania, tryb pe³noekranowy, kontrolê
 po³o¿enia w pliku i g³o¶no¶ci, a tak¿e w miarê kompletn± obs³ugê z
 klawiatury.
+%endif
+
+%if %{without gstreamer}
+%description
+Totem is simple movie player for the GNOME desktop based on xine-libs.
+It features a simple playlist, a full-screen mode, seek and volume
+controls, as well as a pretty complete keyboard navigation.
+
+%description -l pl
+Totem to prosty odtwarzacz filmów dla ¶rodowiska GNOME oparty na
+xine-libs. Ma prost± listê odtwarzania, tryb pe³noekranowy, kontrolê
+po³o¿enia w pliku i g³o¶no¶ci, a tak¿e w miarê kompletn± obs³ugê z
+klawiatury.
+%endif
 
 %prep
 %setup -q
@@ -54,7 +81,9 @@ mv po/{no,nb}.po
 %{__autoconf}
 %{__automake}
 %configure \
-    --enable-gstreamer
+%{?without_nvtv: --disable-nvtv} \
+%{?with_gstreamer: --enable-gstreamer}
+
 %{__make}
 
 %install
This page took 0.156373 seconds and 4 git commands to generate.