+#
+# Todo:
+# - replace mozilla-* plugins with browser-plugins
+# - add the licence agreement mechanism
+#
%define _name realplay
Summary: RealPlayer - RealAudio and RealVideo player
Summary(pl): RealPlayer - odtwarzacz RealAudio i RealVideo
Name: RealPlayer
-Version: 10.0.3
-Release: 1
+%ifarch %{ix86}
+%define minor_ver 6
+%else
+%define minor_ver 5
+%endif
+Version: 10.0.%{minor_ver}
+Release: 0.1
License: Helix DNA Technology Binary Research Use License (not distributable, see LICENSE)
Group: X11/Applications/Multimedia
# download from https://helixcommunity.org/project/showfiles.php?group_id=154
%ifarch %{ix86}
-Source0: https://helixcommunity.org/download.php/964/%{name}-%{version}.748-20050223.i586.rpm
-# NoSource0-md5: cea221a981b26c27e6e50a58aa285011
+Source0: https://helixcommunity.org/download.php/1589/%{name}-%{version}.776-20050929.i586.rpm
+# NoSource0-md5: 870215a8ed4f50c76bbc42212511e8e7
NoSource: 0
%endif
%ifarch ppc
-Source1: https://helixcommunity.org/download.php/973/realplay-%{version}.748-linux-2.2-powerpc.bin
-# NoSource1-md5: f7ab7ddb4f7f53df0f16445c6df4caa2
+Source1: https://helixcommunity.org/download.php/1346/realplay-%{version}.756-linux-2.2-libc6-gcc32-powerpc.bin
+# NoSource1-md5: d87d35617f07ab9435341f37229dd3ae
NoSource: 1
%endif
URL: http://www.real.com/
BuildRequires: cpio
BuildRequires: sed >= 4.0
+Provides: helix-core
Requires: sed >= 4.0
Obsoletes: G2player
+Obsoletes: RealPlayer-gnome
Conflicts: realplayer
ExclusiveArch: %{ix86} ppc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description -n mozilla-firefox-plugin-%{name} -l pl
Wtyczka Mozilli RealPlayer
-%package gnome
-Summary: GNOME data for Realplayer
-Summary(pl): Dane Realplayera dla GNOME
-Group: X11/Applications/Multimedia
-Requires: %{name} = %{version}-%{release}
-Requires: gnome-libs
-
-%description gnome
-Mime information and application registry data for GNOME.
-
-%description gnome -l pl
-Dane MIME oraz wpisy do rejestru aplikacji dla GNOME.
-
%prep
%setup -q -c -T
%ifarch %{ix86}
$RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/plugins \
$RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{_name},%{_datadir}/locale} \
$RPM_BUILD_ROOT%{_iconsdir}/hicolor/{48x48,128x128}/mimetypes \
- $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48,128x128}/apps \
- $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
+ $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48,128x128}/apps
cp -a codecs common plugins lib $RPM_BUILD_ROOT%{_libdir}/%{_name}
install realplay* $RPM_BUILD_ROOT%{_libdir}/%{_name}
ln -sf ../lib/%{_name}/realplay $RPM_BUILD_ROOT%{_bindir}/realplay
-install share/realplay.applications $RPM_BUILD_ROOT%{_datadir}/application-registry
-install share/realplay.mime $RPM_BUILD_ROOT%{_datadir}/mime-info
-install share/realplay.keys $RPM_BUILD_ROOT%{_datadir}/mime-info
-
install share/realplay.desktop $RPM_BUILD_ROOT%{_desktopdir}
install -d $RPM_BUILD_ROOT%{_libdir}/%{_name}/share/{default,realplay}
install share/default/* $RPM_BUILD_ROOT%{_libdir}/%{_name}/share/default
install share/*.html $RPM_BUILD_ROOT%{_libdir}/%{_name}/share
install share/*.css $RPM_BUILD_ROOT%{_libdir}/%{_name}/share
+
%{__sed} -i -e 's&#[ \t]*HELIX_LIBS[ \t]*=.*$&HELIX_LIBS=%{_libdir}/%{_name} ; export HELIX_LIBS&' \
$RPM_BUILD_ROOT%{_libdir}/realplay/realplay
%{_iconsdir}/hicolor/*/*/*.png
%{_desktopdir}/*.desktop
-%files gnome
-%defattr(644,root,root,755)
-%{_datadir}/application-registry/*.applications
-%{_datadir}/mime-info/*
-
%files -n mozilla-plugin-%{name}
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/mozilla/plugins/*.so