Sophie

Sophie

distrib > Mageia > 6 > i586 > media > core-release-src > by-pkgid > 4541842a2a0e89f5d2d23cdeb1eb4440 > files > 3

xplayer-1.2.2-1.mga6.src.rpm

%define major		0
%define gi_major	1.0
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d
%define girname		%mklibname %{name}-gir %{gi_major}

%define build_zeitgeist_plugin 1
Name:           xplayer
Version:        1.2.2
Release:        %mkrel 1
Summary:        Generic media player
License:        GPL-2.0+ and LGPL-2.1+
Group:          Video/Players
Url:            https://github.com/linuxmint/xplayer
Source:         https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         xplayer-lang.patch
BuildRequires:  gcc-c++
BuildRequires:  gnome-common
BuildRequires:  gstreamer1.0-plugins-good >= 0.11.93
# For gst-inspect tool
BuildRequires:  gstreamer1.0-tools >= 0.11.93
BuildRequires:  lirc-devel
BuildRequires:  vala >= 0.14.1
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(%{name}-plparser)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(clutter-1.0) >= 1.10.0
BuildRequires:  pkgconfig(clutter-gtk-1.0) >= 1.0.2
BuildRequires:  pkgconfig(dbus-glib-1) >= 0.82
BuildRequires:  pkgconfig(glib-2.0) >= 2.33.0
BuildRequires:  pkgconfig(grilo-0.3)
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gstreamer-1.0) >= 0.11.93
BuildRequires:  pkgconfig(gstreamer-plugins-bad-1.0) >= 1.0.2
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0) >= 0.11.93
BuildRequires:  pkgconfig(gstreamer-tag-1.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.5.2
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(iso-codes)
BuildRequires:  pkgconfig(libepc-ui-1.0) > 0.4.0
BuildRequires:  pkgconfig(libpeas-1.0) >= 1.1.0
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6.0
BuildRequires:  pkgconfig(pygobject-3.0) >= 2.90.3
BuildRequires:  pkgconfig(shared-mime-info)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xapp)
# Needed for scaletempo (boo#810378, boo#809854).
Requires:       gstreamer1.0-plugins-bad
# We want a useful set of plugins.
Requires:       gstreamer1.0-plugins-base
Requires:       gstreamer1.0-plugins-good
Requires:       iso-codes
Requires:	grilo-plugins
Requires:	gstreamer1.0-soundtouch
Requires:	%arch_tagged gstreamer1(element-scaletempo)
Requires:	gstreamer1.0-soup
Recommends:	gstreamer1.0-resindvd
Recommends:	gstreamer1.0-a52dec
Recommends:	gstreamer1.0-libav
Recommends:     %{name}-lang
Recommends:     %{name}-plugins
Suggests:       %{name}-browser-plugin
Suggests:       gnome-dvb-daemon
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(clutter-gst-3.0) >= 2.99.2
# Required for cluttersink.
Requires:       gstreamer1.0-gstclutter3
BuildRequires:  itstool

%if %{build_zeitgeist_plugin}
BuildRequires:  pkgconfig(zeitgeist-2.0) >= 0.9.12
%else
Obsoletes:      %{name}-plugin-zeitgeist <= %{version}
%endif

%description
xplayer is a media player based on GStreamer for the Cinnamon
desktop and others. It features a playlist, a full-screen mode,
seek and volume controls, and complete keyboard navigation.

%package plugins
Summary:        Plugins for xplayer media player
Group:          Video/Players
Requires:       %{name} = %{version}
# Brasero plugin.
Recommends:     brasero
# BBC iPlayer plugin.
Recommends:     python-beautifulsoup
Recommends:     python-httplib2
# Gromit Annotation plugin.
Suggests:       gromit

%description plugins
xplayer is a media player based on GStreamer for the Cinnamon
desktop and others. It features a playlist, a full-screen mode,
seek and volume controls, and complete keyboard navigation.

This package includes plugins for xplayer, to add advanced features.

%if %{build_zeitgeist_plugin}
%package plugin-zeitgeist
Summary:        Plugins for xplayer media player -- Zeitgeist Support
Group:          Video/Players
Requires:       %{name} = %{version}
Supplements:    packageand(%{name}:zeitgeist)

%description plugin-zeitgeist
xplayer is a media player based on GStreamer for the Cinnamon
desktop and others. It features a playlist, a full-screen mode,
seek and volume controls, and complete keyboard navigation.

This package includes the Zeitgeist plugin for xplayer.
%endif

%package browser-plugin
Summary:        Browser Plugin Based on xplayer media player
Group:          Video/Players
Requires:       %{name} = %{version}
Supplements:    packageand(%{name}:browser(npapi))

%description browser-plugin
xplayer is a media player based on GStreamer for the Cinnamon
desktop and others. It features a playlist, a full-screen mode,
seek and volume controls, and complete keyboard navigation.

Apart from a movie player, it also includes a Mozilla plugin.

This package does not include the Windows Media (gmp) browser
plugin, nor the Flash video (vegas) plugin.

%package browser-plugin-gmp
Summary:        Windows Media Browser Plugin Based on xplayer media player
Group:          Video/Players
Requires:       %{name} = %{version}
Requires:       %{name}-browser-plugin = %{version}
Supplements:    packageand(%{name}:browser(npapi))

%description browser-plugin-gmp
xplayer is a media player based on GStreamer for the Cinnamon
desktop and others. It features a playlist, a full-screen mode,
seek and volume controls, and complete keyboard navigation.

This package includes only the Windows Media (gmp) browser plugin.

%package browser-plugin-vegas
Summary:        Flash video Browser Plugin Based on xplayer media player
Group:          Video/Players
Requires:       %{name} = %{version}
Requires:       %{name}-browser-plugin = %{version}
Enhances:       packageand(%{name}:browser(npapi))

%description browser-plugin-vegas
xplayer is a media player based on GStreamer for the Cinnamon
desktop and others. It features a playlist, a full-screen mode,
seek and volume controls, and complete keyboard navigation.

This package includes only the Flash video (vegas) browser plugin.

%package devel
Summary:        Development files for xplayer media player
Group:          System/Libraries
Requires:       %{name} = %{version}

%description devel
xplayer is a media player based on GStreamer for the Cinnamon
desktop and others. It features a playlist, a full-screen mode,
seek and volume controls, and complete keyboard navigation.

This package contains files for development.

%lang_package

%prep
%autosetup -p1


%build
NOCONFIGURE=1 gnome-autogen.sh
export BROWSER_PLUGIN_DIR=%{_libdir}/browser-plugins/
%configure2_5x \
  --disable-static
%make

%install
%make_install
# Remove SWF (#72417) and any Real (#72985) MIME types.
sed -i ':1;s/^\(MimeType=.*\);[^;]*\(real\|shockwave-flash\)[^;]*/\1/;t1' \
  %{buildroot}%{_datadir}/applications/%{name}.desktop
%find_lang %{name} --with-gnome --with-help
find %{buildroot} -type f -name "*.la" -delete -print
rm -rf %{buildroot}/%{_libdir}/%{name}/plugins/grilo/

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/%{name}*
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/org.x.player.enums.xml
%{_datadir}/glib-2.0/schemas/org.x.player.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{name}*.*
%{_datadir}/icons/hicolor/*/devices/%{name}*.*
%{_datadir}/icons/hicolor/*/actions/%{name}*.*
%dir %{_datadir}/thumbnailers/
%{_datadir}/thumbnailers/%{name}.thumbnailer
%{_datadir}/%{name}/
%{_mandir}/man?/%{name}*.*
# Own directories for plugins.
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/plugins/
# Be careful here: libdir contains plugins while libexecdir
# contains a small utility for the main package.
%if "%{_libdir}" != "%{_libexecdir}"
%dir %{_libexecdir}/%{name}/
%endif
%{_libexecdir}/%{name}/%{name}-bugreport.py*
%{_libdir}/lib%{name}.so.*
%{_libdir}/girepository-1.0/Xplayer-1.0.typelib

%files plugins
# Explicitly list plugins.
%{_libdir}/%{name}/plugins/apple-trailers/
%{_libdir}/%{name}/plugins/autoload-subtitles/
%{_libdir}/%{name}/plugins/brasero-disc-recorder/
%{_libdir}/%{name}/plugins/chapters/
%{_libdir}/%{name}/plugins/dbus/
#%{_libdir}/%{name}/plugins/grilo/
%{_libdir}/%{name}/plugins/gromit/
%{_libdir}/%{name}/plugins/im-status/
%{_libdir}/%{name}/plugins/lirc/
%{_libdir}/%{name}/plugins/media-player-keys/
%{_libdir}/%{name}/plugins/ontop/
%{_libdir}/%{name}/plugins/opensubtitles/
%{_libdir}/%{name}/plugins/properties/
%{_libdir}/%{name}/plugins/pythonconsole/
%{_libdir}/%{name}/plugins/recent/
%{_libdir}/%{name}/plugins/rotation/
%{_libdir}/%{name}/plugins/screensaver/
%{_libdir}/%{name}/plugins/screenshot/
%{_libdir}/%{name}/plugins/skipto/
%{_libdir}/%{name}/plugins/vimeo/
%{_datadir}/glib-2.0/schemas/org.x.player.plugins.opensubtitles.gschema.xml
%{_datadir}/glib-2.0/schemas/org.x.player.plugins.pythonconsole.gschema.xml

%if %{build_zeitgeist_plugin}
%files plugin-zeitgeist
%{_libdir}/%{name}/plugins/zeitgeist-dp/
%endif

%files browser-plugin
%doc browser-plugin/README.browser-plugin
%{_libexecdir}/%{name}-plugin-viewer
%{_libdir}/browser-plugins/lib%{name}-cone-plugin*
%{_libdir}/browser-plugins/lib%{name}-mully-plugin*
%{_libdir}/browser-plugins/lib%{name}-narrowspace-plugin*

%files browser-plugin-gmp
%{_libdir}/browser-plugins/lib%{name}-gmp-plugin*

%files browser-plugin-vegas
%{_libdir}/browser-plugins/lib%{name}-vegas-plugin*

%files devel
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gir-1.0/*.gir


%changelog
* Sun Jan 29 2017 joequant <joequant> 1.2.2-1.mga6
+ Revision: 1083915
- fix build
- upgrade to 1.2.2

* Sat Jun 25 2016 joequant <joequant> 1.0.6-3.mga6
+ Revision: 1037640
- fix string to pass tests
- modify arabic string to pass tests
- fix lang patches
- imported package xplayer