]> git.pld-linux.org Git - packages/kmplayer.git/blobdiff - kmplayer.spec
- updated to 0.8.4b (some nasty bugs fixed)
[packages/kmplayer.git] / kmplayer.spec
index 07eaa067aa5bf8c8cdf0f72803ca28737e20e014..d529b28aa86aa83da8931b370301b025e4144bdd 100644 (file)
@@ -1,31 +1,31 @@
 
-%bcond_with koffice    # Build koffice plugin
-
-%define                _ver            0.8.4
-%define                _snap           %{nil}
-%define                _rc             rc5
+%bcond_without gstreamer       # Do not build kgstplayer
+%bcond_with koffice            # Build koffice plugin
+%bcond_without xine            # Do not build kxineplayer
 
 Summary:       A KDE MPlayer/Xine/ffmpeg/ffserver/VDR frontend
 Summary(pl):   Frontend dla programów MPlayer/Xine/ffmpeg/ffserver/VDR pod KDE
 Name:          kmplayer
-Version:       %{_ver}
-Release:       0.%{_rc}.0.1
+Version:       0.8.4b
+Release:       1
 Epoch:         2
 License:       GPL
 Group:         X11/Applications/Multimedia
 # From kdeextragear-2 kde cvs module
 #Source0:      ftp://ftp.pld-linux.org/software/kde/%{name}-%{_snap}.tar.bz2
-Source0:        http://www.xs4all.nl/~jjvrieze/%{name}-%{version}-%{_rc}.tar.bz2
-# Source0-md5: c15d792dc40c81a015262bad6323b053
-Patch0:                %{name}-mimetypes.patch
+Source0:        http://www.xs4all.nl/~jjvrieze/%{name}-%{version}.tar.bz2
+# Source0-md5: e681ea15e1ce65b59b613aab1c80aa7b
+#Patch0:               %{name}-mimetypes.patch
 URL:           http://www.xs4all.nl/~jjvrieze/kmplayer.html
 BuildRequires: arts-qt-devel
 BuildRequires: artsc-devel
+%{?with_gstreamer:BuildRequires:       gstreamer-plugins-devel}
 BuildRequires: kdelibs-devel >= 9:3.1.92
 %{?with_koffice:BuildRequires: koffice-devel}
 BuildRequires: rpmbuild(macros) >= 1.129       
-BuildRequires: xine-lib-devel >= 1:1.0 
-BuildRequires: unsermake
+BuildRequires: sed >= 4.0
+%{?with_xine:BuildRequires:    xine-lib-devel >= 1:1.0}
+#BuildRequires:        unsermake
 Requires:      kdebase-core >= 9:3.1.90
 Requires:      kdelibs >= 9:3.3.0-2
 Requires:      mplayer
@@ -52,20 +52,26 @@ Kmplayer integration with Koffice.
 Integracja kmplayera z koffice.
 
 %prep
-%setup -q -n %{name}-%{version}-%{_rc}
+%setup -q
+
+%{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
+        src/kmplayer.desktop \
+
 #%patch0 -p1
 
 %build
 cp /usr/share/automake/config.sub admin
 
-export UNSERMAKE=/usr/share/unsermake/unsermake
+#export UNSERMAKE=/usr/share/unsermake/unsermake
 
-%{__make} -f admin/Makefile.common cvs 
+#%{__make} -f admin/Makefile.common cvs 
 
 %configure \
        --disable-rpath \
        --enable-final \
        %{?with_koffice:--enable-koffice-plugin} \
+       %{!?with_gstreamer:--without-gstreamer} \
+       %{!?with_xine:--without-xine} \
        --with-qt-libraries=%{_libdir}
 
 %{__make}
@@ -80,17 +86,18 @@ rm -rf $RPM_BUILD_ROOT
 # remove bogus translation
 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
 
-#%find_lang    %{name}         --with-kde      
+%find_lang     %{name}         --with-kde      
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-#%files -f %{name}.lang
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
+%{?with_gstreamer:%attr(755,root,root) %{_bindir}/kgstplayer}
 %attr(755,root,root) %{_bindir}/kmplayer
-%attr(755,root,root) %{_bindir}/kxineplayer
+%{?with_xine:%attr(755,root,root) %{_bindir}/kxineplayer}
+%attr(755,root,root) %{_bindir}/kxvplayer
 %{_libdir}/libkdeinit_kmplayer.la
 %attr(755,root,root) %{_libdir}/libkdeinit_kmplayer.so
 %{_libdir}/libkmplayercommon.la
@@ -112,7 +119,7 @@ rm -rf $RPM_BUILD_ROOT
 #%{_datadir}/services/pnm.protocol
 #%{_datadir}/services/rtsp.protocol
 %{_desktopdir}/kde/kmplayer.desktop
-%{_iconsdir}/[!l]*/*/apps/kmplayer.png
+%{_iconsdir}/[!l]*/*/apps/kmplayer.*
 
 %if %{with koffice}
 %files koffice
This page took 0.041675 seconds and 4 git commands to generate.