X-Git-Url: http://git.pld-linux.org/?p=packages%2Faumix-gtk.git;a=blobdiff_plain;f=aumix-gtk.spec;h=825c657778e96ebd6ad336af7df1a32ae9106dfd;hp=76681b34c62120f99222425f6733d8ab7dd68589;hb=30c04ad833eaf61dc2e31215400b57b3703ea048;hpb=fa4ea332aea193258d80b9d37cf6a21c92f46e01 diff --git a/aumix-gtk.spec b/aumix-gtk.spec index 76681b3..825c657 100644 --- a/aumix-gtk.spec +++ b/aumix-gtk.spec @@ -1,4 +1,6 @@ # NOTE: Please keep in sync with aumix. +%bcond_with gtk1 # build with gtk1 instead of gtk2 + Summary: curses and X11/Gtk based audio mixer Summary(de): Audio-Mixer auf curses- und X11/Gtk-Basis Summary(es): Mezclador de audio basado en curses y X11/gtk+ @@ -6,12 +8,12 @@ Summary(pl): Mikser audio bazuj Summary(ru): áÕÄÉÏ ÍÉËÛÅÒ ÎÁ ÂÁÚÅ ÂÉÂÌÉÏÔÅËÉ curses É gtk+ Summary(uk): áÕÄ¦Ï Í¦ËÛÅÒ, ÂÁÚÏ×ÁÎÉÊ ÎÁ ¦ÂÌÉÏÔÅæ curses ¦ gtk+ Name: aumix-gtk -Version: 2.7 -Release: 15 +Version: 2.8 +Release: 0.1 License: GPL Group: Applications/Sound -Source0: http://www.jpj.net/~trevor/aumix/aumix-%{version}.tar.gz -# Source0-md5: 84ecc331bf6d86d3ac925590fee83af7 +Source0: http://www.jpj.net/~trevor/aumix/aumix-%{version}.tar.bz2 +# Source0-md5: dc3fc7209752207c23e7c94ab886b340 Source3: %{name}.desktop Source4: aumix.png Patch0: aumix-home_etc.patch @@ -22,7 +24,11 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-devel BuildRequires: gpm-devel +%if %{with gtk1} BuildRequires: gtk+-devel >= 1.2.0 +%else +BuildRequires: gtk+2-devel +%endif BuildRequires: ncurses-devel >= 5.0 Provides: aumix BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -66,7 +72,7 @@ poziom sygna %prep %setup -q -n aumix-%{version} -%patch0 -p1 +#%patch0 -p1 %patch1 -p1 %patch2 -p1 @@ -79,7 +85,12 @@ rm -f missing %{__automake} CPPFLAGS="-I/usr/include/ncurses" -%configure +%configure \ +%if %{with gtk1} + --without-gtk +%else + --without-gtk1 +%endif %{__make}