Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
KDE:KDE3
kde3-kmplayer
kde3-kmplayer.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kde3-kmplayer.spec of Package kde3-kmplayer
%define _prefix /opt/kde3 %define _sysconfdir /etc%{_prefix} # arts support: disabled by default unless --with arts %if %{?_with_arts:1}0 %define with_arts 1 %endif # gstreamer backend: disabled by default unless --with gstreamer %if %{?_with_gstreamer:1}0 %define with_gstreamer 1 %endif # xine backend: enabled by default unless --without xine %if %{?!_without_xine:1}0 %define with_xine 1 %endif # npp backend: enabled by default unless --without npp %if %{?!_without_npp:1}0 %define with_npp 1 %endif # koffice plugin: disabled by default unless --with koffice %if %{?!_without_npp:1}0 %define with_koffice 1 %endif Name: kde3-kmplayer Version: 0.10.0c Release: 0 Summary: Video Player Plugin for Konqueror and basic MPlayer/Xine Frontend for KDE Source: http://kmplayer.kde.org/pkgs/kmplayer-%{version}.tar.bz2 Patch1: kmplayer-mime-add-flv.patch Patch2: kmplayer-update-configurein.patch Patch3: kmplayer-trinity-xine12-fix.diff Patch4: kmplayer-trinity-parallel.patch URL: http://kmplayer.kde.org/ Group: Productivity/Multimedia/Video/Players License: GPL-2.0 BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: kdelibs3-devel kdebase3-devel BuildRequires: autoconf automake libtool update-desktop-files BuildRequires: intltool gettext gettext-devel perl-XML-Parser BuildRequires: fribidi-devel enca-devel BuildRequires: gcc-c++ glibc-devel make pkgconfig BuildRequires: cairo-devel BuildRequires: xorg-x11-util-devel libXv-devel %if %{?with_xine:1}0 BuildRequires: pkgconfig(libxine) %endif %if %{?with_gstreamer:1}0 BuildRequires: gstreamer >= 0.10 BuildRequires: gstreamer-devel gstreamer-plugins gstreamer-plugins-devel %endif %if %{?with_arts:1}0 BuildRequires: arts-devel %endif %if %{?with_npp:1}0 BuildRequires: mozilla-nspr-devel libdbus-1-qt3-0-devel dbus-1-devel gtk2-devel BuildRequires: dbus-1-glib-devel %endif BuildRequires: libexpat-devel Obsoletes: kmplayer-beta < 0.10.1 Recommends: MPlayer Recommends: libxine1 %description The KMPlayer KPart plugin for Konqueror mimics QuickTime, MS Media Player and RealPlayer plugin browser plugins. Available options to rebuild this package: --without arts: disable aRts KDE sound daemon support (default: disabled) --without gstreamer: disable gstreamer media framework support (default: disabled) --without xine: disable xine multimedia backend support (default: enabled) --without koffice: disable building the koffice plugin (default: disabled) --without npp: disable building Netscape plugin support (default: enabled) %prep %setup -q -n "kmplayer-%{version}" %patch -P 1 %patch -P 2 %patch -P 3 -p1 %patch -P 4 -p1 %build . /etc/opt/kde3/common_options update_admin echo arts: %{?with_arts:YES}%{?!with_arts:NO} echo xine: %{?with_xine:YES}%{?!with_xine:NO} echo gstreamer: %{?with_gstreamer:YES}%{?!with_gstreamer:NO} echo npplayer: %{?with_npp:YES}%{?!with_npp:NO} echo koffice: %{?with_koffice:YES}%{?!with_koffice:NO} export CXXFLAGS="$CXXFLAGS -Wl,--add-needed -fpermissive" export LIBS="$LIBS -Wl,--add-needed" PKG_CONFIG=/usr/bin/pkg-config \ PKGCONFIGFOUND=/usr/bin/pkg-config \ #NSPR_CONFIG=/usr/bin/nspr-config \ #NSPRCONFIGFOUND=/usr/bin/nspr-config \ #DBUS_CFLAGS=$(pkg-config dbus-1 --cflags) \ #DBUS_LIBS="$(pkg-config dbus-1 --libs) -ldbus-qt-1 -L/usr/lib/qt3/%{_lib} -lqt-mt" \ #NSPR_CFLAGS=$(pkg-config nspr --cflags) \ #NSPR_LIBS=$(pkg-config nspr --libs) \ XMKMF="/usr/bin/xmkmf" \ sed -i 's|-ge 1000000|-ge "$vers"|g' configure ./configure $configkde \ --enable-expat \ --enable-cairo \ --%{?with_koffice:enable}%{?!with_koffice:disable}-koffice-plugin \ --with%{?!with_arts:out}-arts \ --with%{?!with_xine:out}-xine \ --with%{?!with_gstreamer:out}-gstreamer \ %if %{?with_npp:1}0 --enable-nspr --enable-npplayer %else --disable-nspr --disable-npplayer %endif %__make %{?_smp_mflags} || %__make %install . /etc/opt/kde3/common_options %makeinstall # whatever this is supposed to be... %__rm -rf "%{buildroot}%{_datadir}/locale/xx" # remove, conflicts with kdelibs 3.5.x: %__rm -f "%{buildroot}%{_datadir}/mimelnk/application/x-mplayer2.desktop" %__rm -f "%{buildroot}%{_libdir}"/libkdeinit_kmplayer.la %if %{?with_npp:1}0 # When the npp plugin is included, add the proper configuration defaults # with the standard libflashplayer.so location on openSUSE. # See http://mikearthur.co.uk/?p=171 cat<<EOF >> "%{buildroot}%{_datadir}/config/kmplayerrc" [application/x-shockwave-flash] player=npp plugin=%{_usr}/%{_lib}/browser-plugins/libflashplayer.so EOF %endif %suse_update_desktop_file -r "kmplayer" KDE AudioVideo Player Video kde_post_install %find_lang kmplayer %files -f "kmplayer.lang" %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING* NEWS README TODO %{_bindir}/kmplayer %{_bindir}/kxvplayer %{?with_npp:%{_bindir}/knpplayer} %{?with_gstreamer:%{_bindir}/kgstplayer} %{?with_xine:%{_bindir}/kxineplayer} %{_libdir}/libkdeinit_kmplayer.so %{_libdir}/libkmplayercommon.so %{_libdir}/libkmplayercommon.la %{_libdir}/kde3/kmplayer.so %{_libdir}/kde3/kmplayer.la %{_libdir}/kde3/libkmplayerpart.so %{_libdir}/kde3/libkmplayerpart.la %{_datadir}/applications/kde/kmplayer.desktop %{_datadir}/apps/kmplayer %config %{_datadir}/config/kmplayerrc %{_datadir}/icons/*/*/apps/kmplayer.* %{_datadir}/mimelnk/application/x-kmplayer.desktop %{_datadir}/mimelnk/video/x-ms-wmp.desktop %{_datadir}/services/kmplayer_part.desktop %dir %{_datadir}/locale/br %dir %{_datadir}/locale/br/LC_MESSAGES %dir %{_datadir}/locale/bs %dir %{_datadir}/locale/bs/LC_MESSAGES %dir %{_datadir}/locale/csb %dir %{_datadir}/locale/csb/LC_MESSAGES %dir %{_datadir}/locale/ka %dir %{_datadir}/locale/ka/LC_MESSAGES %dir %{_datadir}/locale/mt %dir %{_datadir}/locale/mt/LC_MESSAGES %dir %{_datadir}/locale/cy %dir %{_datadir}/locale/cy/LC_MESSAGES %dir %{_datadir}/locale/ga %dir %{_datadir}/locale/ga/LC_MESSAGES %dir %{_datadir}/locale/rw %dir %{_datadir}/locale/rw/LC_MESSAGES %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor