1 |
%define fversion %{version} |
2 |
|
3 |
Summary: Free Audio Editor With Effects/Analysis Tools |
4 |
Name: audacity |
5 |
Version: 2.0.6 |
6 |
Release: %mkrel 1 |
7 |
License: GPLv2+ |
8 |
Group: Sound/Editors and Converters |
9 |
URL: http://audacity.sourceforge.net/ |
10 |
Source0: http://audacity.googlecode.com/files/%{name}-minsrc-%{fversion}.tar.xz |
11 |
Patch0: audacity-2.0.1-desktopentry.patch |
12 |
Patch5: audacity-system-libs.patch |
13 |
#gw use Alsa by default |
14 |
Patch6: audacity-2.0.4-alsa-by-default.patch |
15 |
BuildRequires: autoconf2.5 |
16 |
BuildRequires: fftw-devel >= 2.1.4 |
17 |
BuildRequires: gettext-devel |
18 |
BuildRequires: imagemagick |
19 |
BuildRequires: libalsa-devel |
20 |
BuildRequires: libflac++-devel |
21 |
BuildRequires: libjack-devel |
22 |
BuildRequires: libid3tag-devel |
23 |
BuildRequires: libjpeg-devel |
24 |
BuildRequires: libmad-devel |
25 |
BuildRequires: libogg-devel |
26 |
BuildRequires: cmake |
27 |
BuildRequires: libsamplerate-devel |
28 |
BuildRequires: libsndfile-devel |
29 |
BuildRequires: libvorbis-devel |
30 |
BuildRequires: soundtouch-devel >= 1.3.0 |
31 |
BuildRequires: speex-devel |
32 |
BuildRequires: twolame-devel |
33 |
BuildRequires: wxgtku2.8-devel >= 2.8.10 |
34 |
BuildRequires: zlib-devel |
35 |
BuildRequires: vamp-plugin-sdk-devel |
36 |
BuildRequires: libexpat-devel |
37 |
BuildRequires: ffmpeg-devel |
38 |
BuildRequires: lv2-devel |
39 |
BuildRequires: lilv-devel |
40 |
#for compressing the help file: |
41 |
BuildRequires: zip |
42 |
Obsoletes: hackaudacity |
43 |
Suggests: %mklibname lame 0 |
44 |
|
45 |
%description |
46 |
Audacity is a program that lets you manipulate digital audio waveforms. |
47 |
|
48 |
In addition to letting you record sounds directly from within the program, |
49 |
it imports many sound file formats, including WAV, AIFF, MP3 and Ogg/Vorbis. |
50 |
It supports all common editing operations such as Cut, Copy, and Paste, plus |
51 |
it will mix tracks and let you apply plug-in effects to any part of a sound. |
52 |
It also has a built-in amplitude envelope editor, a customizable spectrogram |
53 |
mode and a frequency analysis window for audio analysis applications. |
54 |
|
55 |
%prep |
56 |
%setup -q -n %{name}-src-%{fversion} |
57 |
%patch0 -p1 -b .desktopentry |
58 |
%patch5 -p1 -b .system-libs |
59 |
%patch6 -p1 -b .alsa-by-default |
60 |
|
61 |
chmod 644 *.txt |
62 |
aclocal -I m4 |
63 |
autoconf |
64 |
|
65 |
%build |
66 |
%configure2_5x \ |
67 |
--enable-optimise \ |
68 |
--enable-unicode \ |
69 |
--with-ffmpeg=system \ |
70 |
--disable-dynamic-loading \ |
71 |
--with-vorbis=system \ |
72 |
--with-libmad=system \ |
73 |
--with-libsndfile=system \ |
74 |
--with-id3tag=system \ |
75 |
--with-soundtouch=system \ |
76 |
--with-lv2=system \ |
77 |
%ifnarch %ix86 x86_64 |
78 |
--enable-sse=no \ |
79 |
%endif |
80 |
--with-libtwolame=system |
81 |
%make |
82 |
|
83 |
%install |
84 |
%makeinstall_std |
85 |
|
86 |
%find_lang %{name} |
87 |
|
88 |
#clean uneeded installed but not packaged |
89 |
rm -rf %{buildroot}%{_docdir}/* |
90 |
|
91 |
#gw work around bug #52526 |
92 |
mkdir -p %{buildroot}%{_datadir}/%{name}/help/manual |
93 |
|
94 |
%files -f %{name}.lang |
95 |
%{_bindir}/* |
96 |
%{_datadir}/%{name} |
97 |
%{_datadir}/applications/%{name}.desktop |
98 |
%{_datadir}/icons/hicolor/*/apps/%{name}.* |
99 |
%{_datadir}/pixmaps/* |
100 |
%{_datadir}/mime/packages/%{name}.xml |
101 |
%{_mandir}/man1/%{name}.1* |
102 |
%{_datadir}/appdata/audacity.appdata.xml |