]> git.pld-linux.org Git - packages/mplayer.git/commitdiff
- updated to 0.90pre2
authorfilon <filon@sokrates.mimuw.edu.pl>
Tue, 30 Apr 2002 07:39:46 +0000 (07:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added better way of building releases/snaphots (tou define it with one variable)
- added small todo

Changed files:
    mplayer.spec -> 1.85

mplayer.spec

index d4fd54131b1fb87025d17c26e4eb7d7ad13b048e..1f39ac054f7cea3cd61557593f3d6277b8e25fd8 100644 (file)
@@ -1,6 +1,10 @@
 #
-# Conditional build:
+# TODO
+# - select with divx codec will be used (xvid, divx4linux, opnedivx)
+#   (you can choose only one of it)
 
+# Conditional build:
+#
 # _with_ggi            - with ggi video output
 # _without_alsa                - without ALSA support
 # _without_arts                - without arts support
@@ -12,6 +16,9 @@
 # _without_gui         - without gui gtk+ interfeace
 # _without_dshow       - disable DirectShow support
 
+# set it to 0, or 1
+%define                snapshot        0
+
 %define                sname           MPlayer
 %define                snap            20020320
 %define                ffmpeg_ver      0.4.5
 Summary:       Yet another movie player for Linux
 Summary(pl):   Jeszcze jeden odtwarzacz filmów dla Linuksa
 Name:          mplayer
-Version:       0.90pre1
+Version:       0.90pre2
 Release:       1
 License:       GPL
 Group:         X11/Applications/Multimedia
-# This is location of CVS snapshots
-#Source0:      ftp://ftp.mplayerhq.hu/%{sname}/cvs/%{sname}-%{snap}.tar.bz2
-# This is location of official (pre)releases
+%if %{snapshot}
+Source0:       ftp://ftp.mplayerhq.hu/%{sname}/cvs/%{sname}-%{snap}.tar.bz2
+%else
 Source0:       http://ftp2.mplayerhq.hu/%{sname}/releases/%{sname}-%{version}.tar.bz2
+%endif
 Source1:       http://prdownloads.sourceforge.net/ffmpeg/ffmpeg-%{ffmpeg_ver}.tar.gz
 Source2:       %{name}.conf
 Source3:       ftp://mplayerhq.hu/%{sname}/releases/font-arial-iso-8859-2.tar.bz2
@@ -93,10 +101,12 @@ Je
 skopiuj codecs.win32.conf do katalogu ~/.mplayer jako codecs.conf.
 
 %prep
-# snapshots:
-#%setup -q -n %{sname}-%{snap} -a 1 -a 3
-# releases:
+%if %{snapshot}
+%setup -q -n %{sname}-%{snap} -a 1 -a 3
+%else
 %setup -q -n %{sname}-%{version} -a 1 -a 3
+%endif
+
 %patch0 -p1
 %patch1 -p1
 cp -f etc/codecs.conf etc/codecs.win32.conf
@@ -105,8 +115,9 @@ cp -f etc/codecs.conf etc/codecs.win32.conf
 #%patch4 -p1
 %patch5 -p1
 
-# needed in snapshots
-# cp -ar ffmpeg/libavcodec/* libavcodec
+%if %{snapshot}
+cp -ar ffmpeg/libavcodec/* libavcodec
+%endif
 
 %build
 CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} `pkg-config --cflags libpng12 || echo -n`" \
This page took 0.069778 seconds and 4 git commands to generate.