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