]> git.pld-linux.org Git - packages/audacity.git/blobdiff - audacity.spec
- fixed *.po in not_require_lame-libs-devel patch
[packages/audacity.git] / audacity.spec
index a46e5a6b02b77b0764282d6aaa23c1501b543531..b6ca5037c004fe5d42071aa7b6ab54b59c191a8a 100644 (file)
@@ -1,31 +1,37 @@
+#
+# Conditional build:
+# _with_gtk1   - use wxGTK instead of wxGTK2
+#
 Summary:       Audacity - manipulate digital audio waveforms
-Summary(pl):   Audacity - manipulacja plikami audio
+Summary(pl):   Audacity - narzêdzie do obróbki plików d¼wiêkowych
 Name:          audacity
-Version:       0.98
-Release:       2
+Version:       1.1.3
+Release:       1
 License:       GPL
 Vendor:                Dominic Mazzoni <dominic@minorninth.com>
-Group:         X11/Applications/Multimedia
-Source0:       http://prdownloads.sourceforge.net/%{name}/%{name}-src-%{version}.tgz
+Group:         X11/Applications/Sound
+Source0:       http://dl.sourceforge.net/%{name}/%{name}-src-%{version}.tgz
 Source1:       %{name}.desktop
 Source2:       %{name}-icon.png
-Patch0:                %{name}-dynamic_id3lib.patch
+Patch0:                %{name}-system-expat.patch
 Patch1:                %{name}-helpfile_location.patch
 Patch2:                %{name}-not_require_lame-libs-devel.patch
-Patch3:                %{name}-wxGTK-2.3.2.patch
+Patch3:                %{name}-opt.patch
 URL:           http://audacity.sourceforge.net/
-Requires:      lame-libs
-BuildRequires: wxGTK-devel >= 2.3.2-7
-BuildRequires: mad-devel
-BuildRequires: libstdc++-devel
-BuildRequires: libvorbis-devel
-BuildRequires: libpng-devel
+BuildRequires: autoconf
+BuildRequires: expat-devel
+BuildRequires: fftw-devel >= 2.1.4
+BuildRequires: flac-devel
 BuildRequires: libjpeg-devel
-BuildRequires: libtiff-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libvorbis-devel >= 1:1.0
+BuildRequires: mad-devel >= 0.14.2b-4
+%{?_with_gtk1:BuildRequires:   wxGTK-devel >= 2.4.0}
+%{!?_with_gtk1:BuildRequires:  wxGTK2-devel >= 2.4.0}
+Requires:      lame-libs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-
 %description
 Audacity is a program that manipulates digital audio waveforms.
 Supports wav, mp3 and ogg/vorbis.
@@ -43,30 +49,43 @@ Obs
 
 %build
 %{__autoconf}
+export WX_CONFIG="`which wxgtk%{!?_with_gtk1:2}-2.4-config`"
 %configure \
-       --with-vorbis \
-       --with-libmad
-%{__make} CCC="g++ -fno-exceptions -fno-rtti"
+       --with-help \
+       --with-id3tag=system \
+       --with-libmad=system \
+       --with-libsndfile=system \
+       --with-libflac=system \
+       --with-vorbis=system
+
+%{__make} \
+       CCC="%{__cxx} -fno-exceptions -fno-rtti" \
+       OPTFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_applnkdir}/Multimedia,%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_applnkdir}/Multimedia,%{_pixmapsdir}}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       INSTALL_PATH=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT/%{_applnkdir}/Multimedia
-install %{SOURCE2} $RPM_BUILD_ROOT/%{_pixmapsdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
-install audacity $RPM_BUILD_ROOT%{_bindir}
-install audacity-help.htb $RPM_BUILD_ROOT%{_datadir}/%{name}
+# not built in this version
+#install audacity-help.htb $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-gzip -9nf README.txt LICENSE.txt
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc README.txt.gz LICENSE.txt.gz
+%doc README.txt
 %attr(755,root,root) %{_bindir}/audacity
-%{_datadir}/%{name}/*
+%{_datadir}/%{name}
+%{_mandir}/man1/*.1*
 %{_applnkdir}/*/*
 %{_pixmapsdir}/*
This page took 0.035216 seconds and 4 git commands to generate.