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