]> git.pld-linux.org Git - packages/audacity.git/blame - audacity.spec
- updated gettext BR
[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
a318f1e0 21Version: 2.0.5
53947ced 22Release: 4
f0304893 23License: GPL v2+
2cf4df4e 24Group: X11/Applications/Sound
516583f3 25#Source0Download: http://code.google.com/p/audacity/downloads/list
4c69aac5 26Source0: 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 29Source1: http://audacity.googlecode.com/files/%{name}-manual-%{version}.zip
a318f1e0 30# Source1-md5: 9f0b9db3f37aa4b9455a4b4e2046e1e4
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
53947ced
AM
36# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749659
37Patch3: wx-fd-constants.patch
38Patch4: wx30.patch
ccfb6b35 39URL: http://audacity.sourceforge.net/
368545c2 40BuildRequires: alsa-lib-devel
47047e58 41BuildRequires: autoconf >= 2.59
112c7bc6 42BuildRequires: automake
9237b4ef 43BuildRequires: expat-devel >= 1.95
3ace0a72 44%{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.0}
badcd57b 45BuildRequires: flac-c++-devel >= 1.2.0
cbad77eb 46BuildRequires: gettext-tools
368545c2
JB
47BuildRequires: gtk+2-devel >= 2.0
48BuildRequires: jack-audio-connection-kit-devel
0b5e52e1 49BuildRequires: hpklinux-devel >= 4.06
368545c2 50BuildRequires: lame-libs-devel
eb625f0f 51BuildRequires: libid3tag-devel >= 0.15.0b-2
96c796bd 52BuildRequires: libjpeg-devel
2b86bc40 53BuildRequires: 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 57BuildRequires: libsndfile-devel >= 1.0.0
f37aac25 58BuildRequires: libstdc++-devel
f37aac25 59BuildRequires: libvorbis-devel >= 1:1.0
0b5e52e1 60#BuildRequires: portaudio-devel >= 19
66fa1502 61BuildRequires: pkgconfig
9237b4ef 62BuildRequires: soundtouch-devel >= 1.3.0
368545c2 63%{?with_soxr:BuildRequires: soxr-devel >= 0.0.5}
66fa1502 64BuildRequires: speex-devel
47047e58 65BuildRequires: twolame-devel >= 0.3.9
50a9f1b8 66BuildRequires: unzip
0b5e52e1 67BuildRequires: vamp-devel >= 2.0
112c7bc6 68BuildRequires: which
96819fa7 69BuildRequires: wxGTK2-unicode-devel >= 2.8.0
4bf37edb 70BuildRequires: wxX11-devel >= 2.8.0
4a5740eb 71Requires(post,postun): shared-mime-info
26f6b652 72Requires: flac-c++ >= 1.2.0
f37aac25 73Requires: lame-libs
eb625f0f 74Requires: libid3tag >= 0.15.0b-2
26f6b652
JB
75Requires: libmad >= 0.14.2b-4
76%{?with_libresample:Requires: libresample >= 0.1.3}
368545c2 77%{?with_libsamplerate:Requires: libsamplerate >= 0.1.2}
26f6b652
JB
78Requires: libsndfile >= 1.0.0
79Requires: soundtouch >= 1.3.0
368545c2 80%{?with_soxr:Requires: soxr >= 0.0.5}
26f6b652 81Requires: twolame-libs >= 0.3.9
ccfb6b35 82BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
83
ccfb6b35 84%description
e63b61d1 85Audacity is a program that lets you manipulate digital audio
86waveforms. It imports many sound file formats, including WAV, AIFF,
87AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing
88operations such as Cut, Copy, and Paste, plus it will mix tracks and
89let you apply plug-in effects to any part of a sound.
ccfb6b35 90
22e58ff6
JR
91%description -l pl.UTF-8
92Audacity to program obsługujący różne formaty plików audio. Obsługuje
93WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umożliwia
94wykonywanie podstawowych czynności edycyjnych takich jak kasowanie,
95wstawianie i miksowanie ścieżki dźwiękowej. Umożliwia także
e63b61d1 96wykonywanie dowolnych innych operacji poprzez system wtyczek.
97
22e58ff6 98%description -l ru.UTF-8
499b2241 99Audacity - это звуковой редактор, позволяющий работать с файлами в
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
116cd lib-src/portmixer
117%{__autoconf}
319417c2
AM
118cd ../lib-widget-extra
119%{__aclocal} -I m4
120%{__autoconf}
53947ced
AM
121cd ../FileDialog
122%{__aclocal}
123%{__autoconf}
165c5a81
AM
124cd ../portsmf
125%{__aclocal} -I autotools/m4
126%{__autoconf}
a318f1e0 127%{__automake}
9237b4ef 128cd ../..
165c5a81 129%{__aclocal} -I m4
7b0bc4ba 130%{__autoconf}
66fa1502 131
4a5740eb 132export 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
149rm -rf $RPM_BUILD_ROOT
f0614d6e 150install -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
156cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
157cp -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 163mv -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
173rm -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
This page took 0.138315 seconds and 4 git commands to generate.