]> git.pld-linux.org Git - packages/aumix-gtk.git/blobdiff - aumix-gtk.spec
- bcond with gtk1
[packages/aumix-gtk.git] / aumix-gtk.spec
index 1162d1a77eaf77d649a6f93a1e1ce821c574e6b1..825c657778e96ebd6ad336af7df1a32ae9106dfd 100644 (file)
@@ -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,8 +73,8 @@ poziom sygna
 %prep
 %setup -q -n aumix-%{version}
 #%patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
 #rm -f missing acinclude.m4
@@ -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}
 
This page took 0.083225 seconds and 4 git commands to generate.