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