]> git.pld-linux.org Git - packages/audacity.git/blame - audacity.spec
- Added missing Rs.
[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?
5eec20a9 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:
3ace0a72 10%bcond_with ffmpeg # build with ffmpeg support (currently audacity does not support ffmpeg 1.0)
5eec20a9 11%bcond_with gtk3 # GTK+ 3.x instead of 2.x
26f6b652 12#
ccfb6b35 13Summary: Audacity - manipulate digital audio waveforms
8746635e 14Summary(pl.UTF-8): Audacity - narzędzie do obróbki plików dźwiękowych
499b2241 15Summary(ru.UTF-8): Кроссплатформенный звуковой редактор
ccfb6b35 16Name: audacity
5eec20a9
JB
17Version: 2.1.1
18Release: 1
f0304893 19License: GPL v2+
2cf4df4e 20Group: X11/Applications/Sound
5eec20a9
JB
21#Source0Download: http://www.oldfoss.com/Audacity.html
22Source0: http://app.oldfoss.com:81/download/Audacity/%{name}-minsrc-%{version}.tar.xz
23# Source0-md5: 9e37b1f5cde38d089a35febb904a9e39
24Source1: http://app.oldfoss.com:81/download/Audacity/%{name}-manual-%{version}.zip
25# Source1-md5: a4116a20798b827cd1e06e50c8099aa6
4a5740eb
ER
26Source2: %{name}.desktop
27Source3: %{name}-icon.png
5eec20a9 28Patch0: %{name}-cast.patch
165c5a81 29Patch1: %{name}-opt.patch
65b59bb1 30Patch2: %{name}-no-macos.patch
5eec20a9 31URL: http://audacityteam.org/
368545c2 32BuildRequires: alsa-lib-devel
47047e58 33BuildRequires: autoconf >= 2.59
5eec20a9 34BuildRequires: automake >= 1:1.9
9237b4ef 35BuildRequires: expat-devel >= 1.95
5eec20a9 36# libavcodec >= 51.53 libavformat >= 52.12 libavutil
3ace0a72 37%{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.0}
5eec20a9
JB
38BuildRequires: flac-c++-devel >= 1.3.0
39BuildRequires: gettext-tools >= 0.18
40%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2.0}
41%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
368545c2 42BuildRequires: jack-audio-connection-kit-devel
0b5e52e1 43BuildRequires: hpklinux-devel >= 4.06
368545c2 44BuildRequires: lame-libs-devel
eb625f0f 45BuildRequires: libid3tag-devel >= 0.15.0b-2
96c796bd 46BuildRequires: libjpeg-devel
2b86bc40 47BuildRequires: libmad-devel >= 0.14.2b-4
0b5e52e1 48#BuildRequires: libsbsms-devel >= 1.6.0
5eec20a9 49#BuildRequires: libsbsms2-devel >= 2.0.2
9237b4ef 50BuildRequires: libsndfile-devel >= 1.0.0
f37aac25 51BuildRequires: libstdc++-devel
5eec20a9 52BuildRequires: libtool >= 2:2
f37aac25 53BuildRequires: libvorbis-devel >= 1:1.0
5eec20a9
JB
54BuildRequires: lilv-devel >= 0.16
55BuildRequires: lv2-devel
0b5e52e1 56#BuildRequires: portaudio-devel >= 19
66fa1502 57BuildRequires: pkgconfig
9237b4ef 58BuildRequires: soundtouch-devel >= 1.3.0
5eec20a9 59BuildRequires: soxr-devel >= 0.0.5
66fa1502 60BuildRequires: speex-devel
5eec20a9 61BuildRequires: suil-devel >= 0.8.2
47047e58 62BuildRequires: twolame-devel >= 0.3.9
5eec20a9 63BuildRequires: udev-devel
50a9f1b8 64BuildRequires: unzip
0b5e52e1 65BuildRequires: vamp-devel >= 2.0
112c7bc6 66BuildRequires: which
5eec20a9
JB
67%{!?with_gtk3:BuildRequires: wxGTK2-unicode-devel >= 2.8.0}
68%{?with_gtk3:BuildRequires: wxGTK3-unicode-devel >= 2.8.0}
4a5740eb 69Requires(post,postun): shared-mime-info
5eec20a9 70Requires: flac-c++ >= 1.3.0
f37aac25 71Requires: lame-libs
eb625f0f 72Requires: libid3tag >= 0.15.0b-2
26f6b652 73Requires: libmad >= 0.14.2b-4
26f6b652 74Requires: libsndfile >= 1.0.0
ee784e76 75Requires: lilv
26f6b652 76Requires: soundtouch >= 1.3.0
368545c2 77%{?with_soxr:Requires: soxr >= 0.0.5}
ee784e76 78Requires: suil
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
5eec20a9
JB
103%package devel
104Summary: Header files for Audacity interfaces
105Summary(pl.UTF-8): Pliki nagłówkowe interfejsów Audacity
106Group: Development/Libraries
107Requires: libstdc++-devel
108Requires: wxWidgets-devel >= 2.8.0
109# doesn't require base
110
111%description devel
112Header files for Audacity interfaces.
113
114%description devel -l pl.UTF-8
115Pliki nagłówkowe interfejsów Audacity.
116
ccfb6b35 117%prep
5eec20a9 118%setup -q -n %{name}-minsrc-%{version}
bd00c674 119%patch0 -p1
d43acba8 120%patch1 -p1
65b59bb1 121%patch2 -p1
5eec20a9
JB
122
123# OPTIONAL_SUBDIRS are not included in tarball; allow autotools to work
124%{__sed} -i '/SUBDIRS += \$(OPTIONAL_SUBDIRS)/d' lib-src/Makefile.am
d43acba8 125
f0304893 126%{__sed} -i 's/libmp3lame.so/libmp3lame.so.0/g' locale/*.po
ccfb6b35 127
128%build
9237b4ef 129cd lib-src/portmixer
5eec20a9
JB
130%{__libtoolize}
131%{__aclocal} -I m4
9237b4ef 132%{__autoconf}
5eec20a9 133%{__automake}
319417c2 134cd ../lib-widget-extra
5eec20a9 135%{__libtoolize}
319417c2
AM
136%{__aclocal} -I m4
137%{__autoconf}
5eec20a9 138%{__automake}
53947ced 139cd ../FileDialog
5eec20a9
JB
140%{__libtoolize}
141%{__aclocal} -I m4
53947ced 142%{__autoconf}
5eec20a9 143%{__automake}
165c5a81
AM
144cd ../portsmf
145%{__aclocal} -I autotools/m4
146%{__autoconf}
a318f1e0 147%{__automake}
9237b4ef 148cd ../..
5eec20a9 149%{__libtoolize}
165c5a81 150%{__aclocal} -I m4
7b0bc4ba 151%{__autoconf}
5eec20a9 152%{__automake}
66fa1502 153
5eec20a9 154export WX_CONFIG=$(which wx-gtk%{?with_gtk3:3}%{!?with_gtk3:2}-unicode-config)
96c796bd 155%configure \
5eec20a9 156 %{?with_gtk3:--enable-gtk3} \
368545c2 157 --with-ffmpeg%{!?with_ffmpeg:=no} \
5d743886 158 --with-help \
eb625f0f 159 --with-id3tag=system \
2fc00596
JB
160 --with-libmad=system \
161 --with-libsndfile=system \
fa3bcf7e 162 --with-libflac=system \
0b5e52e1 163 --with-sbsms=local \
5eec20a9 164 --with-soxr=system \
cb59e0ce 165 --with-vorbis=system
f37aac25 166
66fa1502 167%{__make}
ccfb6b35 168
169%install
170rm -rf $RPM_BUILD_ROOT
f0614d6e 171install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
2fc00596
JB
172
173%{__make} install \
5d743886
AF
174 DESTDIR=$RPM_BUILD_ROOT \
175 INSTALL_PATH=$RPM_BUILD_ROOT
2fc00596 176
5eec20a9
JB
177# install headers in standard location
178install -d $RPM_BUILD_ROOT%{_includedir}
179%{__mv} $RPM_BUILD_ROOT%{_datadir}/audacity/include/audacity $RPM_BUILD_ROOT%{_includedir}
180rmdir $RPM_BUILD_ROOT%{_datadir}/audacity/include
181
4a5740eb
ER
182cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
183cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
184%{__unzip} -qq -a %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name}/help
96c796bd 185
9e7433ca 186# unsupported
3ff8b61f 187%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS*
ee784e76 188%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ca_ES@valencia
9e7433ca 189
5eec20a9 190%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN}
af53b6da 191
47047e58
JB
192%{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity.xpm
193%{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity16.xpm
194%{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity32.xpm
195%{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project.xpm
3d2cf8a3 196
2fc00596 197%find_lang %{name}
0077a945 198
ccfb6b35 199%clean
200rm -rf $RPM_BUILD_ROOT
201
96819fa7
JK
202%post
203%update_mime_database
204
205%postun
206%update_mime_database
207
2fc00596 208%files -f %{name}.lang
ccfb6b35 209%defattr(644,root,root,755)
f37aac25 210%doc README.txt
0077a945 211%attr(755,root,root) %{_bindir}/audacity
4a5740eb 212%dir %{_datadir}/%{name}
4a5740eb
ER
213%{_datadir}/%{name}/nyquist
214%{_datadir}/%{name}/plug-ins
0b5e52e1 215%{_datadir}/%{name}/EQDefaultCurves.xml
4a5740eb 216%doc %{_datadir}/%{name}/help
47047e58
JB
217%{_mandir}/man1/audacity.1*
218%{_desktopdir}/audacity.desktop
219%{_pixmapsdir}/audacity-icon.png
5eec20a9 220%{_datadir}/appdata/audacity.appdata.xml
96819fa7 221%{_datadir}/mime/packages/audacity.xml
2c05313b 222%{_iconsdir}/hicolor/*/apps/audacity.png
5ea9b1e7 223%{_iconsdir}/hicolor/*/apps/audacity.svg
5eec20a9
JB
224
225%files devel
226%defattr(644,root,root,755)
227%{_includedir}/audacity
This page took 0.06455 seconds and 4 git commands to generate.