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