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