]>
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 | 8 | %bcond_without ffmpeg # build without ffmpeg support |
bcf5fbff | 9 | %bcond_without 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 |
b8c2fbb7 KM |
28 | Version: 3.4.2 |
29 | Release: 1 | |
f0304893 | 30 | License: GPL v2+ |
2cf4df4e | 31 | Group: X11/Applications/Sound |
1d790429 | 32 | Source0: https://github.com/audacity/audacity/releases/download/Audacity-%{version}/%{name}-sources-%{version}.tar.gz |
b8c2fbb7 | 33 | # Source0-md5: f8f96e980b5a880e5be4cd066662b290 |
1d790429 | 34 | Source1: https://github.com/audacity/audacity-manual/releases/download/v%{version}/%{name}-manual-%{version}.tar.gz |
b8c2fbb7 | 35 | # Source1-md5: 1f2c795afdcbe3f53076c4a8d11094d1 |
5eec20a9 | 36 | URL: http://audacityteam.org/ |
368545c2 | 37 | BuildRequires: alsa-lib-devel |
bcf5fbff | 38 | BuildRequires: chrpath |
09ebef57 | 39 | BuildRequires: cmake >= 3.15 |
9237b4ef | 40 | BuildRequires: expat-devel >= 1.95 |
5eec20a9 | 41 | # libavcodec >= 51.53 libavformat >= 52.12 libavutil |
3ace0a72 | 42 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.0} |
09ebef57 | 43 | BuildRequires: flac-c++-devel >= 1.3.1 |
5eec20a9 | 44 | BuildRequires: gettext-tools >= 0.18 |
09ebef57 | 45 | BuildRequires: glib2-devel |
5eec20a9 JB |
46 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2.0} |
47 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} | |
09ebef57 | 48 | BuildRequires: lame-libs-devel |
eb625f0f | 49 | BuildRequires: libid3tag-devel >= 0.15.0b-2 |
09ebef57 JP |
50 | BuildRequires: libmpg123-devel |
51 | BuildRequires: libogg-devel | |
52 | BuildRequires: libsbsms2-devel >= 2.2.0 | |
9237b4ef | 53 | BuildRequires: libsndfile-devel >= 1.0.0 |
09ebef57 JP |
54 | BuildRequires: libstdc++-devel >= 6:9 |
55 | BuildRequires: libuuid-devel | |
56 | BuildRequires: libvorbis-devel >= 1:1.3 | |
57 | BuildRequires: lilv-devel >= 0.24.6 | |
58 | BuildRequires: lv2-devel >= 1.16.0 | |
b8c2fbb7 | 59 | BuildRequires: opusfile-devel |
66fa1502 | 60 | BuildRequires: pkgconfig |
09ebef57 JP |
61 | BuildRequires: portaudio-devel >= 19 |
62 | BuildRequires: portmidi-devel | |
63 | BuildRequires: python3 | |
b8c2fbb7 | 64 | BuildRequires: rapidjson-devel |
250a255c | 65 | BuildRequires: rpmbuild(macros) >= 1.742 |
09ebef57 JP |
66 | BuildRequires: serd-devel >= 0.30.2 |
67 | BuildRequires: sord-devel >= 0.16.4 | |
68 | BuildRequires: soundtouch-devel >= 1.7.1 | |
69 | BuildRequires: soxr-devel >= 0.1.1 | |
66fa1502 | 70 | BuildRequires: speex-devel |
09ebef57 JP |
71 | BuildRequires: sqlite3-devel >= 3.31.1 |
72 | BuildRequires: sratom-devel >= 0.6.4 | |
73 | BuildRequires: suil-devel >= 0.10.6 | |
221e34e1 | 74 | BuildRequires: tar >= 1:1.22 |
09ebef57 | 75 | BuildRequires: twolame-devel >= 0.3.13 |
5eec20a9 | 76 | BuildRequires: udev-devel |
50a9f1b8 | 77 | BuildRequires: unzip |
09ebef57 JP |
78 | BuildRequires: vamp-devel >= 2.5 |
79 | BuildRequires: wavpack-devel | |
112c7bc6 | 80 | BuildRequires: which |
bcf5fbff JR |
81 | %{!?with_gtk3:BuildRequires: wxGTK2-unicode-devel >= 3.1.3} |
82 | %{?with_gtk3:BuildRequires: wxGTK3-unicode-devel >= 3.1.3} | |
221e34e1 | 83 | BuildRequires: xz |
09ebef57 | 84 | BuildRequires: zlib-devel |
1c304787 JP |
85 | Requires(post,postun): desktop-file-utils |
86 | Requires(post,postun): gtk-update-icon-cache | |
4a5740eb | 87 | Requires(post,postun): shared-mime-info |
09ebef57 | 88 | Requires: flac-c++ >= 1.3.1 |
1c304787 | 89 | Requires: hicolor-icon-theme |
cd38dc02 | 90 | # dlopened |
09ebef57 | 91 | Requires: lame-libs |
eb625f0f | 92 | Requires: libid3tag >= 0.15.0b-2 |
09ebef57 | 93 | Requires: libsbsms2 >= 2.2.0 |
26f6b652 | 94 | Requires: libsndfile >= 1.0.0 |
09ebef57 JP |
95 | Requires: libvorbis >= 1:1.3 |
96 | Requires: lilv >= 0.24.6 | |
97 | Requires: soundtouch >= 1.7.1 | |
98 | Requires: soxr >= 0.1.1 | |
99 | Requires: sqlite3-libs >= 3.31.1 | |
100 | Requires: suil >= 0.10.6 | |
101 | Requires: twolame-libs >= 0.3.13 | |
ccfb6b35 | 102 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
103 | ||
708ea8a9 JP |
104 | %define _noautoprov lib-.*.so |
105 | %define _noautoreq lib-.*.so | |
106 | ||
ccfb6b35 | 107 | %description |
e63b61d1 | 108 | Audacity is a program that lets you manipulate digital audio |
109 | waveforms. It imports many sound file formats, including WAV, AIFF, | |
110 | AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing | |
111 | operations such as Cut, Copy, and Paste, plus it will mix tracks and | |
112 | let you apply plug-in effects to any part of a sound. | |
ccfb6b35 | 113 | |
22e58ff6 JR |
114 | %description -l pl.UTF-8 |
115 | Audacity to program obsługujący różne formaty plików audio. Obsługuje | |
116 | WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umożliwia | |
117 | wykonywanie podstawowych czynności edycyjnych takich jak kasowanie, | |
118 | wstawianie i miksowanie ścieżki dźwiękowej. Umożliwia także | |
e63b61d1 | 119 | wykonywanie dowolnych innych operacji poprzez system wtyczek. |
120 | ||
22e58ff6 | 121 | %description -l ru.UTF-8 |
499b2241 | 122 | Audacity - это звуковой редактор, позволяющий работать с файлами в |
123 | форматах WAV, AIFF, AU, IRCAM, MP3 и Ogg Vorbis. В нем реализованы все | |
124 | основные операции, такие как удаление, копирование, вставка, | |
125 | микширование треков и применение эффектов, оформленных в виде | |
126 | плагинов, к любой части звукового файла. | |
ccfb6b35 | 127 | |
128 | %prep | |
1d790429 | 129 | %setup -q -n %{name}-sources-%{version} |
ccfb6b35 | 130 | |
fac097c8 | 131 | # Make sure we use the system versions. |
1d790429 | 132 | %{__rm} -r lib-src/{lv2,soundtouch,libsoxr,twolame,libvamp}/ |
a5f69426 | 133 | |
ccfb6b35 | 134 | %build |
a5f69426 KM |
135 | mkdir -p build |
136 | cd build | |
137 | %cmake .. \ | |
250a255c JP |
138 | %{cmake_on_off mmx HAVE_MMX} \ |
139 | %{cmake_on_off sse HAVE_SSE} \ | |
140 | %{cmake_on_off sse2 HAVE_SSE2} \ | |
1d790429 JR |
141 | -Daudacity_conan_enabled=OFF \ |
142 | -Daudacity_has_crashreports=OFF \ | |
143 | -Daudacity_has_updates_check=OFF \ | |
144 | -Daudacity_has_sentry_reporting=OFF \ | |
145 | -Daudacity_has_networking=OFF \ | |
146 | -Daudacity_has_vst3=OFF \ | |
147 | -Daudacity_lib_preference=system \ | |
148 | -Daudacity_obey_system_dependencies=ON \ | |
149 | -Daudacity_use_wxwidgets=system \ | |
150 | -Daudacity_use_sqlite=system \ | |
151 | -Daudacity_use_libsndfile=system \ | |
152 | -Daudacity_use_soxr=system \ | |
153 | -Daudacity_use_lame=system \ | |
154 | -Daudacity_use_twolame=system \ | |
155 | -Daudacity_use_libflac=system \ | |
156 | -Daudacity_use_ladspa=on \ | |
157 | -Daudacity_use_libvorbis=system \ | |
158 | -Daudacity_use_libid3tag=system \ | |
159 | -Daudacity_use_expat=system \ | |
160 | -Daudacity_use_soundtouch=system \ | |
161 | -Daudacity_use_vamp=system \ | |
162 | -Daudacity_use_lv2=system \ | |
163 | -Daudacity_use_portaudio=system \ | |
164 | -Daudacity_use_midi=system \ | |
165 | -Daudacity_use_libogg=system \ | |
166 | -Daudacity_use_portsmf=local \ | |
a5f69426 | 167 | -DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=$(which wx-gtk%{?with_gtk3:3}%{!?with_gtk3:2}-unicode-config) \ |
1d790429 JR |
168 | %if %{with ffmpeg} |
169 | -Daudacity_use_ffmpeg=loaded | |
170 | %else | |
171 | -Daudacity_use_ffmpeg=off | |
172 | %endif | |
f37aac25 | 173 | |
66fa1502 | 174 | %{__make} |
ccfb6b35 | 175 | |
176 | %install | |
177 | rm -rf $RPM_BUILD_ROOT | |
2fc00596 | 178 | |
a5f69426 | 179 | cd build |
2fc00596 | 180 | %{__make} install \ |
5d743886 AF |
181 | DESTDIR=$RPM_BUILD_ROOT \ |
182 | INSTALL_PATH=$RPM_BUILD_ROOT | |
a5f69426 | 183 | cd .. |
2fc00596 | 184 | |
bcf5fbff | 185 | # audacity needs to know where its libraries are... |
b8c2fbb7 | 186 | chrpath --replace %{_libdir}/%{name} $RPM_BUILD_ROOT%{_bindir}/audacity |
bcf5fbff JR |
187 | |
188 | # ..but the libraries don't need RPATH | |
b8c2fbb7 | 189 | for lib in $RPM_BUILD_ROOT%{_libdir}/%{name}/{,modules/}*.so ; do |
bcf5fbff JR |
190 | chrpath --delete $lib |
191 | done | |
192 | ||
1d790429 JR |
193 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/help |
194 | %{__tar} xf %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir}/%{name}/help | |
96c796bd | 195 | |
fed869ef | 196 | # unify locale names |
a5f69426 KM |
197 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{ca_ES@valencia,ca@valencia} |
198 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt} | |
199 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr} | |
200 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS@latin,sr@latin} | |
201 | ||
202 | # remove unsupported locale | |
f5890641 | 203 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{co,eu_ES} |
a5f69426 KM |
204 | |
205 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity.xpm | |
206 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity16.xpm | |
207 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/audacity32.xpm | |
208 | %{__rm} $RPM_BUILD_ROOT%{_pixmapsdir}/gnome-mime-application-x-audacity-project.xpm | |
af53b6da | 209 | |
1d790429 | 210 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/README.md |
a5f69426 KM |
211 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/LICENSE.txt |
212 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
213 | ||
214 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48}/apps | |
215 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,16x16/apps}/%{name}.png | |
216 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{22x22,22x22/apps}/%{name}.png | |
217 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{24x24,24x24/apps}/%{name}.png | |
218 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{32x32,32x32/apps}/%{name}.png | |
219 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{48x48,48x48/apps}/%{name}.png | |
3d2cf8a3 | 220 | |
2d22a758 | 221 | |
2fc00596 | 222 | %find_lang %{name} |
0077a945 | 223 | |
ccfb6b35 | 224 | %clean |
225 | rm -rf $RPM_BUILD_ROOT | |
226 | ||
96819fa7 JK |
227 | %post |
228 | %update_mime_database | |
1c304787 JP |
229 | %update_desktop_database_post |
230 | %update_icon_cache hicolor | |
96819fa7 JK |
231 | |
232 | %postun | |
233 | %update_mime_database | |
1c304787 JP |
234 | %update_desktop_database_postun |
235 | %update_icon_cache hicolor | |
96819fa7 | 236 | |
2fc00596 | 237 | %files -f %{name}.lang |
ccfb6b35 | 238 | %defattr(644,root,root,755) |
1d790429 | 239 | %doc README.md LICENSE.txt |
0077a945 | 240 | %attr(755,root,root) %{_bindir}/audacity |
1d790429 JR |
241 | %dir %{_libdir}/%{name} |
242 | %attr(755,root,root) %{_libdir}/%{name}/lib-*.so | |
243 | %dir %{_libdir}/%{name}/modules | |
b8c2fbb7 KM |
244 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-aup.so |
245 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-cl.so | |
246 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-ffmpeg.so | |
247 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-flac.so | |
248 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-lof.so | |
249 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-mp2.so | |
250 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-mp3.so | |
251 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-mpg123.so | |
252 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-ogg.so | |
253 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-opus.so | |
254 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-pcm.so | |
1d790429 | 255 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-script-pipe.so |
b8c2fbb7 | 256 | %attr(755,root,root) %{_libdir}/%{name}/modules/mod-wavpack.so |
4a5740eb | 257 | %dir %{_datadir}/%{name} |
1d790429 | 258 | %{_datadir}/%{name}/help |
4a5740eb ER |
259 | %{_datadir}/%{name}/nyquist |
260 | %{_datadir}/%{name}/plug-ins | |
1d790429 | 261 | %{_datadir}/%{name}/EffectsMenuDefaults.xml |
47047e58 JB |
262 | %{_mandir}/man1/audacity.1* |
263 | %{_desktopdir}/audacity.desktop | |
1d790429 | 264 | %{_metainfodir}/audacity.appdata.xml |
96819fa7 | 265 | %{_datadir}/mime/packages/audacity.xml |
a5f69426 | 266 | %{_iconsdir}/hicolor/*/apps/*.* |