]> git.pld-linux.org Git - packages/audacity.git/blobdiff - audacity.spec
- fixed *.po in not_require_lame-libs-devel patch
[packages/audacity.git] / audacity.spec
index bfa9cedbf9111ea5a3bc13b31070e13470c5fc80..b6ca5037c004fe5d42071aa7b6ab54b59c191a8a 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+# _with_gtk1   - use wxGTK instead of wxGTK2
+#
 Summary:       Audacity - manipulate digital audio waveforms
 Summary(pl):   Audacity - narzêdzie do obróbki plików d¼wiêkowych
 Name:          audacity
@@ -16,15 +20,15 @@ Patch3:             %{name}-opt.patch
 URL:           http://audacity.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: expat-devel
-# to old ?
-#BuildRequires:        flac-devel
+BuildRequires: fftw-devel >= 2.1.4
+BuildRequires: flac-devel
 BuildRequires: libjpeg-devel
 BuildRequires: libsndfile-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libvorbis-devel >= 1:1.0
-BuildRequires: mad-devel
-BuildRequires: wxGTK2-devel >= 2.4.0
-BuildRequires: fftw-devel >= 2.1.4
+BuildRequires: mad-devel >= 0.14.2b-4
+%{?_with_gtk1:BuildRequires:   wxGTK-devel >= 2.4.0}
+%{!?_with_gtk1:BuildRequires:  wxGTK2-devel >= 2.4.0}
 Requires:      lame-libs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -45,13 +49,13 @@ Obs
 
 %build
 %{__autoconf}
-export WX_CONFIG=/usr/bin/wxgtk2-2.4-config
+export WX_CONFIG="`which wxgtk%{!?_with_gtk1:2}-2.4-config`"
 %configure \
        --with-help \
        --with-id3tag=system \
        --with-libmad=system \
        --with-libsndfile=system \
-       --without-libflac \
+       --with-libflac=system \
        --with-vorbis=system
 
 %{__make} \
This page took 0.078288 seconds and 4 git commands to generate.