]> git.pld-linux.org Git - packages/audacity.git/blobdiff - audacity.spec
- switch to unicode build
[packages/audacity.git] / audacity.spec
index 79cd843c05e44484b9dd9f37049ab84deeb2e2cf..271992985b54964342cbd1d0595fcb507c5da945 100644 (file)
@@ -1,27 +1,27 @@
-#
-# Conditional build:
-%bcond_with gtk1       # use wxGTK instead of wxGTK2
-#
+# TODO:
+#      use system soundtouch, nyquist
+#      don't use local libresample
+#      Installed (but unpackaged) file(s) found:
+#         /usr/share/doc/audacity/LICENSE.txt
+#         /usr/share/doc/audacity/README.txt
 Summary:       Audacity - manipulate digital audio waveforms
 Summary(pl):   Audacity - narzêdzie do obróbki plików d¼wiêkowych
 Summary(ru):   Êðîññïëàòôîðìåííûé çâóêîâîé ðåäàêòîð
 Name:          audacity
-Version:       1.2.0
-%define                _pre pre3
-Release:       0.%{_pre}.2
+Version:       1.3.2
+Release:       2
 License:       GPL
 Vendor:                Dominic Mazzoni <dominic@minorninth.com>
 Group:         X11/Applications/Sound
-Source0:       http://dl.sourceforge.net/audacity/%{name}-src-%{version}-%{_pre}.tar.bz2
-# Source0-md5: a7efddd64e2ce3e380614796d689e11f
+Source0:       http://dl.sourceforge.net/audacity/%{name}-src-%{version}.tar.gz
+# Source0-md5: bf63673140254f1283dfd55b61ff2422
 Source1:       %{name}.desktop
 Source2:       %{name}-icon.png
-Patch0:                %{name}-system-expat.patch
-Patch1:                %{name}-helpfile_location.patch
-Patch2:                %{name}-not_require_lame-libs-devel.patch
-Patch3:                %{name}-opt.patch
+Patch0:                %{name}-not_require_lame-libs-devel.patch
+Patch1:                %{name}-wx28.patch
 URL:           http://audacity.sourceforge.net/
 BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: expat-devel
 BuildRequires: fftw-devel >= 2.1.4
 BuildRequires: flac-devel
@@ -33,11 +33,14 @@ BuildRequires:      libsamplerate-devel
 BuildRequires: libsndfile-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libvorbis-devel >= 1:1.0
-%{?with_gtk1:BuildRequires:    wxGTK-devel >= 2.4.0}
-%{?!with_gtk1:BuildRequires:   wxGTK2-devel >= 2.4.0}
+BuildRequires: pkgconfig
+BuildRequires: speex-devel
+BuildRequires: which
+BuildRequires: wxGTK2-unicode-devel >= 2.8.0
 BuildRequires: zip
 Requires:      lame-libs
 Requires:      libid3tag >= 0.15.0b-2
+Requires(post,postun): shared-mime-info
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -62,16 +65,15 @@ Audacity - 
 ïëàãèíîâ, ê ëþáîé ÷àñòè çâóêîâîãî ôàéëà.
 
 %prep
-%setup -q -n %{name}-src-%{version}-%{_pre}
+%setup -q -n %{name}-src-%{version}-beta
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
 
 %build
-cp -f /usr/share/automake/config.sub .
+%{__aclocal}
 %{__autoconf}
-export WX_CONFIG="`which wxgtk%{!?_with_gtk1:2}-2.4-config`"
+
+export WX_CONFIG="`which wx-gtk2-unicode-config`"
 %configure \
        --with-help \
        --with-id3tag=system \
@@ -81,9 +83,7 @@ export WX_CONFIG="`which wxgtk%{!?_with_gtk1:2}-2.4-config`"
        --with-libflac=system \
        --with-vorbis=system
 
-%{__make} \
-       CCC="%{__cxx} -fno-rtti" \
-       OPTFLAGS="%{rpmcflags}"
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -96,18 +96,25 @@ install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
-install audacity-1.2-help.htb $RPM_BUILD_ROOT%{_datadir}/%{name}
+mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{zh,zh_CN}
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_mime_database
+
+%postun
+%update_mime_database
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc README.txt
 %attr(755,root,root) %{_bindir}/audacity
 %{_datadir}/%{name}
 %{_mandir}/man1/*.1*
-%{_desktopdir}/*
+%{_desktopdir}/*.desktop
 %{_pixmapsdir}/*
+%{_datadir}/mime/packages/audacity.xml
This page took 0.026672 seconds and 4 git commands to generate.