]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - internal portaudio crashes when only OSS is available on startup | |
3 | # - use system portaudio (>= 19, but relies on local changes) | |
4 | # - use system portSMF? | |
5 | # - use system libnyquist (if ever; currently it's a part of audacity project) | |
6 | # | |
7 | # Conditional build: | |
8 | %bcond_without ffmpeg # build without ffmpeg support | |
9 | %bcond_without gtk3 # GTK+ 3.x instead of 2.x (not fully supported) | |
10 | %bcond_without mmx # MMX instructions | |
11 | %bcond_without sse # SSE instructions | |
12 | %bcond_without sse2 # SSE2 instructions | |
13 | # | |
14 | %ifnarch %{x8664} x32 pentium2 pentium3 pentium4 athlon | |
15 | %undefine with_mmx | |
16 | %endif | |
17 | %ifnarch %{x8664} x32 pentium3 pentium4 | |
18 | %undefine with_sse | |
19 | %endif | |
20 | %ifnarch %{x8664} x32 pentium4 | |
21 | %undefine with_sse2 | |
22 | %endif | |
23 | ||
24 | Summary: Audacity - manipulate digital audio waveforms | |
25 | Summary(pl.UTF-8): Audacity - narzędzie do obróbki plików dźwiękowych | |
26 | Summary(ru.UTF-8): Кроссплатформенный звуковой редактор | |
27 | Name: audacity | |
28 | Version: 3.3.3 | |
29 | Release: 2 | |
30 | License: GPL v2+ | |
31 | Group: X11/Applications/Sound | |
32 | Source0: https://github.com/audacity/audacity/releases/download/Audacity-%{version}/%{name}-sources-%{version}.tar.gz | |
33 | # Source0-md5: c69f2091ef0b65022e19ccce62379ff2 | |
34 | Source1: https://github.com/audacity/audacity-manual/releases/download/v%{version}/%{name}-manual-%{version}.tar.gz | |
35 | # Source1-md5: cd0ad05077976c51889a13081910462e | |
36 | Patch0: msgstr-format.patch | |
37 | URL: http://audacityteam.org/ | |
38 | BuildRequires: alsa-lib-devel | |
39 | BuildRequires: autoconf >= 2.59 | |
40 | BuildRequires: automake >= 1:1.9 | |
41 | BuildRequires: chrpath | |
42 | BuildRequires: expat-devel >= 1.95 | |
43 | # libavcodec >= 51.53 libavformat >= 52.12 libavutil | |
44 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.0} | |
45 | BuildRequires: flac-c++-devel >= 1.3.0 | |
46 | BuildRequires: gettext-tools >= 0.18 | |
47 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2.0} | |
48 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} | |
49 | BuildRequires: hpklinux-devel >= 4.06 | |
50 | BuildRequires: jack-audio-connection-kit-devel | |
51 | BuildRequires: libid3tag-devel >= 0.15.0b-2 | |
52 | BuildRequires: libjpeg-devel | |
53 | BuildRequires: libmad-devel >= 0.14.2b-4 | |
54 | BuildRequires: libsbsms2-devel >= 2.1.0 | |
55 | BuildRequires: libsndfile-devel >= 1.0.0 | |
56 | BuildRequires: libstdc++-devel | |
57 | BuildRequires: libtool >= 2:2 | |
58 | BuildRequires: libvorbis-devel >= 1:1.0 | |
59 | BuildRequires: lilv-devel >= 0.16 | |
60 | BuildRequires: lv2-devel | |
61 | BuildRequires: nasm | |
62 | BuildRequires: pkgconfig | |
63 | #BuildRequires: portaudio-devel >= 19 | |
64 | BuildRequires: rpmbuild(macros) >= 1.742 | |
65 | BuildRequires: soundtouch-devel >= 1.3.0 | |
66 | BuildRequires: soxr-devel >= 0.0.5 | |
67 | BuildRequires: speex-devel | |
68 | BuildRequires: suil-devel >= 0.8.2 | |
69 | BuildRequires: tar >= 1:1.22 | |
70 | BuildRequires: twolame-devel >= 0.3.9 | |
71 | BuildRequires: udev-devel | |
72 | BuildRequires: unzip | |
73 | BuildRequires: vamp-devel >= 2.0 | |
74 | BuildRequires: which | |
75 | %{!?with_gtk3:BuildRequires: wxGTK2-unicode-devel >= 3.1.3} | |
76 | %{?with_gtk3:BuildRequires: wxGTK3-unicode-devel >= 3.1.3} | |
77 | BuildRequires: xz | |
78 | Requires(post,postun): shared-mime-info | |
79 | Requires: flac-c++ >= 1.3.0 | |
80 | # dlopened | |
81 | Requires: libid3tag >= 0.15.0b-2 | |
82 | Requires: libmad >= 0.14.2b-4 | |
83 | Requires: libsbsms2 >= 2.1.0 | |
84 | Requires: libsndfile >= 1.0.0 | |
85 | Requires: lilv >= 0.16 | |
86 | Requires: soundtouch >= 1.3.0 | |
87 | Requires: soxr >= 0.0.5 | |
88 | Requires: suil >= 0.8.2 | |
89 | Requires: twolame-libs >= 0.3.9 | |
90 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
91 | ||
92 | %description | |
93 | Audacity is a program that lets you manipulate digital audio | |
94 | waveforms. It imports many sound file formats, including WAV, AIFF, | |
95 | AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing | |
96 | operations such as Cut, Copy, and Paste, plus it will mix tracks and | |
97 | let you apply plug-in effects to any part of a sound. | |
98 | ||
99 | %description -l pl.UTF-8 | |
100 | Audacity to program obsługujący różne formaty plików audio. Obsługuje | |
101 | WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umożliwia | |
102 | wykonywanie podstawowych czynności edycyjnych takich jak kasowanie, | |
103 | wstawianie i miksowanie ścieżki dźwiękowej. Umożliwia także | |
104 | wykonywanie dowolnych innych operacji poprzez system wtyczek. | |
105 | ||
106 | %description -l ru.UTF-8 | |
107 | Audacity - это звуковой редактор, позволяющий работать с файлами в | |
108 | форматах WAV, AIFF, AU, IRCAM, MP3 и Ogg Vorbis. В нем реализованы все | |
109 | основные операции, такие как удаление, копирование, вставка, | |
110 | микширование треков и применение эффектов, оформленных в виде | |
111 | плагинов, к любой части звукового файла. | |
112 | ||
113 | %prep | |
114 | %setup -q -n %{name}-sources-%{version} | |
115 | %patch0 -p1 | |
116 | ||
117 | # Make sure we use the system versions. | |
118 | %{__rm} -r lib-src/{lv2,soundtouch,libsoxr,twolame,libvamp}/ | |
119 | ||
120 | %build | |
121 | mkdir -p build | |
122 | cd build | |
123 | %cmake .. \ | |
124 | %{cmake_on_off mmx HAVE_MMX} \ | |
125 | %{cmake_on_off sse HAVE_SSE} \ | |
126 | %{cmake_on_off sse2 HAVE_SSE2} \ | |
127 | -Daudacity_conan_enabled=OFF \ | |
128 | -Daudacity_has_crashreports=OFF \ | |
129 | -Daudacity_has_updates_check=OFF \ | |
130 | -Daudacity_has_sentry_reporting=OFF \ | |
131 | -Daudacity_has_networking=OFF \ | |
132 | -Daudacity_has_vst3=OFF \ | |
133 | -Daudacity_lib_preference=system \ | |
134 | -Daudacity_obey_system_dependencies=ON \ | |
135 | -Daudacity_use_wxwidgets=system \ | |
136 | -Daudacity_use_sqlite=system \ | |
137 | -Daudacity_use_libsndfile=system \ | |
138 | -Daudacity_use_soxr=system \ | |
139 | -Daudacity_use_lame=system \ | |
140 | -Daudacity_use_twolame=system \ | |
141 | -Daudacity_use_libflac=system \ | |
142 | -Daudacity_use_ladspa=on \ | |
143 | -Daudacity_use_libvorbis=system \ | |
144 | -Daudacity_use_libid3tag=system \ | |
145 | -Daudacity_use_expat=system \ | |
146 | -Daudacity_use_soundtouch=system \ | |
147 | -Daudacity_use_vamp=system \ | |
148 | -Daudacity_use_lv2=system \ | |
149 | -Daudacity_use_portaudio=system \ | |
150 | -Daudacity_use_midi=system \ | |
151 | -Daudacity_use_libogg=system \ | |
152 | -Daudacity_use_portsmf=local \ | |
153 | -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=$(which wx-gtk%{?with_gtk3:3}%{!?with_gtk3:2}-unicode-config) \ | |
154 | %if %{with ffmpeg} | |
155 | -Daudacity_use_ffmpeg=loaded | |
156 | %else | |
157 | -Daudacity_use_ffmpeg=off | |
158 | %endif | |
159 | ||
160 | %{__make} | |
161 | ||
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
165 | cd build | |
166 | %{__make} install \ | |
167 | DESTDIR=$RPM_BUILD_ROOT \ | |
168 | INSTALL_PATH=$RPM_BUILD_ROOT | |
169 | cd .. | |
170 | ||
171 | # audacity needs to know where its libraries are... | |
172 | chrpath --replace %{_libdir}/%{name} $RPM_BUILD_ROOT/%{_bindir}/audacity | |
173 | ||
174 | # ..but the libraries don't need RPATH | |
175 | for lib in $RPM_BUILD_ROOT/%{_libdir}/%{name}/{,modules/}*.so ; do | |
176 | chrpath --delete $lib | |
177 | done | |
178 | ||
179 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/help | |
180 | %{__tar} xf %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir}/%{name}/help | |
181 | ||
182 | # unify locale names | |
183 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{ca_ES@valencia,ca@valencia} | |
184 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt} | |
185 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr} | |
186 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS@latin,sr@latin} | |
187 | ||
188 | # remove unsupported locale | |
189 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/eu_ES | |
190 | ||
191 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity.xpm | |
192 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity16.xpm | |
193 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity32.xpm | |
194 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/gnome-mime-application-x-audacity-project.xpm | |
195 | ||
196 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/README.md | |
197 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/LICENSE.txt | |
198 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
199 | ||
200 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48}/apps | |
201 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,16x16/apps}/%{name}.png | |
202 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{22x22,22x22/apps}/%{name}.png | |
203 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{24x24,24x24/apps}/%{name}.png | |
204 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{32x32,32x32/apps}/%{name}.png | |
205 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{48x48,48x48/apps}/%{name}.png | |
206 | ||
207 | ||
208 | %find_lang %{name} | |
209 | ||
210 | %clean | |
211 | rm -rf $RPM_BUILD_ROOT | |
212 | ||
213 | %post | |
214 | %update_mime_database | |
215 | ||
216 | %postun | |
217 | %update_mime_database | |
218 | ||
219 | %files -f %{name}.lang | |
220 | %defattr(644,root,root,755) | |
221 | %doc README.md LICENSE.txt | |
222 | %attr(755,root,root) %{_bindir}/audacity | |
223 | %dir %{_libdir}/%{name} | |
224 | %attr(755,root,root) %{_libdir}/%{name}/lib-*.so | |
225 | %dir %{_libdir}/%{name}/modules | |
226 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-script-pipe.so | |
227 | %dir %{_datadir}/%{name} | |
228 | %{_datadir}/%{name}/help | |
229 | %{_datadir}/%{name}/nyquist | |
230 | %{_datadir}/%{name}/plug-ins | |
231 | %{_datadir}/%{name}/EffectsMenuDefaults.xml | |
232 | %{_mandir}/man1/audacity.1* | |
233 | %{_desktopdir}/audacity.desktop | |
234 | %{_metainfodir}/audacity.appdata.xml | |
235 | %{_datadir}/mime/packages/audacity.xml | |
236 | %{_iconsdir}/hicolor/*/apps/*.* |