diff --git a/_service b/_service
new file mode 100644
index 0000000..655cd12
--- /dev/null
+++ b/_service
@@ -0,0 +1,13 @@
+
+
+
+ http
+ audacity.googlecode.com
+ /files/audacity-minsrc-1.3.12-beta.tar.bz2
+
+
+ _service:download_url:audacity-minsrc-1.3.12-beta.tar.bz2
+ sha256
+ f0f55839ca3013d2e43e5114c73d195bc34503685aeab683eafca4d1bbf3b768
+
+
diff --git a/audacity-minsrc-1.3.12-beta.tar.bz2 b/_service:download_url:audacity-minsrc-1.3.12-beta.tar.bz2
similarity index 100%
rename from audacity-minsrc-1.3.12-beta.tar.bz2
rename to _service:download_url:audacity-minsrc-1.3.12-beta.tar.bz2
diff --git a/audacity-ffmpeg_match_ext.patch b/audacity-ffmpeg_match_ext.patch
index f5412f3..d1896ae 100644
--- a/audacity-ffmpeg_match_ext.patch
+++ b/audacity-ffmpeg_match_ext.patch
@@ -2,6 +2,15 @@ Index: src/FFmpeg.cpp
===================================================================
--- src/FFmpeg.cpp.orig
+++ src/FFmpeg.cpp
+@@ -204,7 +204,7 @@ static int ufile_read(URLContext *h, uns
+ return ret;
+ }
+
+-static int ufile_write(URLContext *h, unsigned char *buf, int size)
++static int ufile_write(URLContext *h, const unsigned char *buf, int size)
+ {
+ return (int) ((wxFile *) h->priv_data)->Write(buf, size);
+ }
@@ -356,7 +356,7 @@ int ufile_fopen_input(AVFormatContext **
}
// Otherwize, resort to extension matching if available
diff --git a/audacity-implicit.patch b/audacity-implicit.patch
new file mode 100644
index 0000000..b5a5a02
--- /dev/null
+++ b/audacity-implicit.patch
@@ -0,0 +1,12 @@
+Index: lib-src/portmixer/src/px_unix_oss.c
+===================================================================
+--- lib-src/portmixer/src/px_unix_oss.c.orig
++++ lib-src/portmixer/src/px_unix_oss.c
+@@ -44,6 +44,7 @@
+ #include
+ #include
+ #include
++#include
+
+ #if defined(HAVE_SYS_SOUNDCARD_H)
+ # include
diff --git a/audacity.changes b/audacity.changes
index 4959a99..0f704fe 100644
--- a/audacity.changes
+++ b/audacity.changes
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Mon Oct 4 14:27:46 UTC 2010 - reddwarf@opensuse.org
+
+- Cleaned with spec-cleaner
+- Fix support for newer ffmpeg versions
+- Use download/verify services
+- Add -implicit patch as suggested by post-build scripts
+
-------------------------------------------------------------------
Fri Jun 4 13:46:28 UTC 2010 - mseben@novell.com
diff --git a/audacity.spec b/audacity.spec
index f1085fd..8ed0e87 100644
--- a/audacity.spec
+++ b/audacity.spec
@@ -21,12 +21,21 @@
%bcond_with twolame
Name: audacity
+BuildRequires: alsa-devel
# we use internal PortAudio(so it is not included here in BuildRequires), because audacity team grab sources
# from Portaudio's svn more frequently than we (e.g. see support for non-mmap devices like pulseaudio)
-BuildRequires: flac-devel gcc-c++ jack-devel libexpat-devel
-BuildRequires: libid3tag-devel libsamplerate-devel libsndfile-devel
-BuildRequires: libvorbis-devel soundtouch-devel update-desktop-files
-BuildRequires: alsa-devel taglib-devel wxGTK-devel
+BuildRequires: flac-devel
+BuildRequires: gcc-c++
+BuildRequires: jack-devel
+BuildRequires: libexpat-devel
+BuildRequires: libid3tag-devel
+BuildRequires: libsamplerate-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libvorbis-devel
+BuildRequires: soundtouch-devel
+BuildRequires: taglib-devel
+BuildRequires: update-desktop-files
+BuildRequires: wxGTK-devel
#vamp-plugin-sdk-devel is available since openSUSE 11.2
%if %suse_version > 1110
BuildRequires: vamp-plugin-sdk-devel
@@ -40,25 +49,26 @@ BuildRequires: libmad-devel
%if %{with twolame}
BuildRequires: libtwolame-devel
%endif
-Summary: A Free, Cross-Platform Digital Audio Editor
Version: 1.3.12
-Release: 6
+Release: 7
License: GPLv2+
-Group: Productivity/Multimedia/Sound/Editors and Convertors
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Summary: A Free, Cross-Platform Digital Audio Editor
Url: http://audacity.sourceforge.net/
+Group: Productivity/Multimedia/Sound/Editors and Convertors
Source: %{name}-minsrc-%{version}-beta.tar.bz2
Source1: %{name}.png
Source2: %{name}-license-nyquist
-# PATCH-FIX-OPENSUSE %{name}-no_buildstamp.patch cmorve69@yahoo.es -- this patch removes the buildstamp
+# PATCH-FIX-OPENSUSE %{name}-no_buildstamp.patch reddwarf@opensuse.org -- this patch removes the buildstamp
Patch0: %{name}-no_buildstamp.patch
Patch5: %{name}-retval.patch
Patch12: %{name}-audiodevdefaults.patch
Patch13: audacity-nomac.patch
-# PATCH-FIX-OPENSUSE %{name}-ffmpeg_match_ext.patch cmorve69@yahoo.es -- Fix ffmpeg support with versions after 2010-03-08
+# PATCH-FIX-OPENSUSE %{name}-ffmpeg_match_ext.patch reddwarf@opensuse.org -- Fix ffmpeg support with versions after 2010-03-08. Upstream knows the problem but doesn't wants the patch right now.
Patch14: %{name}-ffmpeg_match_ext.patch
-# PATCH-FIX-OPENSUSE %{name}-no_exact_ffmpeg_version.patch cmorve69@yahoo.es -- remove referene to minor/micro ffmpeg versions so build-compare can do its work
+# PATCH-FIX-OPENSUSE %{name}-no_exact_ffmpeg_version.patch reddwarf@opensuse.org -- remove referene to minor/micro ffmpeg versions so build-compare can do its work
Patch15: %{name}-no_exact_ffmpeg_version.patch
+Patch16: %{name}-implicit.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Audacity is a program that manipulates digital audio wave forms. In
@@ -75,6 +85,7 @@ physical memory size of your computer.
%patch13 -p1
%patch14
%patch15
+%patch16
%{__cp} %{S:2} LICENSE_NYQUIST.txt
%build
@@ -103,21 +114,21 @@ physical memory size of your computer.
--with-ladspa \
--with-libid3tag=system \
--with-libsamplerate=system
-%{__make} %{?jobs:-j%jobs}
+%{__make} %{?_smp_mflags}
%install
%makeinstall
%suse_update_desktop_file audacity
-%{__install} -v -d -m755 $RPM_BUILD_ROOT%{_datadir}/pixmaps
-%{__install} -v -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
+%{__install} -v -d -m755 %{buildroot}%{_datadir}/pixmaps
+%{__install} -v -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
#delete default icon we have nicer - transparent :)
-%__rm $RPM_BUILD_ROOT%{_datadir}/pixmaps/*.xpm
+%__rm %{buildroot}%{_datadir}/pixmaps/*.xpm
# we will add docs later in %files section
-%__rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/audacity
+%__rm -rf %{buildroot}%{_datadir}/doc/audacity
%find_lang %{name}
%clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root)