Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > d6e36fba2588c139d09cdaf008c450fc > files > 2

listen-0.6.5-1mdv2010.1.src.rpm

%define name    listen
%define version 0.6.5
%define rel     1
%define release %mkrel %rel

Name:       %name
Version:    %version
Release:    %release
Summary:    A music manager and player for GNOME
License:    GPLv2
Group:      Sound
URL:        http://www.listen-project.org/
Source:     http://download.listen-project.org/lastest/%name-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-sqlite2
BuildRequires: python-daap
BuildRequires: python-musicbrainz2
BuildRequires: python-tunepimp
BuildRequires: pyvorbis
BuildRequires: pyogg
BuildRequires: pymad
BuildRequires: pygtk2.0-devel
BuildRequires: gnome-python-extras
BuildRequires: python-webkitgtk
BuildRequires: dbus-python
BuildRequires: libgpod-devel
BuildRequires: gtk2-devel
BuildRequires: gstreamer0.10-python-devel
BuildRequires: intltool
BuildRequires: mutagen
BuildRequires: desktop-file-utils
BuildRequires: imagemagick
Requires:   python
Requires:   python-sqlite2
Requires:   python-daap
Requires:   python-musicbrainz2
Requires:   python-tunepimp
Requires:   pyvorbis
Requires:   pyogg
Requires:   pymad
Requires:   gnome-python-gnomevfs
Requires:   gnome-python-extras
Requires:   gnome-python
Requires:   gnome-python-gtkhtml2
Requires:   gstreamer
Requires:   gstreamer0.10-python 
Requires:   gstreamer0.10-plugins-ugly
Requires:   gstreamer0.10-plugins-good
Requires:   gstreamer0.10-plugins-base
Requires:   mutagen
Requires:   python-webkitgtk
Requires:   python-pyinotify
Requires:   python-gpod
BuildRoot: %{_tmppath}/%{name}-%{version}

%description
Listen is a music manager and player for GNOME

With listen you can:
* Play your favorite songs
* Manage your library
* Manage your ipod
* Make playlists
* Automatically or manually download album covers
* Automatically synchronize album covers with iPod
* Easily burn an audio CD
* Directly get informations from wikipedia when you play a song
* See the lyrics of a song
* Have statistics about your favorite songs, albums or artists
* Listen to web radio
* Submit your songs to Audioscrobbler
* Quick access to last.fm related file

With listen you will be able to:
 * Listen And Rip Audio CDs
 * Browse and listen songs on a DAAP share
 * Share you library via a DAAP share
 * Fill metadata with musicbrainz
 * Make inteligent playlists

%prep
%setup -q 

for i in $( find src -name '*.py' ); do
     perl -pi -e 'print "# -*- coding: utf-8 -*-\n"  if $. == 1 ;' $i
done;

%build
make

%install
rm -rf %buildroot %name.lang
make install PREFIX=%buildroot/%_prefix/
%find_lang %name

# menu
desktop-file-install --vendor="" \
    --remove-category="Application;Music" \
    --add-category="Audio" \
    --add-category="GTK" \
    --add-category="X-MandrivaLinux-Multimedia-Sound" \
    --remove-mime-type="audip/mp3" \
    --add-mime-type="audio/mp3" \
    --dir %{buildroot}%{_datadir}/applications \
    %{buildroot}%{_datadir}/applications/*

install -d -m 755  %{buildroot}{%{_miconsdir},%{_liconsdir},%{_iconsdir}}
convert -geometry 16x16 data/img/%{name}.png %{buildroot}%{_miconsdir}/%{name}.png
convert -geometry 32x32 data/img/%{name}.png %{buildroot}%{_iconsdir}/%{name}.png
convert -geometry 48x48 data/img/%{name}.png %{buildroot}%{_liconsdir}/%{name}.png

%clean
rm -rf %buildroot

%files -f %name.lang
%defattr(-,root,root)
%doc INSTALL gpl.txt README TODO
%{_prefix}/lib/%name/
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_mandir}/man1/%{name}.1*
%{_datadir}/dbus-1/services/org.gnome.Listen.service

%if %mdkversion < 200900
%post 
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif




%changelog
* Mon Apr 19 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.6.5-1mdv2010.1
+ Revision: 536824
- update to new version 0.6.5

* Tue Mar 23 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.6.4-2mdv2010.1
+ Revision: 526777
- fix .desktop file
- correct typo

* Mon Feb 22 2010 Frederik Himpe <fhimpe@mandriva.org> 0.6.4-1mdv2010.1
+ Revision: 509659
- update to new version 0.6.4

* Tue Feb 02 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.6.3-2mdv2010.1
+ Revision: 499460
- add missing requires

* Fri Jul 31 2009 Michael Scherer <misc@mandriva.org> 0.6.3-1mdv2010.0
+ Revision: 404884
- new version

* Sun Jun 07 2009 Jérôme Brenier <incubusss@mandriva.org> 0.6.2-1mdv2010.0
+ Revision: 383786
- update to new version 0.6.2
- drop dbus patch (merged upstream)
- use webkitgtk instead of gtkmozembed
- add needed Requires and BR
- fix license

* Sat Dec 27 2008 Michael Scherer <misc@mandriva.org> 0.5-5mdv2009.1
+ Revision: 319897
- rebuild for new python

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

* Fri Oct 03 2008 Adam Williamson <awilliamson@mandriva.org> 0.5-4mdv2009.0
+ Revision: 290971
- drop bogus buildrequires xorg-x11-Xvfb
- drop bogus requires gstreamer-alsa (#44459)

* Thu Jun 12 2008 Pixel <pixel@mandriva.com> 0.5-3mdv2009.0
+ Revision: 218422
- rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

  + Götz Waschk <waschk@mandriva.org>
    - fix buildrequires

  + Michael Scherer <misc@mandriva.org>
    - requires gnome-python-gtkmozembed, fix for #30060


* Wed Mar 28 2007 Michael Scherer <misc@mandriva.org> 0.5-3mdv2007.1
+ Revision: 149110
- add patch to fix upstream bug ( http://www.listen-project.org/ticket/571 ), ie make it work with
  newer dbus
- fix encoding of everyfile, as this is now fatal on python 2.5, fix #29943
- Add mutagen as requires, or it will not start

* Thu Mar 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.5-2mdv2007.1
+ Revision: 144073
- don't use external sources for icons

* Wed Mar 14 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.5-1mdv2007.1
+ Revision: 143849
- new version

* Tue Sep 26 2006 Michael Scherer <misc@mandriva.org> 0.4.3-2mdv2007.1
+ Revision: 62618
- release 2mdv
- fix Categories, thanks neoclust
- add missing "xdg=true"
- remove the old hack to build listen without X, as gtk no longer abort if DISPLAY is not set
- update to xdg menu
- add missing requires, fix bug #26024
- Import listen

* Wed May 10 2006 Jerome Soyer <saispo@mandriva.org> 0.4.3-1mdk
- New release 0.4.3

* Tue Apr 04 2006 Austin Acton <austin@mandriva.org> 0.4.2-3mdk
- fix summary (screwed up by debug package)
- fix grammar a bit

* Thu Mar 30 2006 Michael Scherer <misc@mandriva.org> 0.4.2-2mdk
- add missing BuildRequires, thanks Goëtz

* Wed Mar 29 2006 Jerome Soyer <saispo@mandriva.org> 0.4.2-1mdk
- New release 0.4.2

* Tue Mar 28 2006 Jerome Soyer <saispo@mandriva.org> 0.4.1-1mdk
- New release 0.4.1

* Tue Mar 28 2006 Michael Scherer <misc@mandriva.org> 0.4-1mdk
- New release 0.4

* Fri Mar 24 2006 Michael Scherer <misc@mandriva.org> 0.3.1-2mdk
- add missing requires, thanks to blino relentless testing

* Wed Mar 22 2006 Michael Scherer <misc@mandriva.org> 0.3.1-1mdk
- first package, with the help of Sebastien Savarin ( plouf ) who
  finished the .spec