]> git.pld-linux.org Git - packages/audacity.git/blob - audacity.spec
- new URLs, updated to 2.1.1
[packages/audacity.git] / audacity.spec
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 ffmpeg (libavcodec >= 51.53, libavformat >= 52.12, libavutil)
6 # - use system sbsms (>= 1.6.0, but relies on local changes)
7 # - use system libnyquist (if ever; currently it's a part of audacity project)
8 #
9 # Conditional build:
10 %bcond_with     ffmpeg          # build with ffmpeg support (currently audacity does not support ffmpeg 1.0)
11 %bcond_with     gtk3            # GTK+ 3.x instead of 2.x
12 #
13 Summary:        Audacity - manipulate digital audio waveforms
14 Summary(pl.UTF-8):      Audacity - narzędzie do obróbki plików dźwiękowych
15 Summary(ru.UTF-8):      Кроссплатформенный звуковой редактор
16 Name:           audacity
17 Version:        2.1.1
18 Release:        1
19 License:        GPL v2+
20 Group:          X11/Applications/Sound
21 #Source0Download: http://www.oldfoss.com/Audacity.html
22 Source0:        http://app.oldfoss.com:81/download/Audacity/%{name}-minsrc-%{version}.tar.xz
23 # Source0-md5:  9e37b1f5cde38d089a35febb904a9e39
24 Source1:        http://app.oldfoss.com:81/download/Audacity/%{name}-manual-%{version}.zip
25 # Source1-md5:  a4116a20798b827cd1e06e50c8099aa6
26 Source2:        %{name}.desktop
27 Source3:        %{name}-icon.png
28 Patch0:         %{name}-cast.patch
29 Patch1:         %{name}-opt.patch
30 Patch2:         %{name}-no-macos.patch
31 URL:            http://audacityteam.org/
32 BuildRequires:  alsa-lib-devel
33 BuildRequires:  autoconf >= 2.59
34 BuildRequires:  automake >= 1:1.9
35 BuildRequires:  expat-devel >= 1.95
36 # libavcodec >= 51.53 libavformat >= 52.12 libavutil
37 %{?with_ffmpeg:BuildRequires:   ffmpeg-devel >= 0.8.0}
38 BuildRequires:  flac-c++-devel >= 1.3.0
39 BuildRequires:  gettext-tools >= 0.18
40 %{!?with_gtk3:BuildRequires:    gtk+2-devel >= 2.0}
41 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0}
42 BuildRequires:  jack-audio-connection-kit-devel
43 BuildRequires:  hpklinux-devel >= 4.06
44 BuildRequires:  lame-libs-devel
45 BuildRequires:  libid3tag-devel >= 0.15.0b-2
46 BuildRequires:  libjpeg-devel
47 BuildRequires:  libmad-devel >= 0.14.2b-4
48 #BuildRequires: libsbsms-devel >= 1.6.0
49 #BuildRequires: libsbsms2-devel >= 2.0.2
50 BuildRequires:  libsndfile-devel >= 1.0.0
51 BuildRequires:  libstdc++-devel
52 BuildRequires:  libtool >= 2:2
53 BuildRequires:  libvorbis-devel >= 1:1.0
54 BuildRequires:  lilv-devel >= 0.16
55 BuildRequires:  lv2-devel
56 #BuildRequires: portaudio-devel >= 19
57 BuildRequires:  pkgconfig
58 BuildRequires:  soundtouch-devel >= 1.3.0
59 BuildRequires:  soxr-devel >= 0.0.5
60 BuildRequires:  speex-devel
61 BuildRequires:  suil-devel >= 0.8.2
62 BuildRequires:  twolame-devel >= 0.3.9
63 BuildRequires:  udev-devel
64 BuildRequires:  unzip
65 BuildRequires:  vamp-devel >= 2.0
66 BuildRequires:  which
67 %{!?with_gtk3:BuildRequires:    wxGTK2-unicode-devel >= 2.8.0}
68 %{?with_gtk3:BuildRequires:     wxGTK3-unicode-devel >= 2.8.0}
69 Requires(post,postun):  shared-mime-info
70 Requires:       flac-c++ >= 1.3.0
71 Requires:       lame-libs
72 Requires:       libid3tag >= 0.15.0b-2
73 Requires:       libmad >= 0.14.2b-4
74 Requires:       libsndfile >= 1.0.0
75 Requires:       soundtouch >= 1.3.0
76 %{?with_soxr:Requires:  soxr >= 0.0.5}
77 Requires:       twolame-libs >= 0.3.9
78 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79
80 %description
81 Audacity is a program that lets you manipulate digital audio
82 waveforms. It imports many sound file formats, including WAV, AIFF,
83 AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing
84 operations such as Cut, Copy, and Paste, plus it will mix tracks and
85 let you apply plug-in effects to any part of a sound.
86
87 %description -l pl.UTF-8
88 Audacity to program obsługujący różne formaty plików audio. Obsługuje
89 WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umożliwia
90 wykonywanie podstawowych czynności edycyjnych takich jak kasowanie,
91 wstawianie i miksowanie ścieżki dźwiękowej. Umożliwia także
92 wykonywanie dowolnych innych operacji poprzez system wtyczek.
93
94 %description -l ru.UTF-8
95 Audacity - это звуковой редактор, позволяющий работать с файлами в
96 форматах WAV, AIFF, AU, IRCAM, MP3 и Ogg Vorbis. В нем реализованы все
97 основные операции, такие как удаление, копирование, вставка,
98 микширование треков и применение эффектов, оформленных в виде
99 плагинов, к любой части звукового файла.
100
101 %package devel
102 Summary:        Header files for Audacity interfaces
103 Summary(pl.UTF-8):      Pliki nagłówkowe interfejsów Audacity
104 Group:          Development/Libraries
105 Requires:       libstdc++-devel
106 Requires:       wxWidgets-devel >= 2.8.0
107 # doesn't require base
108
109 %description devel
110 Header files for Audacity interfaces.
111
112 %description devel -l pl.UTF-8
113 Pliki nagłówkowe interfejsów Audacity.
114
115 %prep
116 %setup -q -n %{name}-minsrc-%{version}
117 %patch0 -p1
118 %patch1 -p1
119 %patch2 -p1
120
121 # OPTIONAL_SUBDIRS are not included in tarball; allow autotools to work
122 %{__sed} -i '/SUBDIRS += \$(OPTIONAL_SUBDIRS)/d' lib-src/Makefile.am
123
124 %{__sed} -i 's/libmp3lame.so/libmp3lame.so.0/g' locale/*.po
125
126 %build
127 cd lib-src/portmixer
128 %{__libtoolize}
129 %{__aclocal} -I m4
130 %{__autoconf}
131 %{__automake}
132 cd ../lib-widget-extra
133 %{__libtoolize}
134 %{__aclocal} -I m4
135 %{__autoconf}
136 %{__automake}
137 cd ../FileDialog
138 %{__libtoolize}
139 %{__aclocal} -I m4
140 %{__autoconf}
141 %{__automake}
142 cd ../portsmf
143 %{__aclocal} -I autotools/m4
144 %{__autoconf}
145 %{__automake}
146 cd ../..
147 %{__libtoolize}
148 %{__aclocal} -I m4
149 %{__autoconf}
150 %{__automake}
151
152 export WX_CONFIG=$(which wx-gtk%{?with_gtk3:3}%{!?with_gtk3:2}-unicode-config)
153 %configure \
154         %{?with_gtk3:--enable-gtk3} \
155         --with-ffmpeg%{!?with_ffmpeg:=no} \
156         --with-help \
157         --with-id3tag=system \
158         --with-libmad=system \
159         --with-libsndfile=system \
160         --with-libflac=system \
161         --with-sbsms=local \
162         --with-soxr=system \
163         --with-vorbis=system
164
165 %{__make}
166
167 %install
168 rm -rf $RPM_BUILD_ROOT
169 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
170
171 %{__make} install \
172         DESTDIR=$RPM_BUILD_ROOT \
173         INSTALL_PATH=$RPM_BUILD_ROOT
174
175 # install headers in standard location
176 install -d $RPM_BUILD_ROOT%{_includedir}
177 %{__mv} $RPM_BUILD_ROOT%{_datadir}/audacity/include/audacity $RPM_BUILD_ROOT%{_includedir}
178 rmdir $RPM_BUILD_ROOT%{_datadir}/audacity/include
179
180 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
181 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
182 %{__unzip} -qq -a %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name}/help
183
184 # unsupported
185 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS*
186
187 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN}
188
189 %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity.xpm
190 %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity16.xpm
191 %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity32.xpm
192 %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project.xpm
193
194 %find_lang %{name}
195
196 %clean
197 rm -rf $RPM_BUILD_ROOT
198
199 %post
200 %update_mime_database
201
202 %postun
203 %update_mime_database
204
205 %files -f %{name}.lang
206 %defattr(644,root,root,755)
207 %doc README.txt
208 %attr(755,root,root) %{_bindir}/audacity
209 %dir %{_datadir}/%{name}
210 %{_datadir}/%{name}/nyquist
211 %{_datadir}/%{name}/plug-ins
212 %{_datadir}/%{name}/EQDefaultCurves.xml
213 %doc %{_datadir}/%{name}/help
214 %{_mandir}/man1/audacity.1*
215 %{_desktopdir}/audacity.desktop
216 %{_pixmapsdir}/audacity-icon.png
217 %{_datadir}/appdata/audacity.appdata.xml
218 %{_datadir}/mime/packages/audacity.xml
219 %{_iconsdir}/hicolor/*/apps/audacity.png
220 %{_iconsdir}/hicolor/*/apps/audacity.svg
221
222 %files devel
223 %defattr(644,root,root,755)
224 %{_includedir}/audacity
This page took 0.081602 seconds and 3 git commands to generate.