X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=audacity.spec;h=afa8f4f38b2702b13e29d14630fa1242de9908f2;hb=5eec20a962bde93cc79b18b8d5c74350405d8950;hp=51571cefcee1ff12ca3fd35b980ced5fa2b6641b;hpb=cbad77eb3eb772956a2051c21d188f531144c7d2;p=packages%2Faudacity.git diff --git a/audacity.spec b/audacity.spec index 51571ce..afa8f4f 100644 --- a/audacity.spec +++ b/audacity.spec @@ -2,79 +2,75 @@ # - internal portaudio crashes when only OSS is available on startup # - use system portaudio (>= 19, but relies on local changes) # - use system portSMF? -# - use system ffmpeg (libavcodec >= 51.53, libavformat >= 52.12), libavutil +# - use system ffmpeg (libavcodec >= 51.53, libavformat >= 52.12, libavutil) # - use system sbsms (>= 1.6.0, but relies on local changes) # - use system libnyquist (if ever; currently it's a part of audacity project) # # Conditional build: -%bcond_with libresample # using libresample for resampling (default is soxr) -%bcond_with libsamplerate # using libsamplerate for resampling (default is soxr) %bcond_with ffmpeg # build with ffmpeg support (currently audacity does not support ffmpeg 1.0) +%bcond_with gtk3 # GTK+ 3.x instead of 2.x # -%if %{without libresample} && %{without libsamplerate} -%define with_soxr 1 -%endif Summary: Audacity - manipulate digital audio waveforms Summary(pl.UTF-8): Audacity - narzędzie do obróbki plików dźwiękowych Summary(ru.UTF-8): Кроссплатформенный звуковой редактор Name: audacity -Version: 2.0.5 -Release: 4 +Version: 2.1.1 +Release: 1 License: GPL v2+ Group: X11/Applications/Sound -#Source0Download: http://code.google.com/p/audacity/downloads/list -Source0: http://audacity.googlecode.com/files/%{name}-minsrc-%{version}.tar.xz -# Source0-md5: 657f71a5a214fe84731ed9842e09fa04 -# Link from http://manual.audacityteam.org/index.php?title=Main_Page -Source1: http://audacity.googlecode.com/files/%{name}-manual-%{version}.zip -# Source1-md5: 9f0b9db3f37aa4b9455a4b4e2046e1e4 +#Source0Download: http://www.oldfoss.com/Audacity.html +Source0: http://app.oldfoss.com:81/download/Audacity/%{name}-minsrc-%{version}.tar.xz +# Source0-md5: 9e37b1f5cde38d089a35febb904a9e39 +Source1: http://app.oldfoss.com:81/download/Audacity/%{name}-manual-%{version}.zip +# Source1-md5: a4116a20798b827cd1e06e50c8099aa6 Source2: %{name}.desktop Source3: %{name}-icon.png -Patch0: %{name}-system-libs.patch +Patch0: %{name}-cast.patch Patch1: %{name}-opt.patch Patch2: %{name}-no-macos.patch -# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749659 -Patch3: wx-fd-constants.patch -Patch4: wx30.patch -URL: http://audacity.sourceforge.net/ +URL: http://audacityteam.org/ BuildRequires: alsa-lib-devel BuildRequires: autoconf >= 2.59 -BuildRequires: automake +BuildRequires: automake >= 1:1.9 BuildRequires: expat-devel >= 1.95 +# libavcodec >= 51.53 libavformat >= 52.12 libavutil %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.8.0} -BuildRequires: flac-c++-devel >= 1.2.0 -BuildRequires: gettext-tools -BuildRequires: gtk+2-devel >= 2.0 +BuildRequires: flac-c++-devel >= 1.3.0 +BuildRequires: gettext-tools >= 0.18 +%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2.0} +%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} BuildRequires: jack-audio-connection-kit-devel BuildRequires: hpklinux-devel >= 4.06 BuildRequires: lame-libs-devel BuildRequires: libid3tag-devel >= 0.15.0b-2 BuildRequires: libjpeg-devel BuildRequires: libmad-devel >= 0.14.2b-4 -%{?with_libresample:BuildRequires: libresample-devel >= 0.1.3} -%{?with_libsamplerate:BuildRequires: libsamplerate-devel >= 0.1.2} #BuildRequires: libsbsms-devel >= 1.6.0 +#BuildRequires: libsbsms2-devel >= 2.0.2 BuildRequires: libsndfile-devel >= 1.0.0 BuildRequires: libstdc++-devel +BuildRequires: libtool >= 2:2 BuildRequires: libvorbis-devel >= 1:1.0 +BuildRequires: lilv-devel >= 0.16 +BuildRequires: lv2-devel #BuildRequires: portaudio-devel >= 19 BuildRequires: pkgconfig BuildRequires: soundtouch-devel >= 1.3.0 -%{?with_soxr:BuildRequires: soxr-devel >= 0.0.5} +BuildRequires: soxr-devel >= 0.0.5 BuildRequires: speex-devel +BuildRequires: suil-devel >= 0.8.2 BuildRequires: twolame-devel >= 0.3.9 +BuildRequires: udev-devel BuildRequires: unzip BuildRequires: vamp-devel >= 2.0 BuildRequires: which -BuildRequires: wxGTK2-unicode-devel >= 2.8.0 -BuildRequires: wxX11-devel >= 2.8.0 +%{!?with_gtk3:BuildRequires: wxGTK2-unicode-devel >= 2.8.0} +%{?with_gtk3:BuildRequires: wxGTK3-unicode-devel >= 2.8.0} Requires(post,postun): shared-mime-info -Requires: flac-c++ >= 1.2.0 +Requires: flac-c++ >= 1.3.0 Requires: lame-libs Requires: libid3tag >= 0.15.0b-2 Requires: libmad >= 0.14.2b-4 -%{?with_libresample:Requires: libresample >= 0.1.3} -%{?with_libsamplerate:Requires: libsamplerate >= 0.1.2} Requires: libsndfile >= 1.0.0 Requires: soundtouch >= 1.3.0 %{?with_soxr:Requires: soxr >= 0.0.5} @@ -102,45 +98,68 @@ Audacity - это звуковой редактор, позволяющий ра микширование треков и применение эффектов, оформленных в виде плагинов, к любой части звукового файла. +%package devel +Summary: Header files for Audacity interfaces +Summary(pl.UTF-8): Pliki nagłówkowe interfejsów Audacity +Group: Development/Libraries +Requires: libstdc++-devel +Requires: wxWidgets-devel >= 2.8.0 +# doesn't require base + +%description devel +Header files for Audacity interfaces. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe interfejsów Audacity. + %prep -%setup -q -n %{name}-src-%{version} +%setup -q -n %{name}-minsrc-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 -%patch3 -p2 -%patch4 -p1 + +# OPTIONAL_SUBDIRS are not included in tarball; allow autotools to work +%{__sed} -i '/SUBDIRS += \$(OPTIONAL_SUBDIRS)/d' lib-src/Makefile.am %{__sed} -i 's/libmp3lame.so/libmp3lame.so.0/g' locale/*.po %build cd lib-src/portmixer +%{__libtoolize} +%{__aclocal} -I m4 %{__autoconf} +%{__automake} cd ../lib-widget-extra +%{__libtoolize} %{__aclocal} -I m4 %{__autoconf} +%{__automake} cd ../FileDialog -%{__aclocal} +%{__libtoolize} +%{__aclocal} -I m4 %{__autoconf} +%{__automake} cd ../portsmf %{__aclocal} -I autotools/m4 %{__autoconf} %{__automake} cd ../.. +%{__libtoolize} %{__aclocal} -I m4 %{__autoconf} +%{__automake} -export WX_CONFIG=$(which wx-gtk2-unicode-config) +export WX_CONFIG=$(which wx-gtk%{?with_gtk3:3}%{!?with_gtk3:2}-unicode-config) %configure \ + %{?with_gtk3:--enable-gtk3} \ --with-ffmpeg%{!?with_ffmpeg:=no} \ --with-help \ --with-id3tag=system \ --with-libmad=system \ - %{?with_libresample:--with-libresample=system} \ - %{?with_libsamplerate:--with-libsamplerate=system} \ --with-libsndfile=system \ --with-libflac=system \ --with-sbsms=local \ - %{?with_soxr:--with-soxr=system} \ + --with-soxr=system \ --with-vorbis=system %{__make} @@ -153,6 +172,11 @@ install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} DESTDIR=$RPM_BUILD_ROOT \ INSTALL_PATH=$RPM_BUILD_ROOT +# install headers in standard location +install -d $RPM_BUILD_ROOT%{_includedir} +%{__mv} $RPM_BUILD_ROOT%{_datadir}/audacity/include/audacity $RPM_BUILD_ROOT%{_includedir} +rmdir $RPM_BUILD_ROOT%{_datadir}/audacity/include + cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} %{__unzip} -qq -a %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name}/help @@ -160,7 +184,7 @@ cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} # unsupported %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS* -mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN} +%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN} %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity.xpm %{__rm} $RPM_BUILD_ROOT%{_datadir}/pixmaps/audacity16.xpm @@ -190,6 +214,11 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/audacity.1* %{_desktopdir}/audacity.desktop %{_pixmapsdir}/audacity-icon.png +%{_datadir}/appdata/audacity.appdata.xml %{_datadir}/mime/packages/audacity.xml %{_iconsdir}/hicolor/*/apps/audacity.png %{_iconsdir}/hicolor/*/apps/audacity.svg + +%files devel +%defattr(644,root,root,755) +%{_includedir}/audacity