]> git.pld-linux.org Git - packages/audacity.git/blobdiff - audacity.spec
BRs for tar.xz source
[packages/audacity.git] / audacity.spec
index 2db249797bebdcce7e117d569539e65e24cdbc0e..ebfe0ae47264556c18ce2a884943a7b03bb9467c 100644 (file)
@@ -9,7 +9,20 @@
 # Conditional build:
 %bcond_without ffmpeg          # build without ffmpeg support
 %bcond_with    gtk3            # GTK+ 3.x instead of 2.x (not fully supported)
+%bcond_without mmx             # MMX instructions
+%bcond_without sse             # SSE instructions
+%bcond_without sse2            # SSE2 instructions
 #
+%ifnarch %{x8664} pentium2 pentium3 pentium4 athlon
+%undefine      with_mmx
+%endif
+%ifnarch %{x8664} pentium3 pentium4
+%undefine      with_sse
+%endif
+%ifnarch %{x8664} pentium4
+%undefine      with_sse2
+%endif
+
 Summary:       Audacity - manipulate digital audio waveforms
 Summary(pl.UTF-8):     Audacity - narzędzie do obróbki plików dźwiękowych
 Summary(ru.UTF-8):     Кроссплатформенный звуковой редактор
@@ -54,10 +67,12 @@ BuildRequires:      lv2-devel
 BuildRequires: nasm
 BuildRequires: pkgconfig
 #BuildRequires:        portaudio-devel >= 19
+BuildRequires: rpmbuild(macros) >= 1.742
 BuildRequires: soundtouch-devel >= 1.3.0
 BuildRequires: soxr-devel >= 0.0.5
 BuildRequires: speex-devel
 BuildRequires: suil-devel >= 0.8.2
+BuildRequires: tar >= 1:1.22
 BuildRequires: twolame-devel >= 0.3.9
 BuildRequires: udev-devel
 BuildRequires: unzip
@@ -65,6 +80,7 @@ BuildRequires:        vamp-devel >= 2.0
 BuildRequires: which
 %{!?with_gtk3:BuildRequires:   wxGTK2-unicode-devel >= 3.0.0}
 %{?with_gtk3:BuildRequires:    wxGTK3-unicode-devel >= 3.0.0}
+BuildRequires: xz
 Requires(post,postun): shared-mime-info
 Requires:      flac-c++ >= 1.3.0
 # dlopened
@@ -135,6 +151,9 @@ fi
 mkdir -p build
 cd build
 %cmake .. \
+       %{cmake_on_off mmx HAVE_MMX} \
+       %{cmake_on_off sse HAVE_SSE} \
+       %{cmake_on_off sse2 HAVE_SSE2} \
        -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=$(which wx-gtk%{?with_gtk3:3}%{!?with_gtk3:2}-unicode-config) \
        %{!?with_ffmpeg:-Daudacity_use_ffmpeg:STRING=off} \
        -DCMAKE_BUILD_TYPE=Release
This page took 0.025124 seconds and 4 git commands to generate.