Source0: ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/%{name}-%{version}.tar.gz
# Source0-md5: 2c155a0c4a5589c18bac3016365d7fbd
Patch0: %{name}-desktop.patch
+Patch1: e53fb11e61021b5dea33165842abb93b4da28af5.patch
URL: http://musicbrainz.org/doc/PicardTagger
-BuildRequires: ffmpeg-devel
BuildRequires: gettext-tools
-BuildRequires: libofa-devel
BuildRequires: libstdc++-devel
BuildRequires: pkgconfig
BuildRequires: python-devel >= 1:2.5
%prep
%setup -q -n %{name}-release-%{version}
%patch0 -p1
+%patch1 -p1
find -type f | xargs sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g'
+%{__rm} po/sco.po
+
%build
%{__python} setup.py config
%{__python} setup.py build
%py_postclean
%find_lang %{name}
+%find_lang %{name}-countries -a %{name}.lang
+%find_lang %{name}-attributes -a %{name}.lang
%post
%update_icon_cache hicolor