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