]>
Commit | Line | Data |
---|---|---|
0f9babf3 | 1 | # TODO: |
3d2cf8a3 | 2 | # - internal portaudio crashes when only OSS is available on startup |
0b5e52e1 JB |
3 | # - use system portaudio (>= 19, but relies on local changes) |
4 | # - use system portSMF? | |
368545c2 | 5 | # - use system ffmpeg (libavcodec >= 51.53, libavformat >= 52.12), libavutil |
0b5e52e1 | 6 | # - use system sbsms (>= 1.6.0, but relies on local changes) |
368545c2 | 7 | # - use system libnyquist (if ever; currently it's a part of audacity project) |
76bb3c4c JB |
8 | # |
9 | # Conditional build: | |
368545c2 JB |
10 | %bcond_with libresample # using libresample for resampling (default is soxr) |
11 | %bcond_with libsamplerate # using libsamplerate for resampling (default is soxr) | |
3ace0a72 | 12 | %bcond_with ffmpeg # build with ffmpeg support (currently audacity does not support ffmpeg 1.0) |
26f6b652 | 13 | # |
368545c2 JB |
14 | %if %{without libresample} && %{without libsamplerate} |
15 | %define with_soxr 1 | |
16 | %endif | |
ccfb6b35 | 17 | Summary: Audacity - manipulate digital audio waveforms |
8746635e | 18 | Summary(pl.UTF-8): Audacity - narzędzie do obróbki plików dźwiękowych |
499b2241 | 19 | Summary(ru.UTF-8): Кроссплатформенный звуковой редактор |
ccfb6b35 | 20 | Name: audacity |
a318f1e0 | 21 | Version: 2.0.5 |
53947ced | 22 | Release: 4 |
f0304893 | 23 | License: GPL v2+ |
2cf4df4e | 24 | Group: X11/Applications/Sound |
516583f3 | 25 | #Source0Download: http://code.google.com/p/audacity/downloads/list |
4c69aac5 | 26 | Source0: http://audacity.googlecode.com/files/%{name}-minsrc-%{version}.tar.xz |
a318f1e0 | 27 | # Source0-md5: 657f71a5a214fe84731ed9842e09fa04 |
4a5740eb | 28 | # Link from http://manual.audacityteam.org/index.php?title=Main_Page |
e323d71d | 29 | Source1: http://audacity.googlecode.com/files/%{name}-manual-%{version}.zip |
a318f1e0 | 30 | # Source1-md5: 9f0b9db3f37aa4b9455a4b4e2046e1e4 |
4a5740eb ER |
31 | Source2: %{name}.desktop |
32 | Source3: %{name}-icon.png | |
165c5a81 AM |
33 | Patch0: %{name}-system-libs.patch |
34 | Patch1: %{name}-opt.patch | |
65b59bb1 | 35 | Patch2: %{name}-no-macos.patch |
53947ced AM |
36 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749659 |
37 | Patch3: wx-fd-constants.patch | |
38 | Patch4: wx30.patch | |
ccfb6b35 | 39 | URL: http://audacity.sourceforge.net/ |
368545c2 | 40 | BuildRequires: alsa-lib-devel |
47047e58 | 41 | BuildRequires: autoconf >= 2.59 |
112c7bc6 | 42 | BuildRequires: automake |
9237b4ef | 43 | BuildRequires: expat-devel >= 1.95 |
3ace0a72 | 44 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.0} |
badcd57b | 45 | BuildRequires: flac-c++-devel >= 1.2.0 |
cbad77eb | 46 | BuildRequires: gettext-tools |
368545c2 JB |
47 | BuildRequires: gtk+2-devel >= 2.0 |
48 | BuildRequires: jack-audio-connection-kit-devel | |
0b5e52e1 | 49 | BuildRequires: hpklinux-devel >= 4.06 |
368545c2 | 50 | BuildRequires: lame-libs-devel |
eb625f0f | 51 | BuildRequires: libid3tag-devel >= 0.15.0b-2 |
96c796bd | 52 | BuildRequires: libjpeg-devel |
2b86bc40 | 53 | BuildRequires: libmad-devel >= 0.14.2b-4 |
2bde87a7 | 54 | %{?with_libresample:BuildRequires: libresample-devel >= 0.1.3} |
368545c2 | 55 | %{?with_libsamplerate:BuildRequires: libsamplerate-devel >= 0.1.2} |
0b5e52e1 | 56 | #BuildRequires: libsbsms-devel >= 1.6.0 |
9237b4ef | 57 | BuildRequires: libsndfile-devel >= 1.0.0 |
f37aac25 | 58 | BuildRequires: libstdc++-devel |
f37aac25 | 59 | BuildRequires: libvorbis-devel >= 1:1.0 |
0b5e52e1 | 60 | #BuildRequires: portaudio-devel >= 19 |
66fa1502 | 61 | BuildRequires: pkgconfig |
9237b4ef | 62 | BuildRequires: soundtouch-devel >= 1.3.0 |
368545c2 | 63 | %{?with_soxr:BuildRequires: soxr-devel >= 0.0.5} |
66fa1502 | 64 | BuildRequires: speex-devel |
47047e58 | 65 | BuildRequires: twolame-devel >= 0.3.9 |
50a9f1b8 | 66 | BuildRequires: unzip |
0b5e52e1 | 67 | BuildRequires: vamp-devel >= 2.0 |
112c7bc6 | 68 | BuildRequires: which |
96819fa7 | 69 | BuildRequires: wxGTK2-unicode-devel >= 2.8.0 |
4bf37edb | 70 | BuildRequires: wxX11-devel >= 2.8.0 |
4a5740eb | 71 | Requires(post,postun): shared-mime-info |
26f6b652 | 72 | Requires: flac-c++ >= 1.2.0 |
f37aac25 | 73 | Requires: lame-libs |
eb625f0f | 74 | Requires: libid3tag >= 0.15.0b-2 |
26f6b652 JB |
75 | Requires: libmad >= 0.14.2b-4 |
76 | %{?with_libresample:Requires: libresample >= 0.1.3} | |
368545c2 | 77 | %{?with_libsamplerate:Requires: libsamplerate >= 0.1.2} |
26f6b652 JB |
78 | Requires: libsndfile >= 1.0.0 |
79 | Requires: soundtouch >= 1.3.0 | |
368545c2 | 80 | %{?with_soxr:Requires: soxr >= 0.0.5} |
26f6b652 | 81 | Requires: twolame-libs >= 0.3.9 |
ccfb6b35 | 82 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
83 | ||
ccfb6b35 | 84 | %description |
e63b61d1 | 85 | Audacity is a program that lets you manipulate digital audio |
86 | waveforms. It imports many sound file formats, including WAV, AIFF, | |
87 | AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing | |
88 | operations such as Cut, Copy, and Paste, plus it will mix tracks and | |
89 | let you apply plug-in effects to any part of a sound. | |
ccfb6b35 | 90 | |
22e58ff6 JR |
91 | %description -l pl.UTF-8 |
92 | Audacity to program obsługujący różne formaty plików audio. Obsługuje | |
93 | WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umożliwia | |
94 | wykonywanie podstawowych czynności edycyjnych takich jak kasowanie, | |
95 | wstawianie i miksowanie ścieżki dźwiękowej. Umożliwia także | |
e63b61d1 | 96 | wykonywanie dowolnych innych operacji poprzez system wtyczek. |
97 | ||
22e58ff6 | 98 | %description -l ru.UTF-8 |
499b2241 | 99 | Audacity - это звуковой редактор, позволяющий работать с файлами в |
100 | форматах WAV, AIFF, AU, IRCAM, MP3 и Ogg Vorbis. В нем реализованы все | |
101 | основные операции, такие как удаление, копирование, вставка, | |
102 | микширование треков и применение эффектов, оформленных в виде | |
103 | плагинов, к любой части звукового файла. | |
ccfb6b35 | 104 | |
105 | %prep | |
e323d71d | 106 | %setup -q -n %{name}-src-%{version} |
bd00c674 | 107 | %patch0 -p1 |
d43acba8 | 108 | %patch1 -p1 |
65b59bb1 | 109 | %patch2 -p1 |
53947ced AM |
110 | %patch3 -p2 |
111 | %patch4 -p1 | |
d43acba8 | 112 | |
f0304893 | 113 | %{__sed} -i 's/libmp3lame.so/libmp3lame.so.0/g' locale/*.po |
ccfb6b35 | 114 | |
115 | %build | |
9237b4ef JB |
116 | cd lib-src/portmixer |
117 | %{__autoconf} | |
319417c2 AM |
118 | cd ../lib-widget-extra |
119 | %{__aclocal} -I m4 | |
120 | %{__autoconf} | |
53947ced AM |
121 | cd ../FileDialog |
122 | %{__aclocal} | |
123 | %{__autoconf} | |
165c5a81 AM |
124 | cd ../portsmf |
125 | %{__aclocal} -I autotools/m4 | |
126 | %{__autoconf} | |
a318f1e0 | 127 | %{__automake} |
9237b4ef | 128 | cd ../.. |
165c5a81 | 129 | %{__aclocal} -I m4 |
7b0bc4ba | 130 | %{__autoconf} |
66fa1502 | 131 | |
4a5740eb | 132 | export WX_CONFIG=$(which wx-gtk2-unicode-config) |
96c796bd | 133 | %configure \ |
368545c2 | 134 | --with-ffmpeg%{!?with_ffmpeg:=no} \ |
5d743886 | 135 | --with-help \ |
eb625f0f | 136 | --with-id3tag=system \ |
2fc00596 | 137 | --with-libmad=system \ |
368545c2 JB |
138 | %{?with_libresample:--with-libresample=system} \ |
139 | %{?with_libsamplerate:--with-libsamplerate=system} \ | |
2fc00596 | 140 | --with-libsndfile=system \ |
fa3bcf7e | 141 | --with-libflac=system \ |
0b5e52e1 | 142 | --with-sbsms=local \ |
368545c2 | 143 | %{?with_soxr:--with-soxr=system} \ |
cb59e0ce | 144 | --with-vorbis=system |
f37aac25 | 145 | |
66fa1502 | 146 | %{__make} |
ccfb6b35 | 147 | |
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
f0614d6e | 150 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
2fc00596 JB |
151 | |
152 | %{__make} install \ | |
5d743886 AF |
153 | DESTDIR=$RPM_BUILD_ROOT \ |
154 | INSTALL_PATH=$RPM_BUILD_ROOT | |
2fc00596 | 155 | |
4a5740eb ER |
156 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
157 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} | |
158 | %{__unzip} -qq -a %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name}/help | |
96c796bd | 159 | |
9e7433ca | 160 | # unsupported |
3ff8b61f | 161 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS* |
9e7433ca | 162 | |
af53b6da | 163 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN} |
164 | ||
47047e58 JB |
165 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity.xpm |
166 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity16.xpm | |
167 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity32.xpm | |
168 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project.xpm | |
3d2cf8a3 | 169 | |
2fc00596 | 170 | %find_lang %{name} |
0077a945 | 171 | |
ccfb6b35 | 172 | %clean |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
96819fa7 JK |
175 | %post |
176 | %update_mime_database | |
177 | ||
178 | %postun | |
179 | %update_mime_database | |
180 | ||
2fc00596 | 181 | %files -f %{name}.lang |
ccfb6b35 | 182 | %defattr(644,root,root,755) |
f37aac25 | 183 | %doc README.txt |
0077a945 | 184 | %attr(755,root,root) %{_bindir}/audacity |
4a5740eb | 185 | %dir %{_datadir}/%{name} |
4a5740eb ER |
186 | %{_datadir}/%{name}/nyquist |
187 | %{_datadir}/%{name}/plug-ins | |
0b5e52e1 | 188 | %{_datadir}/%{name}/EQDefaultCurves.xml |
4a5740eb | 189 | %doc %{_datadir}/%{name}/help |
47047e58 JB |
190 | %{_mandir}/man1/audacity.1* |
191 | %{_desktopdir}/audacity.desktop | |
192 | %{_pixmapsdir}/audacity-icon.png | |
96819fa7 | 193 | %{_datadir}/mime/packages/audacity.xml |
2c05313b | 194 | %{_iconsdir}/hicolor/*/apps/audacity.png |
5ea9b1e7 | 195 | %{_iconsdir}/hicolor/*/apps/audacity.svg |