]>
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 libnyquist (if ever; currently it's a part of audacity project) |
76bb3c4c JB |
6 | # |
7 | # Conditional build: | |
a5f69426 KM |
8 | %bcond_without ffmpeg # build without ffmpeg support |
9 | %bcond_with gtk3 # GTK+ 3.x instead of 2.x (not fully supported) | |
250a255c JP |
10 | %bcond_without mmx # MMX instructions |
11 | %bcond_without sse # SSE instructions | |
12 | %bcond_without sse2 # SSE2 instructions | |
26f6b652 | 13 | # |
d7f44fae | 14 | %ifnarch %{x8664} x32 pentium2 pentium3 pentium4 athlon |
250a255c JP |
15 | %undefine with_mmx |
16 | %endif | |
d7f44fae | 17 | %ifnarch %{x8664} x32 pentium3 pentium4 |
250a255c JP |
18 | %undefine with_sse |
19 | %endif | |
d7f44fae | 20 | %ifnarch %{x8664} x32 pentium4 |
250a255c JP |
21 | %undefine with_sse2 |
22 | %endif | |
23 | ||
ccfb6b35 | 24 | Summary: Audacity - manipulate digital audio waveforms |
8746635e | 25 | Summary(pl.UTF-8): Audacity - narzędzie do obróbki plików dźwiękowych |
499b2241 | 26 | Summary(ru.UTF-8): Кроссплатформенный звуковой редактор |
ccfb6b35 | 27 | Name: audacity |
a5f69426 | 28 | Version: 2.4.2 |
fac097c8 | 29 | Release: 2 |
f0304893 | 30 | License: GPL v2+ |
2cf4df4e | 31 | Group: X11/Applications/Sound |
2d22a758 AO |
32 | #Source0Download: http://www.fosshub.com/Audacity.html |
33 | Source0: %{name}-minsrc-%{version}.tar.xz | |
a5f69426 | 34 | # Source0-md5: 4a34c1c66f69f1fedc400c71d5155ea8 |
2d22a758 | 35 | Source1: %{name}-manual-%{version}.zip |
a5f69426 | 36 | # Source1-md5: 084830de81c157d229089338a594baab |
2d22a758 AO |
37 | Patch0: %{name}-opt.patch |
38 | Patch1: %{name}-no-macos.patch | |
a5f69426 | 39 | Patch2: %{name}-desktop.patch |
fac097c8 | 40 | Patch3: use-system-libsbsms.patch |
5eec20a9 | 41 | URL: http://audacityteam.org/ |
368545c2 | 42 | BuildRequires: alsa-lib-devel |
47047e58 | 43 | BuildRequires: autoconf >= 2.59 |
5eec20a9 | 44 | BuildRequires: automake >= 1:1.9 |
9237b4ef | 45 | BuildRequires: expat-devel >= 1.95 |
5eec20a9 | 46 | # libavcodec >= 51.53 libavformat >= 52.12 libavutil |
3ace0a72 | 47 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.0} |
5eec20a9 JB |
48 | BuildRequires: flac-c++-devel >= 1.3.0 |
49 | BuildRequires: gettext-tools >= 0.18 | |
50 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2.0} | |
51 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} | |
0b5e52e1 | 52 | BuildRequires: hpklinux-devel >= 4.06 |
a5f69426 | 53 | BuildRequires: jack-audio-connection-kit-devel |
368545c2 | 54 | BuildRequires: lame-libs-devel |
eb625f0f | 55 | BuildRequires: libid3tag-devel >= 0.15.0b-2 |
96c796bd | 56 | BuildRequires: libjpeg-devel |
2b86bc40 | 57 | BuildRequires: libmad-devel >= 0.14.2b-4 |
fac097c8 | 58 | BuildRequires: libsbsms2-devel >= 2.1.0 |
9237b4ef | 59 | BuildRequires: libsndfile-devel >= 1.0.0 |
f37aac25 | 60 | BuildRequires: libstdc++-devel |
5eec20a9 | 61 | BuildRequires: libtool >= 2:2 |
f37aac25 | 62 | BuildRequires: libvorbis-devel >= 1:1.0 |
5eec20a9 JB |
63 | BuildRequires: lilv-devel >= 0.16 |
64 | BuildRequires: lv2-devel | |
a5f69426 | 65 | BuildRequires: nasm |
66fa1502 | 66 | BuildRequires: pkgconfig |
a5f69426 | 67 | #BuildRequires: portaudio-devel >= 19 |
250a255c | 68 | BuildRequires: rpmbuild(macros) >= 1.742 |
9237b4ef | 69 | BuildRequires: soundtouch-devel >= 1.3.0 |
5eec20a9 | 70 | BuildRequires: soxr-devel >= 0.0.5 |
66fa1502 | 71 | BuildRequires: speex-devel |
5eec20a9 | 72 | BuildRequires: suil-devel >= 0.8.2 |
221e34e1 | 73 | BuildRequires: tar >= 1:1.22 |
47047e58 | 74 | BuildRequires: twolame-devel >= 0.3.9 |
5eec20a9 | 75 | BuildRequires: udev-devel |
50a9f1b8 | 76 | BuildRequires: unzip |
0b5e52e1 | 77 | BuildRequires: vamp-devel >= 2.0 |
112c7bc6 | 78 | BuildRequires: which |
a5f69426 KM |
79 | %{!?with_gtk3:BuildRequires: wxGTK2-unicode-devel >= 3.0.0} |
80 | %{?with_gtk3:BuildRequires: wxGTK3-unicode-devel >= 3.0.0} | |
221e34e1 | 81 | BuildRequires: xz |
4a5740eb | 82 | Requires(post,postun): shared-mime-info |
5eec20a9 | 83 | Requires: flac-c++ >= 1.3.0 |
cd38dc02 | 84 | # dlopened |
f37aac25 | 85 | Requires: lame-libs |
eb625f0f | 86 | Requires: libid3tag >= 0.15.0b-2 |
26f6b652 | 87 | Requires: libmad >= 0.14.2b-4 |
fac097c8 | 88 | Requires: libsbsms2 >= 2.1.0 |
26f6b652 | 89 | Requires: libsndfile >= 1.0.0 |
cd38dc02 | 90 | Requires: lilv >= 0.16 |
26f6b652 | 91 | Requires: soundtouch >= 1.3.0 |
a5f69426 | 92 | Requires: soxr >= 0.0.5 |
cd38dc02 | 93 | Requires: suil >= 0.8.2 |
26f6b652 | 94 | Requires: twolame-libs >= 0.3.9 |
ccfb6b35 | 95 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
96 | ||
ccfb6b35 | 97 | %description |
e63b61d1 | 98 | Audacity is a program that lets you manipulate digital audio |
99 | waveforms. It imports many sound file formats, including WAV, AIFF, | |
100 | AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing | |
101 | operations such as Cut, Copy, and Paste, plus it will mix tracks and | |
102 | let you apply plug-in effects to any part of a sound. | |
ccfb6b35 | 103 | |
22e58ff6 JR |
104 | %description -l pl.UTF-8 |
105 | Audacity to program obsługujący różne formaty plików audio. Obsługuje | |
106 | WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umożliwia | |
107 | wykonywanie podstawowych czynności edycyjnych takich jak kasowanie, | |
108 | wstawianie i miksowanie ścieżki dźwiękowej. Umożliwia także | |
e63b61d1 | 109 | wykonywanie dowolnych innych operacji poprzez system wtyczek. |
110 | ||
22e58ff6 | 111 | %description -l ru.UTF-8 |
499b2241 | 112 | Audacity - это звуковой редактор, позволяющий работать с файлами в |
113 | форматах WAV, AIFF, AU, IRCAM, MP3 и Ogg Vorbis. В нем реализованы все | |
114 | основные операции, такие как удаление, копирование, вставка, | |
115 | микширование треков и применение эффектов, оформленных в виде | |
116 | плагинов, к любой части звукового файла. | |
ccfb6b35 | 117 | |
118 | %prep | |
5eec20a9 | 119 | %setup -q -n %{name}-minsrc-%{version} |
bd00c674 | 120 | %patch0 -p1 |
d43acba8 | 121 | %patch1 -p1 |
a5f69426 | 122 | %patch2 -p1 |
fac097c8 | 123 | %patch3 -p1 |
d43acba8 | 124 | |
f0304893 | 125 | %{__sed} -i 's/libmp3lame.so/libmp3lame.so.0/g' locale/*.po |
ccfb6b35 | 126 | |
fac097c8 KM |
127 | # Make sure we use the system versions. |
128 | %{__rm} -rf lib-src/{expat,ffmpeg,libflac,libid3tag,lame,lv2,libmad,libogg,libsndfile,soundtouch,libsoxr,twolame,libvamp,libvorbis,sbsms}/ | |
129 | ||
a5f69426 KM |
130 | # Audacity's cmake can't find libmp3lame without a .pc file |
131 | # This is a temporary workaround. | |
132 | if ! test -e %{_pkgconfigdir}/lame.pc | |
133 | then | |
134 | echo "creating lame.pc" | |
135 | cat << EOF > lame.pc | |
136 | prefix=%{_prefix} | |
137 | libdir=%{_libdir} | |
138 | includedir=%{_includedir}/lame | |
139 | ||
140 | Name: mp3lame | |
141 | Description: encoder that converts audio to the MP3 file format. | |
142 | Version: 3.100 | |
143 | Libs: -L${libdir} -lmp3lame | |
144 | Cflags: -I${includedir} | |
145 | EOF | |
146 | fi | |
147 | ||
ccfb6b35 | 148 | %build |
a5f69426 KM |
149 | if ! test -e %{_pkgconfigdir}/lame.pc |
150 | then | |
151 | export PKG_CONFIG_PATH="`echo $PWD`:%{_pkgconfigdir}" | |
152 | fi | |
153 | ||
154 | mkdir -p build | |
155 | cd build | |
156 | %cmake .. \ | |
250a255c JP |
157 | %{cmake_on_off mmx HAVE_MMX} \ |
158 | %{cmake_on_off sse HAVE_SSE} \ | |
159 | %{cmake_on_off sse2 HAVE_SSE2} \ | |
a5f69426 | 160 | -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=$(which wx-gtk%{?with_gtk3:3}%{!?with_gtk3:2}-unicode-config) \ |
782aef5f | 161 | %{!?with_ffmpeg:-Daudacity_use_ffmpeg:STRING=off} |
f37aac25 | 162 | |
66fa1502 | 163 | %{__make} |
ccfb6b35 | 164 | |
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
2fc00596 | 167 | |
a5f69426 | 168 | cd build |
2fc00596 | 169 | %{__make} install \ |
5d743886 AF |
170 | DESTDIR=$RPM_BUILD_ROOT \ |
171 | INSTALL_PATH=$RPM_BUILD_ROOT | |
a5f69426 | 172 | cd .. |
2fc00596 | 173 | |
4a5740eb | 174 | %{__unzip} -qq -a %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name}/help |
96c796bd | 175 | |
fed869ef | 176 | # unify locale names |
a5f69426 KM |
177 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{ca_ES@valencia,ca@valencia} |
178 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt} | |
179 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr} | |
180 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS@latin,sr@latin} | |
181 | ||
182 | # remove unsupported locale | |
183 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/eu_ES | |
184 | ||
185 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity.xpm | |
186 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity16.xpm | |
187 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity32.xpm | |
188 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/gnome-mime-application-x-audacity-project.xpm | |
af53b6da | 189 | |
a5f69426 KM |
190 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/README.txt |
191 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/LICENSE.txt | |
192 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
193 | ||
194 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48}/apps | |
195 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,16x16/apps}/%{name}.png | |
196 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{22x22,22x22/apps}/%{name}.png | |
197 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{24x24,24x24/apps}/%{name}.png | |
198 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{32x32,32x32/apps}/%{name}.png | |
199 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{48x48,48x48/apps}/%{name}.png | |
3d2cf8a3 | 200 | |
2d22a758 | 201 | |
2fc00596 | 202 | %find_lang %{name} |
0077a945 | 203 | |
ccfb6b35 | 204 | %clean |
205 | rm -rf $RPM_BUILD_ROOT | |
206 | ||
96819fa7 JK |
207 | %post |
208 | %update_mime_database | |
209 | ||
210 | %postun | |
211 | %update_mime_database | |
212 | ||
2fc00596 | 213 | %files -f %{name}.lang |
ccfb6b35 | 214 | %defattr(644,root,root,755) |
2d22a758 | 215 | %doc README.txt LICENSE.txt |
0077a945 | 216 | %attr(755,root,root) %{_bindir}/audacity |
4a5740eb | 217 | %dir %{_datadir}/%{name} |
a5f69426 KM |
218 | %dir %{_datadir}/%{name}/modules |
219 | %attr(755,root,root) %{_datadir}/%{name}/modules/mod-script-pipe.so | |
4a5740eb ER |
220 | %{_datadir}/%{name}/nyquist |
221 | %{_datadir}/%{name}/plug-ins | |
0b5e52e1 | 222 | %{_datadir}/%{name}/EQDefaultCurves.xml |
4a5740eb | 223 | %doc %{_datadir}/%{name}/help |
47047e58 JB |
224 | %{_mandir}/man1/audacity.1* |
225 | %{_desktopdir}/audacity.desktop | |
5eec20a9 | 226 | %{_datadir}/appdata/audacity.appdata.xml |
96819fa7 | 227 | %{_datadir}/mime/packages/audacity.xml |
a5f69426 | 228 | %{_iconsdir}/hicolor/*/apps/*.* |