OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   14-Aug-2005 21:47:43
  Branch: HEAD                             Handle: 2005081420474200

  Modified files:
    openpkg-src/mplayer     mplayer.spec

  Log:
    cleanup packaging: fix dependencies, use newer win32 codecs, etc

  Summary:
    Revision    Changes     Path
    1.132       +34 -28     openpkg-src/mplayer/mplayer.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/mplayer/mplayer.spec
  ============================================================================
  $ cvs diff -u -r1.131 -r1.132 mplayer.spec
  --- openpkg-src/mplayer/mplayer.spec  19 Jul 2005 08:11:26 -0000      1.131
  +++ openpkg-src/mplayer/mplayer.spec  14 Aug 2005 19:47:42 -0000      1.132
  @@ -23,9 +23,11 @@
   ##
   
   #   package versions
  -%define       V_mplayer     1.0pre7
  -%define       V_blue        1.4
  -%define       V_live        2005.07.15
  +%define       V_mplayer          1.0pre7
  +%define       V_codecs_essential 20050412
  +%define       V_codecs_quicktime 20040704
  +%define       V_skin_blue        1.4
  +%define       V_extension_live   2005.08.09
   
   #   package information
   Name:         mplayer
  @@ -38,19 +40,18 @@
   Group:        Video
   License:      GPL and others
   Version:      %{V_mplayer}
  -Release:      20050719
  +Release:      20050814
   
   #   build options
   %option       with_gui    yes
   %option       with_win32  yes
   
   #   list of sources
  -Source0:      
ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-%{V_mplayer}.tar.bz2
  -Source1:      
ftp://ftp.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
  -Source2:      
ftp://ftp.mplayerhq.hu/MPlayer/releases/codecs/win32codecs.tar.bz2
  -Source3:      ftp://ftp.mplayerhq.hu/MPlayer/releases/codecs/qt5dlls.tar.bz2
  -Source4:      ftp://ftp.mplayerhq.hu/MPlayer/Skin/Blue-%{V_blue}.tar.bz2
  -Source5:      http://www.live.com/liveMedia/public/live.%{V_live}.tar.gz
  +Source0:      
ftp://ftp2.mplayerhq.hu/MPlayer/releases/MPlayer-%{V_mplayer}.tar.bz2
  +Source1:      
ftp://ftp2.mplayerhq.hu/MPlayer/releases/codecs/windows-essential-%{V_codecs_essential}.zip
  +Source2:      
ftp://ftp2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
  +Source3:      
ftp://ftp2.mplayerhq.hu/MPlayer/Skin/Blue-%{V_skin_blue}.tar.bz2
  +Source4:      
http://www.live.com/liveMedia/public/live.%{V_extension_live}.tar.gz
   Patch0:       mplayer.patch
   
   #   build information
  @@ -58,8 +59,8 @@
   BuildRoot:    %{l_buildroot}
   BuildPreReq:  OpenPKG, openpkg >= 20040130, X11, gcc, make, sed
   PreReq:       OpenPKG, openpkg >= 20040130, X11
  -BuildPreReq:  zlib, libiconv, sdl, freetype, jpeg, png, vorbis-libs, lzo, 
libsmbclient
  -PreReq:       zlib, libiconv, sdl, freetype, jpeg, png, vorbis-libs, lzo, 
libsmbclient
  +BuildPreReq:  zlib, libiconv, sdl, freetype, jpeg, png, vorbis-libs, lzo, 
libsmbclient, aalib
  +PreReq:       zlib, libiconv, sdl, freetype, jpeg, png, vorbis-libs, lzo, 
libsmbclient, aalib
   %if "%{with_gui}" == "yes"
   BuildPreReq:  glib, gtk
   PreReq:       glib, gtk
  @@ -77,24 +78,29 @@
   %track
       prog mplayer = {
           version   = %{V_mplayer}
  -        url       = ftp://ftp.mplayerhq.hu/MPlayer/releases/
  +        url       = ftp://ftp2.mplayerhq.hu/MPlayer/releases/
           regex     = MPlayer-(__VER__)\.tar\.bz2
       }
  -    prog mplayer:blue = {
  -        version   = %{V_blue}
  -        url       = ftp://ftp.mplayerhq.hu/MPlayer/Skin/
  +    prog mplayer:codecs_essential = {
  +        version   = %{V_codecs_essential}
  +        url       = ftp://ftp2.mplayerhq.hu/MPlayer/releases/codecs/
  +        regex     = windows-essential-(__VER__)\.tar\.bz2
  +    }
  +    prog mplayer:skin_blue = {
  +        version   = %{V_skin_blue}
  +        url       = ftp://ftp2.mplayerhq.hu/MPlayer/Skin/
           regex     = Blue-(__VER__)\.tar\.bz2
       }
  -    prog mplayer:live = {
  +    prog mplayer:extension_live = {
           comment   = "rse: new snapshots occur every second day, no need to 
upgrade such fast"
  -        version   = %{V_live}
  +        version   = %{V_extension_live}
           url       = http://www.live.com/liveMedia/public/
           regex     = live\.(200\d\.\d+\.\d?[02468])\.tar\.gz
       }
   
   %prep
       %setup -q -n MPlayer-%{V_mplayer}
  -    %setup -q -n MPlayer-%{V_mplayer} -T -D -a 5
  +    %setup -q -n MPlayer-%{V_mplayer} -T -D -a 4
       %patch -p0
       %{l_shtool} subst \
           -e 's; *-I/usr/local/include/*[a-zA-Z0-9{},/ ]*;;g' \
  @@ -143,7 +149,7 @@
       ./configure \
           --prefix=%{l_prefix} \
           --confdir=%{l_prefix}/etc/mplayer/ \
  -        --with-codecsdir=%{l_prefix}/libexec/mplayer/nativecodecs/ \
  +        --with-codecsdir=%{l_prefix}/libexec/mplayer/codecs/ \
   %if "%{with_gui}" == "yes"
           --enable-gui \
           --with-glib-config=%{l_prefix}/bin/glib-config \
  @@ -152,7 +158,7 @@
           --disable-gui \
   %endif
   %if "%{with_win32}" == "yes"
  -        --with-win32libdir=%{l_prefix}/libexec/mplayer/win32codecs \
  +        --with-win32libdir=%{l_prefix}/libexec/mplayer/codecs/win32 \
           --enable-win32 \
           --enable-qtx \
   %else
  @@ -214,7 +220,7 @@
           $RPM_BUILD_ROOT%{l_prefix}/share/mplayer/Skin \
   %endif
           $RPM_BUILD_ROOT%{l_prefix}/share/mplayer/font \
  -        $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer/nativecodecs
  +        $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer/codecs
   
       #   install binaries
       %{l_shtool} install -s -c -m 755 \
  @@ -247,7 +253,7 @@
   %if "%{with_gui}" == "yes"
       #   install a default skin
       ( cd $RPM_BUILD_ROOT%{l_prefix}/share/mplayer/Skin
  -      %{l_bzip2} -dc %{SOURCE Blue-%{V_blue}.tar.bz2} | %{l_tar} -xvf -
  +      %{l_bzip2} -dc %{SOURCE Blue-%{V_skin_blue}.tar.bz2} | %{l_tar} -xvf -
         %{l_shtool} mkln -s -f Blue default
       ) || exit $?
   %endif
  @@ -259,12 +265,12 @@
   
   %if "%{with_win32}" == "yes"
       #   install win32 and quicktime codecs
  -    ( %{l_shtool} mkdir -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer
  -      cd $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer
  -      %{l_bzip2} -dc %{SOURCE win32codecs.tar.bz2} | %{l_tar} -xvf -
  +    ( %{l_shtool} mkdir -p -m 755 \
  +          $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer/codecs
  +      cd $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer/codecs
  +      %{l_prefix}/bin/unzip -x %{SOURCE 
windows-essential-%{V_codecs_essential}.zip}
  +      mv windows-essential-%{V_codecs_essential} win32
       ) || exit $?
  -    %{l_bzip2} -dc %{SOURCE qt5dlls.tar.bz2} | %{l_tar} -xvf -
  -    mv -f qt5dlls/* $RPM_BUILD_ROOT%{l_prefix}/libexec/mplayer/win32codecs/
   %endif
   
       #   determine installation files
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to