79fe43c
%global tar_ver 2.0.4
0d7f56f
1116b62
Name:           soundconverter
79fe43c
Version:        2.0.4
79fe43c
Release:        1%{?dist}
6b97a35
Summary:        Simple sound converter application for GNOME
1116b62
1116b62
Group:          Applications/Multimedia
b8509be
License:        GPLv3
f071abe
URL:            http://soundconverter.org
0d7f56f
Source0:        http://launchpad.net/soundconverter/trunk/%{tar_ver}/+download/soundconverter-%{tar_ver}.tar.xz
1116b62
BuildArch:      noarch
1116b62
1116b62
BuildRequires:  desktop-file-utils
849a3ee
BuildRequires:  intltool gettext
23d82c6
BuildRequires:  pygtk2
23d82c6
BuildRequires:  gnome-python2-gnome
23d82c6
f636a26
# enforce availability of this and its requirement "desktop-notification-daemon"
f636a26
Requires:       notify-python
f636a26
23d82c6
# version 2.10 is old enough not to need an explicit version here
23d82c6
Requires:       pygtk2
23d82c6
Requires:       gnome-python2-gnome
23d82c6
Requires:       gnome-python2-gconf
620ed19
# a missing dep in gnome-python2-gnome, see bz #689836
620ed19
Requires:       gnome-python2-bonobo
efb4ddc
# a missing dep somewhere, causes bz #718791
efb4ddc
Requires:       gnome-python2-canvas
a324f4c
# currently a dep of gnome-python2-gnome, but one cannot rely on that
a324f4c
# after the two missing deps above
a324f4c
Requires:       gnome-python2-gnomevfs
90919bd
90919bd
Requires:       gstreamer-python
90919bd
Requires:       gstreamer-plugins-base
31c51c7
31c51c7
%if 0%{?fedora} > 16
31c51c7
Requires:       gstreamer-plugins-good >= 0.10.30-5.fc17
31c51c7
%endif
31c51c7
%{?fc16:Requires: gstreamer-plugins-good >= 0.10.30-5.fc16}
31c51c7
%{?fc15:Requires: gstreamer-plugins-good >= 0.10.29-2.fc15}
90919bd
1116b62
1116b62
%description
1116b62
A simple sound converter application for the GNOME environment. It reads and
1116b62
writes anything the GStreamer library can.
1116b62
90919bd
1116b62
%prep
0d7f56f
%setup -q -n %{name}-%{tar_ver}
6244e07
90919bd
1116b62
%build
0d7f56f
%configure --disable-dependency-tracking \
0d7f56f
    --libdir=/usr/lib
90919bd
make %{?_smp_mflags}
90919bd
1116b62
1116b62
%install
90919bd
make install DESTDIR=${RPM_BUILD_ROOT}
580b1ca
install -p soundconverter/batch.py ${RPM_BUILD_ROOT}/usr/lib/%{name}/python/soundconverter
662440f
90919bd
%find_lang %{name}
90919bd
1116b62
desktop-file-install --vendor=fedora \
1116b62
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
1116b62
  --add-category X-Fedora \
2b23a46
  --add-category X-OutputGeneration \
8293151
  --delete-original \
90919bd
  ${RPM_BUILD_ROOT}/usr/share/applications/%{name}.desktop
90919bd
1116b62
662440f
%post
662440f
touch --no-create %{_datadir}/icons/hicolor || :
662440f
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
662440f
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
662440f
fi
662440f
update-desktop-database &> /dev/null ||:
662440f
662440f
662440f
%postun
662440f
touch --no-create %{_datadir}/icons/hicolor || :
662440f
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
662440f
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
662440f
fi
662440f
update-desktop-database &> /dev/null ||:
662440f
662440f
90919bd
%files -f %{name}.lang
9db4845
%doc AUTHORS ChangeLog COPYING NEWS README TODO
23d82c6
%{_mandir}/man1/%{name}*
1116b62
%{_bindir}/%{name}
0d7f56f
/usr/lib/%{name}/
23d82c6
%{_datadir}/%{name}/
1116b62
%{_datadir}/applications/*%{name}.desktop
662440f
%{_datadir}/icons/hicolor/48x48/apps/*.png
b4f8697
%{_datadir}/icons/hicolor/scalable/apps/*.svg
90919bd
1116b62
1116b62
%changelog
79fe43c
* Thu Oct 18 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.4-1
79fe43c
- Updated to 2.0.4 (merged patches, further fixes and updated translations).
79fe43c
f0774fd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-6
f0774fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f0774fd
31620f9
* Fri Jun 29 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.3-5
31620f9
- Fix another last-used-folder "None" crash. (#836338)
31620f9
580b1ca
* Thu May 10 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.3-4
580b1ca
- Apply newer post-2.0.3 batch mode fixes from upstream scm.
580b1ca
  This should also fix WAV batch encoding.
580b1ca
580b1ca
* Sat May  5 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.3-3
580b1ca
- Fix FLAC batch encoding (lp 995862).
580b1ca
- Fix -m and -s (lp 988262).
580b1ca
- Apply post-2.0.3 batch mode fixes from upstream scm. This involves
580b1ca
  copying the new batch.py file manually (temporarily).
580b1ca
2f8a916
* Tue Apr 24 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.3-2
2f8a916
- Update to 2.0.3 (stability/progress fixes and updated translations).
2f8a916
9db4845
* Fri Apr 13 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.2-2
9db4845
- Add more documentation files.
9db4845
b09a323
* Sun Mar 18 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.2-1
b09a323
- Update to 2.0.2 (31k diff, one bug-fix, mostly i18n/spelling fixes).
b09a323
7e52dfa
* Thu Feb  2 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.1-1
7e52dfa
- Update to 2.0.1 (11k diff).
7e52dfa
22382a5
* Fri Jan 27 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0-1
22382a5
- Update to 2.0 release (includes fix for #784413 / lp 921515).
22382a5
b8c80d5
* Fri Jan 13 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0-0.3.rc5
b8c80d5
- Update to 2.0-rc5.
b8c80d5
3d14a03
* Wed Jan  4 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0-0.2.rc4
3d14a03
- Rediff bad audio profiles patch (lp 911791).
3d14a03
0d7f56f
* Wed Jan  4 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0-0.1.rc4
8e3731e
- Patch GNOME Audio Profile preferences crash (lp 911759).
0d7f56f
- Explicitly install to libdir=/usr/lib since this is still a noarch package.
0d7f56f
- Upgrade to 2.0-rc4 and drop merged/obsolete patches.
0d7f56f
31c51c7
* Sat Dec 10 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-11
31c51c7
- Reenable FLAC to Ogg Vorbis conversion and require at least the
31c51c7
  first build of the gstreamer-plugins-good package that contains
31c51c7
  the backported fix.
31c51c7
d659cbd
* Sun Oct  9 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-10
d659cbd
- Ignore bad audio profiles (#744596) and multiple ones with no description.
d659cbd
- Remove %%defattr line.
d659cbd
1851548
* Fri Aug 19 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-9
1851548
- Enhance the previous patch, and consider the case when preferences
1851548
  are changed after creating a list of input files. Also remove rejected
1851548
  FLAC files from an internal filelist, so readding them will display the
1851548
  warning dialog again.
1851548
6244e07
* Fri Aug 19 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-8
6244e07
- Block conversion of FLAC to Ogg Vorbis due to GStreamer stream
6244e07
  corruption (GNOME bz 651615).
fc3a986
- Make "Clear" button really clear internal filelist (lp 784918).
6244e07
a324f4c
* Mon Jul  4 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-7
a324f4c
- Add (currently redundant) dependency on gnome-python2-gnomevfs, which
a324f4c
  is required by gnome-python2-gnome already, but Soundconverter imports
a324f4c
  the gnomevfs module directly.
a324f4c
efb4ddc
* Mon Jul  4 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-6
efb4ddc
- Add dependency on gnome-python2-canvas, which is a missing dep
efb4ddc
  somewhere and causes a crash on non-GNOME installations (#718791).
efb4ddc
  Probably related to the similar issue mentioned on March 22nd.
efb4ddc
5cfe98a
* Sat Jul  2 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-5
5cfe98a
- Fix crash in markup_escape (calling glib markup_escape_text)
5cfe98a
  caused by file names with invalid encodings (#718334).
5cfe98a
2db18f6
* Tue Jun 21 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-4
2db18f6
- Fix crash when GNOME Audio Profile description changes translation (#714454).
2db18f6
620ed19
* Tue Mar 22 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-3
620ed19
- Add dependency on gnome-python2-bonobo, which is a missing dep of
620ed19
  gnome-python2-gnome (#689836) and causes a crash if not installed,
620ed19
  e.g. on LXDE #688780.
620ed19
f005534
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.4-2
f005534
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f005534
9c5307c
* Sun Jan  9 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.4-1
9c5307c
- Upgrade to 1.5.4.
9c5307c
f636a26
* Thu Dec 16 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.3-8
f636a26
- Add direct dependency on notify-python.
f636a26
d361d56
* Mon Nov 29 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.3-7
d361d56
- Fix command-line FLAC compression default in order to avoid crash.
d361d56
295e6af
* Fri Nov 26 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.3-6
295e6af
- Fix command-line options -m and -s, which have never worked,
295e6af
  and -t which was broken by changes after 1.4.4.
295e6af
5885fb6
* Wed Nov 24 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.3-5
5885fb6
- Fix command-line batch mode (#656526). Also skip conversion if input
5885fb6
  file name is same as output file name (as that would not have worked
89cd0b6
  so far and would have emptied/deleted the input file instead).
5885fb6
1a6319c
* Wed Nov 17 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.3-4
1a6319c
- Fix target folder for artist/album creation when the source files are
1a6319c
  stored in subdirectories (#654045).
1a6319c
6b97a35
* Tue Nov 16 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.3-3
6b97a35
- Remove urllib.quote call for target folder URI, so e.g. space characters
6b97a35
  don't lead to creating a new unescaped target folder.
6b97a35
daa0b67
* Thu Oct 28 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.3-2
daa0b67
- Patch po files for combobox "AssertionError: model:4 widgets:5" (#647336)
daa0b67
53a7ea2
* Thu Jun 17 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.3-1
53a7ea2
- Upgrade to 1.5.3.
53a7ea2
b1be98e
* Tue Jun 15 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.2-2
b1be98e
- Fix ZeroDivisionError in progress calculation.
b1be98e
285da6b
* Tue Jun 15 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5.2-1
285da6b
- Upgrade to 1.5.2.
285da6b
23d82c6
* Wed May 12 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1.4.4-2
23d82c6
- Update .desktop file patch.
23d82c6
- Minor spec adjustments in explicit deps and files section.
23d82c6
23d82c6
* Sat Jan 23 2010 Xavier Lamien <laxathom@fedoraproject.org> - 1.4.4-1
2ef11da
- Update release.
2ef11da
2b23a46
* Sun Sep 27 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.3.2-4
2b23a46
- Update desktop file according to F-12 FedoraStudio feature
2b23a46
0af7972
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-3
0af7972
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0af7972
4fa058f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-2
4fa058f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4fa058f
35337f3
* Mon Aug 25 2008 Denis Leroy <denis@poolshark.org> - 1.3.2-1
35337f3
- Update to upstream 1.3.2
a1a69ec
- Fixed gnome-python2 BR
35337f3
acb9652
* Tue May 13 2008 Denis Leroy <denis@poolshark.org> - 1.2.0-1
acb9652
- Update to upstream 1.2.0
acb9652
6838734
* Fri Jan 11 2008 Denis Leroy <denis@poolshark.org> - 0.9.8-1
6838734
- Update to upstream 0.9.8, bugfix release
6838734
b8509be
* Thu Aug 16 2007 Denis Leroy <denis@poolshark.org> - 0.9.7-1
b8509be
- Update to 0.9.7
b8509be
- Updated License tag
b8509be
- Added patch to fix desktop file
b8509be
b4f8697
* Sun Apr 29 2007 Denis Leroy <denis@poolshark.org> - 0.9.6-1
b4f8697
- Update to 0.9.6
b4f8697
- Removed some icon-related hacks, fixed upstream
b4f8697
662440f
* Thu Mar  1 2007 Denis Leroy <denis@poolshark.org> - 0.9.4-1
662440f
- Update to 0.9.4
662440f
- Removed taglib patch, is upstream
662440f
- Moved desktop icon into /usr/share/icons/
662440f
d42b422
* Wed Nov  8 2006 Denis Leroy <denis@poolshark.org> - 0.9.3-2
d42b422
- Added patch to detect missing id3v2mux gst plugin
d42b422
43064f9
* Thu Oct 19 2006 Denis Leroy <denis@poolshark.org> - 0.9.3-1
43064f9
- Update to 0.9.3
43064f9
357d330
* Tue Oct 17 2006 Denis Leroy <denis@poolshark.org> - 0.9.2-1
357d330
- Update to 0.9.2
357d330
8293151
* Fri Sep  8 2006 Denis Leroy <denis@poolshark.org> - 0.9.1-3
8293151
- Fixed desktop install
8293151
849a3ee
* Fri Sep  8 2006 Denis Leroy <denis@poolshark.org> - 0.9.1-2
849a3ee
- Added intltool BRs
849a3ee
90919bd
* Fri Sep  8 2006 Denis Leroy <denis@poolshark.org> - 0.9.1-1
90919bd
- Update to 0.9.1
90919bd
- Uses gstreamer 1.0
90919bd
- Some cleanup, use upstream configure and desktop
90919bd
198dc41
* Mon Sep  4 2006 Denis Leroy <denis@poolshark.org> - 0.8.3-2
198dc41
- FE6 Rebuild
198dc41
5796d40
* Sun Feb 12 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.3-1
5796d40
- Upstream update
5796d40
- Updated to use gstreamer08
5796d40
59b532c
* Tue Nov 15 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.1-2
59b532c
- Added gnome-python2-gconf to Requires (#173290)
59b532c
6876b34
* Mon Nov 14 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.1-1
6876b34
- Upstream update
6876b34
1116b62
* Sun Oct  2 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.0-1
1116b62
- Initial RPM release