/[packages]/cauldron/mplayerplugin/current/SPECS/mplayerplugin.spec
ViewVC logotype

Annotation of /cauldron/mplayerplugin/current/SPECS/mplayerplugin.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81473 - (hide annotations) (download)
Wed Apr 6 17:32:17 2011 UTC (10 years, 6 months ago) by steletch
File size: 7312 byte(s)
- Clean spec file
1 steletch 81470 %define _mozillapluginpath %{_libdir}/mozilla/plugins
2     %define _mozillacomponentpath %{_libdir}/mozilla/plugins
3     %define xulrunner_version %(rpm -q --whatprovides libxulrunner --queryformat %{VERSION})
4     %define snapshot %{nil}
5    
6     %define build_3264bit 0
7     %{?_with_3264bit: %{expand: %%global build_3264bit 1}}
8     %{?_without_3264bit: %{expand: %%global build_3264bit 0}}
9     %if %{build_3264bit}
10     %define pkgext 32
11     %else
12     %define pkgext %{nil}
13     %endif
14    
15     Summary: A browser plugin to allow playing embedded movies on web pages
16     Name: mplayerplugin%{pkgext}
17     Version: 3.55
18     Release: %mkrel 5
19     License: GPLv2+
20     Group: Networking/WWW
21     URL: http://mplayerplug-in.sourceforge.net
22     Source0: http://heanet.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-%{version}.tar.bz2
23     Patch0: mplayerplugin-3.01-mime.patch
24     Patch1: mplayerplugin-3.50-32_64bit.patch
25     Patch5: mplayerplug-in-3.55-types-nomidi.patch
26     Patch6: mplayerplug-in-3.55-cvs20090908.patch
27     BuildRequires: X11-devel
28 steletch 81473 BuildRequires: mozilla-firefox-devel
29 steletch 81470 BuildRequires: xulrunner-devel
30     BuildRequires: gtk+2-devel
31     Requires: mplayer%{pkgext} >= 1.0
32 steletch 81473
33 steletch 81470 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
34    
35     %description
36     Mplayerplug-in is a Netscape/Mozilla browser plugin to allow
37     playing embedded movies on web pages.
38    
39     %prep
40     %setup -qn mplayerplug-in-%{version}
41     %patch0 -p1 -b .mime
42     %if %{build_3264bit}
43     %patch1 -p1 -b .32_64
44     %endif
45     %patch5 -p1 -b .nomidi
46     %patch6 -p1 -b .cvs
47    
48     %build
49     autoreconf -fiv
50     #(tpg) hack to include prtime.h and prtypes.h from nsrp4-devel
51     export CFLAGS="%{optflags} -I/usr/include/nspr4"
52     export CXXFLAGS=$CFLAGS
53    
54     %configure2_5x \
55     --enable-wmp \
56     --enable-qt \
57     --enable-gmp \
58     --enable-rm \
59     --enable-dvx \
60     --disable-rpath \
61     --disable-x \
62     --disable-gtk1 \
63     --enable-gtk2 \
64     --with-gecko-sdk="%{_libdir}/xulrunner-devel-%{xulrunner_version}"
65    
66     %make
67    
68     %install
69     rm -rf %{buildroot}
70     mkdir -p %{buildroot}%{_bindir} \
71     %{buildroot}%{_sysconfdir} \
72     %{buildroot}%{_mozillapluginpath} \
73     %{buildroot}%{_mozillacomponentpath}
74    
75     cat > %{buildroot}%{_sysconfdir}/mplayerplug-in%{pkgext}.conf <<EOF
76     # Enable debugging if set to 1 (default=0)
77     debug=0
78    
79     # Video output
80     vo=xv,x11
81    
82     # Audio output
83     ao=pulse,esd,alsa,oss,arts,null
84    
85     # Passes display to show output to, useful for multiple monitor setups
86     #display=[display name]
87    
88     # Tells mplayer to allow default video post processing or not (default=0)
89     #novop=1
90    
91     # Pass special video post processing
92     #vopopt=[mplayer vop options]
93    
94     # Option for rtsp streams, set to 1 when behind proxy (default=0)
95     rtsp-use-tcp=1
96    
97     # OSD Level (default=0)
98     osdlevel=1
99    
100     # When set to 1 uses the aspect of movie no matter what (default=1)
101     #prefer-aspect=0
102    
103     # If set to 1, forces mplayer to be in it's own window (default=0)
104     #noembed=0
105    
106     # If set to 1, mplayer will be launced in its own window if the url is not
107     # an embed tag (default=0)
108     #fileonly-embed=1
109    
110     # Where to store the downloaded movies
111     dload-dir=\$HOME/tmp
112    
113     # Download file before playing (default=0)
114     #download=1
115    
116     # Set to 1 if you want to keep downloaded media (default=0)
117     #keep-download=1
118    
119     # Cache Size in kB. This is the buffer size before the video plays (default=512)
120     cachesize=2048
121    
122     # Percent of file to load into cache (default=25)
123     #cache-percent=10
124    
125     # Read mime types to handle from \$HOME/{.mplayer,.mozilla}, /etc/mplayerplug-in.types
126     use-mimetypes=1
127    
128     # Set QT Speeed, use "low" for dialup, "med" (default) for DSL, "high" for more
129     #qt-speed=low
130    
131     # Enable/Disable Mpeg mime-types (default=1)
132     #enable-mpeg=0
133    
134     # Enable/Disable MP3 Support (default=1)
135     #enable-mp3=0
136    
137     # Enable/Disable Ogg mime-types (default=1)
138     #enable-ogg=0
139    
140     # Enable/Disable Smil (Synchronized Multimedia Integration Language, default=1)
141     #enable-smil=0
142    
143     # Enable/Disable Helix compatibility (avoid nphelix.so to handle its
144     # own mime types, default=1)
145     enable-helix=0
146    
147     # Enable/Disable Windows Media Support (default=1)
148     #enable-wmp=0
149    
150     # Enable/Disable QuickTime Support (default=1)
151     #enable-qt=0
152    
153     # Enable/Disable RealMedia Support (default=1)
154     #enable-rm=0
155    
156     # Enable PLS Support (default=1, mime type: audio/x-scpls, Shoutcast Playlist)
157     #enable-pls=0
158    
159     # Enable/Disable midi Support (default=1)
160     enable-midi=0
161    
162     # Enable/Disable gmp Support (default=1,
163     # mime type: application/x-google-vlc-plugin, Google Video)
164     #enable-gmp=0
165    
166     # For Live.com video behind a proxy
167     #rtsp-use-tcp=0
168    
169     # Black background
170     #black-background=0
171    
172     # Disable media cache
173     #nomediacache=0
174    
175     # Skip displaying some frames (default=0)
176     #framedrop=0
177    
178     # Gradually adjusts the A/V sync based on audio delay measurements
179     #autosync=0
180    
181     # Maximum A-V sync correction per frame
182     #mc=0
183    
184     # User-Agent
185     #user-agent=NSPlayer
186    
187     # Disable mouse button press/release input (default=1)
188     #nomouseinput=0
189    
190     # Disable reading key events from standard input (default=1)
191     #noconsolecontrols=1
192    
193     # Send cookies when making HTTP request
194     #cookies=1
195    
196     # When set to 1 disables the pausing of video files when they are
197     # covered/hidden in the browser (default=0)
198     nopauseonhide=1
199    
200     # When set to 0, media will not start until play is clicked (default=1)
201     #autostart=0
202    
203     # Option showing the logo, 0 = no logo shown (default=1)
204     #slowlogo=0
205    
206     # Option showing the time in the progress bar, 0 = no time shown (default=1)
207     showtime=1
208    
209     # Option showing the media progress bar, 0 = not shown (default=1)
210     #showtracker=0
211    
212     # When set to 1, no status messages are shown (default=0)
213     #hidestatus=1
214     EOF
215    
216     install -m 755 mplayerplug-in.so %{buildroot}%{_mozillapluginpath}
217     install -m 644 mplayerplug-in.xpt %{buildroot}%{_mozillacomponentpath}
218    
219     install -m 755 mplayerplug-in-wmp.so %{buildroot}%{_mozillapluginpath}
220     install -m 644 mplayerplug-in-wmp.xpt %{buildroot}%{_mozillacomponentpath}
221    
222     install -m 755 mplayerplug-in-qt.so %{buildroot}%{_mozillapluginpath}
223     install -m 755 mplayerplug-in-qt.xpt %{buildroot}%{_mozillacomponentpath}
224    
225     install -m 755 mplayerplug-in-rm.so %{buildroot}%{_mozillapluginpath}
226     install -m 755 mplayerplug-in-rm.xpt %{buildroot}%{_mozillacomponentpath}
227    
228     install -m 755 mplayerplug-in-gmp.so %{buildroot}%{_mozillapluginpath}
229     install -m 755 mplayerplug-in-gmp.xpt %{buildroot}%{_mozillacomponentpath}
230    
231     install -m 755 mplayerplug-in-dvx.so %{buildroot}%{_mozillapluginpath}
232     install -m 755 mplayerplug-in-dvx.xpt %{buildroot}%{_mozillacomponentpath}
233    
234     install -m 644 mplayerplug-in.types %{buildroot}%{_sysconfdir}
235    
236     # install translations
237     %makeinstall_std -C po DESTDIR=%{buildroot}
238     %find_lang mplayerplug-in
239     %if %{build_3264bit}
240     mv -f %{buildroot}%{_sysconfdir}/mplayerplug-in.types \
241     %{buildroot}%{_sysconfdir}/mplayerplug-in%{pkgext}.types
242     %endif
243    
244     %clean
245     rm -rf %{buildroot}
246    
247     %files -f mplayerplug-in.lang
248     %defattr(-,root,root)
249     %doc ChangeLog INSTALL README
250     %attr(644,root,root) %config(noreplace) %{_sysconfdir}/mplayerplug-in%{pkgext}.conf
251     %attr(644,root,root) %config(noreplace) %{_sysconfdir}/mplayerplug-in%{pkgext}.types
252     %{_mozillapluginpath}/mplayerplug-in.so
253     %{_mozillapluginpath}/mplayerplug-in-wmp.so
254     %{_mozillapluginpath}/mplayerplug-in-qt.so
255     %{_mozillapluginpath}/mplayerplug-in-rm.so
256     %{_mozillapluginpath}/mplayerplug-in-gmp.so
257     %{_mozillapluginpath}/mplayerplug-in-dvx.so
258     %{_mozillacomponentpath}/mplayerplug-in.xpt
259     %{_mozillacomponentpath}/mplayerplug-in-wmp.xpt
260     %{_mozillacomponentpath}/mplayerplug-in-qt.xpt
261     %{_mozillacomponentpath}/mplayerplug-in-rm.xpt
262     %{_mozillacomponentpath}/mplayerplug-in-gmp.xpt
263     %{_mozillacomponentpath}/mplayerplug-in-dvx.xpt

  ViewVC Help
Powered by ViewVC 1.1.28