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