source: projects/specs/trunk/g/gnome-mplayer/gnome-mplayer-vl.spec @ 3511

Revision 3511, 14.0 KB checked in by munepi, 13 years ago (diff)

updated gnome-mplayer-vl.spec, gecko-mediaplayer-vl.spec

Line 
1#TODO: Nautilus extention
2%define with_nautilus 0
3%define with_my_japo 1
4%define svnrevision 1989
5%define betaversion beta
6
7%define GNOME_MPLAYER_BIN %{_libexecdir}/%{name}
8
9Name:           gnome-mplayer
10Version:        1.0.3
11Release:        1%{?betaversion:.%betaversion}%{?svnrevision:.svn%svnrevision}%{?_dist_release}
12Summary:        An MPlayer GUI, a full-featured binary
13Summary(ja):    高機能な MPlayer のグラフィカルユーザーインターフェース
14Group:          Applications/Multimedia
15License:        GPLv2+
16URL:            http://kdekorte.googlepages.com/gnomemplayer
17Source0:        http://gnome-mplayer.googlecode.com/files/%{name}-%{version}%{?betaversion:%betaversion}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz}
18Source10:       gnome-mplayer-snapshot.sh
19Source50:       gnome-mplayer.sh.in
20
21## vine
22%if %{with_my_japo}
23Source100:      gnome-mplayer-1.0.3beta.svn1989-ja.po
24%endif
25
26BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
27
28BuildRequires:  alsa-lib-devel
29BuildRequires:  pulseaudio-libs-devel
30BuildRequires:  dbus-glib-devel
31BuildRequires:  desktop-file-utils
32BuildRequires:  GConf2-devel
33BuildRequires:  gettext
34BuildRequires:  glib2-devel
35BuildRequires:  gtk2-devel
36#BuildRequires:  libcurl-devel
37BuildRequires:  curl-devel
38BuildRequires:  libgpod-devel
39%if %{?_dist_release} != "vl5"
40BuildRequires:  libmusicbrainz3-devel
41%endif
42#BuildRequires:  libmusicbrainz-devel
43BuildRequires:  libnotify-devel
44BuildRequires:  libXScrnSaver-devel
45BuildRequires:  gnome-power-manager
46
47Requires:       gvfs-fuse
48Requires:       gnome-power-manager
49#Requires:       mencoder
50#Requires:       self-build-mplayer
51
52Requires(pre):  GConf2
53Requires(post): GConf2
54Requires(preun): GConf2
55
56Distribution:   Vine
57Vendor:         Project Vine
58Packager:       munepi
59
60
61%description
62GNOME MPlayer is a simple GUI for MPlayer. It is intended to be a nice tight
63player and provide a simple and clean interface to MPlayer. GNOME MPlayer has
64a rich API that is exposed via DBus. Using DBus you can control a single or
65multiple instances of GNOME MPlayer from a single command.
66
67%description -l ja
68GNOME MPlayer は MPlayer のための簡単なグラフィカルユーザー
69インターフェースです。とても引き締まったていて,
70MPlayer への簡単でかつ明確なインターフェースを提供します.
71GNOME MPlayer は DBus 経由で公開されている豊富な API を持っています。
72DBus を使って,あなたは1つのコマンドから単一のあるいは複数の
73GNOME MPlayer のインスタンスを制御できます.
74
75gnome-mplayer を使うためには,mplayer が必要です.
76
77
78%if %{with_nautilus}
79%package nautilus
80Summary:        A Nautilus extention of %{name}
81Summary(ja):    %{name} の Nautilus 拡張
82Group:          Applications/Multimedia
83Requires:       %{name} = %{version}-%{release}
84Requires:       nautilus-extensions
85
86%description nautilus
87GNOME MPlayer is a simple GUI for MPlayer. It is intended to be a nice tight
88player and provide a simple and clean interface to MPlayer. GNOME MPlayer has
89a rich API that is exposed via DBus. Using DBus you can control a single or
90multiple instances of GNOME MPlayer from a single command.
91
92This package provides a nautilus extension, which shows properties of audio and
93video files in the properties dialogue.
94
95%description nautilus -l ja
96GNOME MPlayer は MPlayer のための簡単なグラフィカルユーザー
97インターフェースです。とても引き締まったていて,
98MPlayer への簡単でかつ明確なインターフェースを提供します.
99GNOME MPlayer は DBus 経由で公開されている豊富な API を持っています。
100DBus を使って,あなたは1つのコマンドから単一のあるいは複数の
101GNOME MPlayer のインスタンスを制御できます.
102
103このパッケージはプロパティダイアログ内でオーディオやビデオファイルの
104プロパティを示すに Nautilus 拡張を提供します.
105%endif
106
107%prep
108%setup -q %{?betaversion:-n %{name}-%{version}%betaversion}
109
110%if %{with_my_japo}
111## vine
112%__install -m644 %{SOURCE100} po/ja.po
113%endif
114
115
116%build
117%configure \
118    --disable-static \
119    %if !%{with_nautilus}
120    --disable-nautilus \
121    %endif
122    --disable-schemas-compile \
123    \
124    --with-dbus \
125    --with-alsa \
126    --with-pulseaudio \
127    --with-libnotify \
128    --with-libgpod \
129    %if %{?_dist_release} != "vl5"
130    --with-libmusicbrainz3 \
131    %endif
132    ;
133%__make %{?_smp_mflags}
134
135
136%install
137%__rm -rf $RPM_BUILD_ROOT
138
139export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
140%__make install DESTDIR=$RPM_BUILD_ROOT
141
142desktop-file-install --vendor=vine \
143       --delete-original --dir $RPM_BUILD_ROOT%{_datadir}/applications \
144       $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
145
146## wrapper
147%__mkdir_p $RPM_BUILD_ROOT%{_libexecdir}
148%__mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{GNOME_MPLAYER_BIN}
149%__sed s,@@GNOME_MPLAYER_BIN@@,%{GNOME_MPLAYER_BIN}, %{SOURCE50} > $RPM_BUILD_ROOT%{_bindir}/%{name}
150%__chmod 0755 $RPM_BUILD_ROOT%{_bindir}/%{name}
151
152%find_lang %{name}
153
154# remove intrusive docs
155%__rm -rf $RPM_BUILD_ROOT%{_docdir}/gnome-mplayer
156
157# remove unpackaged files
158find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \;
159
160
161# %pre
162# if [ "$1" -gt 1 ]; then
163#     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
164#     gconftool-2 --makefile-uninstall-rule \
165#       %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas >/dev/null || :
166#     # If the schema file has ever been renamed::
167#     #gconftool-2 --makefile-uninstall-rule \
168#     #  %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || :
169# fi
170
171
172%post
173touch --no-create %{_datadir}/icons/hicolor
174if [ -x %{_bindir}/gtk-update-icon-cache ]; then
175  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
176fi
177update-desktop-database &> /dev/null || :
178
179# export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
180# gconftool-2 --makefile-install-rule \
181#   %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas > /dev/null || :
182
183%posttrans
184glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
185# update-desktop-database %{_datadir}/applications/
186
187# %preun
188# if [ "$1" -eq 0 ]; then
189#     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
190#     gconftool-2 --makefile-uninstall-rule \
191#       %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas > /dev/null || :
192# fi
193
194%postun
195if [ $1 -eq 0 ]; then
196  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
197  update-desktop-database %{_datadir}/applications/
198fi
199
200touch --no-create %{_datadir}/icons/hicolor
201if [ -x %{_bindir}/gtk-update-icon-cache ]; then
202  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
203fi
204update-desktop-database &> /dev/null || :
205
206
207%clean
208%__rm -rf $RPM_BUILD_ROOT
209
210
211%files -f %{name}.lang
212%defattr(-,root,root,-)
213%{_bindir}/gnome-mplayer
214%{GNOME_MPLAYER_BIN}
215%{_datadir}/applications/*-gnome-mplayer.desktop
216%{_datadir}/gnome-control-center/default-apps/gnome-mplayer.xml
217%doc AUTHORS COPYING ChangeLog INSTALL NEWS README DOCS/* DOCS/tech/*
218# %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas
219%{_datadir}/glib-2.0/schemas/apps.gecko-mediaplayer.preferences.gschema.xml
220%{_datadir}/glib-2.0/schemas/apps.gnome-mplayer.preferences.enums.xml
221%{_datadir}/glib-2.0/schemas/apps.gnome-mplayer.preferences.gschema.xml
222%{_datadir}/icons/hicolor/*/apps/gnome-mplayer.*
223%{_mandir}/man1/gnome-mplayer.1.gz
224
225%if %{with_nautilus}
226%files nautilus
227%{_libdir}/nautilus/extensions-2.0/*.so.*
228%{_libdir}/nautilus/extensions-2.0/*.so
229%endif
230
231
232%changelog
233* Sun Apr 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1.beta.svn1989
234- source snapshot 1.0.3beta r1989
235  - added --disable-schemas-compile in configure options
236  - use GSettings (%%posttrans, %%postun)
237- updated Japanese translation (gnome-mplayer-1.0.3beta.svn1989-ja.po)
238
239* Tue Mar 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-2
240- new upstream release
241
242* Wed Mar 02 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1.b1.svn1912
243- source snapshot 1.0.1b1 r1912
244
245* Thu Feb 24 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1.b1.svn1892
246- source snapshot 1.0.1b1 r1892
247- added BuildRequires: pulseaudio-libs-devel
248
249* Sat Nov 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.0-1
250- new upstream release
251- added BuildRequires:
252  - libmusicbrainz3-devel (only vl6)
253  - gnome-power-manager
254- added Requires: gnome-power-manager
255
256* Tue Oct 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-2.rc3
257- source 0.9.99.rc3
258
259* Fri Aug 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-1.rc1
260- source 0.9.99.rc1
261  - applied gnome-mplayer-0.9.99.rc1-ja.po
262  - entry ja in gnome-mplayer.desktop
263
264* Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-5.svn1729
265- source snapshot r1729
266
267* Sat Apr 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-4.svn1685
268- fixed gnome-mplayer.sh.in
269
270* Sat Apr 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-3.svn1685
271- source snapshot r1685
272- added gnome-mplayer.sh.in
273  - this script is a wrapper to check MPlayer binary existance
274
275* Tue Mar 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-2.svn1673
276- source snapshot r1673
277  - Rework vdpau codec selection and deinterlace (r1673)
278
279* Thu Mar 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-1
280- new upstream release
281
282* Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-4
283- new upstream release
284- added gnome-mplayer-snapshot.sh
285
286* Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-2.svn1619
287- source snapshot r1619
288- added gnome-mplayer-0.9.9.svn1619-ja.po
289
290* Mon Dec 14 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn1599
291- source snapshot r1599
292- added BuildRequires: libXScrnSaver-devel
293
294* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn1583
295- source snapshot r1583
296- dropped gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch
297
298* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-4
299- applied gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch
300  - fix hidden cursor over menus (r1576)
301
302* Sat Sep 19 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-3
303- new upstream release
304
305* Tue Sep 15 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-2.svn1540
306- source snapshot r1540
307
308* Mon Sep 14 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-1.svn1538
309- source snapshot r1538
310  - updated the latest up-to-date ja.po
311
312* Sat Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-3
313- new upstream release
314
315* Fri Aug 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-2.svn1493
316- source snapshot r1493
317
318* Fri Aug 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-1.svn1486
319- source snapshot r1486
320  - updated the latest up-to-date ja.po
321- added gtk-update-icon-cache actions in %%post, %%postun
322
323* Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.6-2
324- rebuild with libgpod-0.7.2
325- gconf uninstall rule in %%preun, not %%postun
326
327* Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.6-1
328- new upstream release
329
330* Thu May 27 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-4.svn1298
331- source snapshot r1298
332  - updated the latest up-to-date ja.po
333
334* Sat Apr 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-3.svn1236
335- dropped Requires: self-build-mplayer
336
337* Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-2.svn1236
338- source snapshot r1236
339- updated the latest up-to-date ja.po
340
341* Sun Mar 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-1
342- new upstream release
343
344* Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-4.r1184
345- dropped a Nautilus plugin once
346
347* Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-3.r1184
348- source snapshot r1184
349- dropped gnome-mplayer-0.9.4-ja.patch
350  - committed Japanese translation
351- applied gnome-mplayer-0.9.4.r1184-ja.po
352  - update the latest up-to-date ja.po
353
354* Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-2
355- added Summary(ja), %%description -l ja
356- updated gnome-mplayer-0.9.4-ja.patch
357
358* Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-1
359- new upstream release
360- updated gnome-mplayer-0.9.4-ja.patch
361- updated gnome-mplayer-0.9.4-ja.po
362- updated the URL tag
363
364* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.3-1
365- initial build
366- added ja.po
367
368* Thu Jan  8 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-2
369- Added patch fixing rpmfusion bug #238 from SVN
370- Made the dependencies between packages stricter (%%{version} → %%{version}-%%{release})
371
372* Sat Jan  3 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-1
373- Updated to 0.9.3
374
375* Mon Nov 24 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-2
376- Refactored the spec to allow building both minimal and full-featured versions
377- s/gnome-mplayer-core-functionality/gnome-mplayer-binary
378
379* Sat Nov 22 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-1
380- Updated to 0.9.2
381- Added libcurl-devel, libgpod-devel and libmusicbrainz3-devel to BuildRequires
382- Provide gnome-mplayer-core-functionality
383
384* Sun Nov  2 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.1-1
385- Updated to 0.9.1
386
387* Fri Oct 31 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.0-1
388- Updated to 0.9.0
389- Added libnotify-devel to BuildRequires
390- Added gvfs-fuse to Requires
391
392* Mon Sep 29 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.0-1.1
393- Updated to 0.8.0
394
395* Sat Sep  6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-2.1
396- Added alsa-lib-devel to BuildRequires (livna bug #2084)
397
398* Sun Aug 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-1.1
399- Updated to 0.7.0
400
401* Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.3-2
402- rebuild for buildsys cflags issue
403
404* Sun Jul  6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.3-1
405- Updated to 0.6.3
406
407* Tue Jun 10 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-2
408- Added mencoder to Requires (bug #1991)
409
410* Wed May 28 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-1
411- Updated to 0.6.2
412
413* Thu Apr 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.1-1
414- Updated to 0.6.1
415- Updated URL and Source0
416
417* Wed Feb 13 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-1
418- Initial rpmfusion release
Note: See TracBrowser for help on using the repository browser.