From: havner Date: Mon, 12 Jul 2004 18:28:13 +0000 (+0000) Subject: - bcond with gtk1 X-Git-Tag: auto/ac/aumix-2_8-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Faumix-gtk.git;a=commitdiff_plain;h=30c04ad833eaf61dc2e31215400b57b3703ea048;hp=d16ea3d4ce3260e08951f9fa3d8f0b561b8c6507 - bcond with gtk1 - home-etc patch not done (yet) - rel 0.1 - works Changed files: aumix-gtk.spec -> 1.41 --- diff --git a/aumix-gtk.spec b/aumix-gtk.spec index 6f392fe..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+ @@ -7,7 +9,7 @@ Summary(ru): Summary(uk): áÕÄ¦Ï Í¦ËÛÅÒ, ÂÁÚÏ×ÁÎÉÊ ÎÁ ¦ÂÌÉÏÔÅæ curses ¦ gtk+ Name: aumix-gtk Version: 2.8 -Release: 1 +Release: 0.1 License: GPL Group: Applications/Sound Source0: http://www.jpj.net/~trevor/aumix/aumix-%{version}.tar.bz2 @@ -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) @@ -67,7 +73,7 @@ poziom sygna %prep %setup -q -n aumix-%{version} #%patch0 -p1 -#%patch1 -p1 +%patch1 -p1 %patch2 -p1 %build @@ -80,7 +86,11 @@ rm -f missing CPPFLAGS="-I/usr/include/ncurses" %configure \ +%if %{with gtk1} + --without-gtk +%else --without-gtk1 +%endif %{__make}