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