]> git.pld-linux.org Git - packages/RealPlayer.git/blame - RealPlayer.spec
- update ix86 to 10.0.6, ppc to 10.0.5 (needs md5 update), added todo
[packages/RealPlayer.git] / RealPlayer.spec
CommitLineData
a028da92 1#
2# Todo:
3# - update the ppc md5sum (!)
4# - replace mozilla-* plugins with browser-plugins
5# - add the licence agreement mechanism
6#
f90f6c15 7%define _name realplay
98414f97 8Summary: RealPlayer - RealAudio and RealVideo player
f90f6c15 9Summary(pl): RealPlayer - odtwarzacz RealAudio i RealVideo
10Name: RealPlayer
a028da92 11%ifarch %{ix86}
12%define minor_ver 6
13%else
14%define minor_ver 5
15%endif
16Version: 10.0.%{minor_ver}
17Release: 0.1
f90f6c15 18License: Helix DNA Technology Binary Research Use License (not distributable, see LICENSE)
19Group: X11/Applications/Multimedia
23c0c990
JB
20# download from https://helixcommunity.org/project/showfiles.php?group_id=154
21%ifarch %{ix86}
a028da92 22Source0: https://helixcommunity.org/download.php/1589/%{name}-%{version}.776-20050929.i586.rpm
23# NoSource0-md5: 870215a8ed4f50c76bbc42212511e8e7
f90f6c15 24NoSource: 0
23c0c990
JB
25%endif
26%ifarch ppc
a028da92 27Source1: https://helixcommunity.org/download.php/1346/realplay-%{version}.756-linux-2.2-libc6-gcc32-powerpc.bin
f93c7cf4 28# NoSource1-md5: 73ba2410e6a6c1d6e76b493419736c93
23c0c990
JB
29NoSource: 1
30%endif
a26fe8d8 31URL: http://www.real.com/
39c71e17 32BuildRequires: cpio
d784466a 33BuildRequires: sed >= 4.0
39c71e17 34Requires: sed >= 4.0
a26fe8d8 35Obsoletes: G2player
d6ee24cf 36Obsoletes: RealPlayer-gnome
a26fe8d8 37Conflicts: realplayer
23c0c990 38ExclusiveArch: %{ix86} ppc
a26fe8d8 39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
f90f6c15 40
41%description
42Streaming audio/video/flash/pix/text player.
43
44%description -l pl
45Odtwarzacz strumieni audio/video/flash/pix/tekst.
46
47%package -n mozilla-plugin-%{name}
48Summary: RealPlayer Mozilla plugin
49Summary(pl): Wtyczka Mozilli RealPlayer
50Group: X11/Applications/Multimedia
a26fe8d8
JB
51PreReq: mozilla-embedded
52Requires: %{name} = %{version}-%{release}
f90f6c15 53
54%description -n mozilla-plugin-%{name}
55RealPlayer Mozilla plugin
56
57%description -n mozilla-plugin-%{name} -l pl
58Wtyczka Mozilli RealPlayer
59
60%package -n mozilla-firefox-plugin-%{name}
3b5a0f61 61Summary: RealPlayer Mozilla Firefox plugin
62Summary(pl): Wtyczka Mozilli Firefox RealPlayer
63Group: X11/Applications/Multimedia
a26fe8d8
JB
64PreReq: mozilla-firefox
65Requires: %{name} = %{version}-%{release}
f90f6c15 66
67%description -n mozilla-firefox-plugin-%{name}
68RealPlayer Mozilla plugin
69
70%description -n mozilla-firefox-plugin-%{name} -l pl
71Wtyczka Mozilli RealPlayer
72
f90f6c15 73%prep
74%setup -q -c -T
23c0c990 75%ifarch %{ix86}
39c71e17 76rpm2cpio %{SOURCE0} | cpio -dimu
df580e77 77mv -f usr/local/RealPlayer/* .
23c0c990
JB
78%endif
79%ifarch ppc
c2511e91 80dd if=%{SOURCE1} bs=1 skip=158895 | tar xjf -
23c0c990 81%endif
f90f6c15 82
83%install
84rm -rf $RPM_BUILD_ROOT
85install -d $RPM_BUILD_ROOT%{_desktopdir} \
86 $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins \
87 $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/plugins \
39c71e17 88 $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{_name},%{_datadir}/locale} \
f90f6c15 89 $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{48x48,128x128}/mimetypes \
d6ee24cf 90 $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48,128x128}/apps
f90f6c15 91
92cp -a codecs common plugins lib $RPM_BUILD_ROOT%{_libdir}/%{_name}
93
94icons="mime-application-generic \
95mime-application-ogg \
96mime-application-ram \
97mime-application-rpm \
98mime-application-smil \
99mime-audio-aiff \
100mime-audio-au \
101mime-audio-generic \
102mime-audio-mp3 \
103mime-audio-mp4 \
104mime-audio-ogg \
105mime-audio-ra \
106mime-audio-wav \
107mime-text-realtext \
108mime-video-avi \
109mime-video-generic \
110mime-video-mov \
111mime-video-ogg \
112mime-video-rv \
113mime-video-swf"
114
115cd share/icons
116for i in $icons;
117do
118install ${i}_48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/mimetypes/${i}.png
119# SIC! there is no 192 size defined in hicolor, therefore use 128
120install ${i}_192x192.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/128x128/mimetypes/${i}.png
121done
122install realplay_16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/realplay.png
123install realplay_32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/realplay.png
124install realplay_48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/realplay.png
125install realplay_192x192.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/128x128/apps/realplay.png
126cd -
127
39c71e17 128cp -rf share/locale/* $RPM_BUILD_ROOT%{_datadir}/locale
f90f6c15 129
98414f97
KK
130install mozilla/*.{so,xpt} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
131install mozilla/*.{so,xpt} $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/plugins
f90f6c15 132
3b5a0f61 133install realplay* $RPM_BUILD_ROOT%{_libdir}/%{_name}
f90f6c15 134ln -sf ../lib/%{_name}/realplay $RPM_BUILD_ROOT%{_bindir}/realplay
135
f90f6c15 136install share/realplay.desktop $RPM_BUILD_ROOT%{_desktopdir}
f90f6c15 137
296bac0a 138install -d $RPM_BUILD_ROOT%{_libdir}/%{_name}/share/{default,realplay}
f90f6c15 139
296bac0a 140install share/realplay/* $RPM_BUILD_ROOT%{_libdir}/%{_name}/share/realplay
f90f6c15 141install share/default/* $RPM_BUILD_ROOT%{_libdir}/%{_name}/share/default
142install share/*.html $RPM_BUILD_ROOT%{_libdir}/%{_name}/share
143install share/*.css $RPM_BUILD_ROOT%{_libdir}/%{_name}/share
a028da92 144
8c77c61a 145%{__sed} -i -e 's&#[ \t]*HELIX_LIBS[ \t]*=.*$&HELIX_LIBS=%{_libdir}/%{_name} ; export HELIX_LIBS&' \
296bac0a 146 $RPM_BUILD_ROOT%{_libdir}/realplay/realplay
f90f6c15 147
ccb7ac22
JB
148# "player" and "widget" domains
149%find_lang %{name} --all-name
f90f6c15 150
151%clean
152rm -rf $RPM_BUILD_ROOT
153
489205c4 154%post
155umask 022
156[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
157
158%postun
159umask 022
160[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
161
ccb7ac22 162%files -f %{name}.lang
f90f6c15 163%defattr(644,root,root,755)
164%doc LICENSE README
165%attr(755,root,root) %{_bindir}/realplay
166%dir %{_libdir}/%{_name}
167%dir %{_libdir}/%{_name}/codecs
f90f6c15 168%attr(755,root,root) %{_libdir}/%{_name}/codecs/*.so*
ccb7ac22 169%dir %{_libdir}/%{_name}/common
f90f6c15 170%attr(755,root,root) %{_libdir}/%{_name}/common/*.so*
ccb7ac22 171%dir %{_libdir}/%{_name}/lib
f90f6c15 172%attr(755,root,root) %{_libdir}/%{_name}/lib/*.so*
ccb7ac22 173%dir %{_libdir}/%{_name}/plugins
f90f6c15 174%attr(755,root,root) %{_libdir}/%{_name}/plugins/*.so*
296bac0a 175%attr(755,root,root) %{_libdir}/%{_name}/realplay
176%attr(755,root,root) %{_libdir}/%{_name}/realplay.bin
177
f90f6c15 178%{_libdir}/%{_name}/share
296bac0a 179
f90f6c15 180%{_iconsdir}/hicolor/*/*/*.png
181%{_desktopdir}/*.desktop
182
f90f6c15 183%files -n mozilla-plugin-%{name}
184%defattr(644,root,root,755)
ccb7ac22
JB
185%attr(755,root,root) %{_libdir}/mozilla/plugins/*.so
186%{_libdir}/mozilla/plugins/*.xpt
f90f6c15 187
188%files -n mozilla-firefox-plugin-%{name}
189%defattr(644,root,root,755)
ccb7ac22
JB
190%attr(755,root,root) %{_libdir}/mozilla-firefox/plugins/*.so
191%{_libdir}/mozilla-firefox/plugins/*.xpt
This page took 0.093436 seconds and 4 git commands to generate.