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