Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 988b027a082c8729f654222ff2f8ee45 > files > 3

muine-0.8.2-5mdk.src.rpm

%define version 0.8.2
%define rel 5
%define build_plf 0
%{?_with_plf: %{expand: %%global build_plf 1}}
%if %build_plf
%define release %{rel}plf
%else
%define release %{rel}mdk
%endif

%define req_mono_version 0.91
%define gtk_sharp_version 1.9.1

%define	gstname gstreamer08
%define gstver 0.8.0
%define build_gst 0
%{?_with_gst: %{expand: %%global build_gst 1}}
%{?_without_gst: %{expand: %%global build_gst 0}}

Summary:	Music player for GNOME
Name:		muine
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Sound
URL:		http://muine.gooeylinux.org/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
Source:		http://muine.gooeylinux.org/%{name}-%{version}.tar.bz2
Source1:	muine-0.8.2-mime.bz2
BuildRequires:	gdbm-devel
BuildRequires:	gnome-vfs2-devel
BuildRequires:	gnome-sharp2 >= %gtk_sharp_version
BuildRequires:	dbus-sharp
BuildRequires:	gtk+2-devel
BuildRequires:	libGConf2-devel
BuildRequires:	libid3tag-devel >= 0.15
BuildRequires:	libflac-devel
BuildRequires:	mono-devel >= %{req_mono_version}
BuildRequires:	oggvorbis-devel
BuildRequires:	ImageMagick
#gw broken intltool:
BuildRequires: perl-XML-Parser
%if %build_plf
BuildRequires: libfaad2-devel
%endif
Prereq:		GConf2 >= 2.3.3
Requires:	mono >= %{req_mono_version}
%if %build_gst
BuildRequires:	gstreamer-plugins-devel >= %gstver
Requires:	%gstname-GConf >= %gstver
Requires:	%gstname-vorbis >= %gstver
Requires:	%gstname-mad >= %gstver
Requires:	%gstname-flac >= %gstver
Requires:	%gstname-audio-effects >= %gstver
Requires:	%gstname-audiosink >= %gstver
%if %build_plf
Requires: %gstname-faad >= %gstver
%endif
%else
BuildRequires: libxine-devel
Requires: xine-plugins
Requires: xine-flac
%if %build_plf
Requires: xine-faad
%endif
%endif

%description
Muine is a music player for GNOME. Its UI has been designed from the
ground up to be very comfortable, and not just a clone of iTunes.
It is playlist-based, but does have a music library (not a traditional
one, though).
%if %build_plf
This package is in PLF, as it uses MPEG4 technology and might violate
some patents.
%endif

%prep
%setup -q

%build
# lower optimization, seems to be more stable
CFLAGS=`echo %{optflags} | sed 's/-O[0-9]/-O/'`
%configure2_5x \
%if %build_gst
  --enable-gstreamer=yes \
%else
  --enable-gstreamer=no \
%endif


make

%install
rm -rf %{buildroot}
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std
#gw fix broken gac installation
(
cd %buildroot%_libdir/mono/
for dll in gac/*/*/*.dll; do ln -sf ../$dll %name;done
)
%find_lang %name
# menu entry
mkdir -p %{buildroot}%{_menudir}
cat > %{buildroot}%{_menudir}/%{name} << _EOF_
?package(%{name}): \
 command="%{_bindir}/muine" \
 icon="muine.png" \
 longtitle="Listen to your music" \
 needs="x11" \
 section="Multimedia/Sound" \
 title="Muine Music Player" \
 startup_notify="true"
_EOF_

# icons
mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
install -m 644 -D       ./data/images/muine.png %{buildroot}%{_liconsdir}/muine.png
convert -geometry 32x32 ./data/images/muine.png %{buildroot}%{_iconsdir}/muine.png
convert -geometry 16x16 ./data/images/muine.png %{buildroot}%{_miconsdir}/muine.png

# remove unwanted files
rm -f %{buildroot}%{_libdir}/%{name}/lib*.{a,la}

#mime
mkdir -p %buildroot%_datadir/mime/packages
bzcat %SOURCE1  > %buildroot%_datadir/mime/packages/%name

%post
%update_menus
update-mime-database %_datadir/mime > /dev/null
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
for SCHEMA in muine; do
    gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$SCHEMA.schemas > /dev/null
done

%preun
if [ "$1" = "0" ]; then
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    for SCHEMA in muine; do
        gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$SCHEMA.schemas > /dev/null
    done
fi

%postun
%clean_menus
update-mime-database %_datadir/mime > /dev/null

%clean
rm -rf %{buildroot}

%files -f %name.lang
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README TODO
%{_sysconfdir}/gconf/schemas/*.schemas
%{_bindir}/*
%{_libdir}/%{name}
%_libdir/dbus-1.0/services/org.gnome.Muine.service
%_libdir/monodoc/sources/*
%_libdir/mono/muine/
%_libdir/mono/gac/muine*
%_libdir/pkgconfig/*.pc
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*
%_datadir/mime/packages/%name

%{_menudir}/%{name}
%{_iconsdir}/muine.png
%{_miconsdir}/muine.png
%{_liconsdir}/muine.png

%changelog
* Tue Mar 29 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.2-5mdk
- rebuild

* Wed Feb 23 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.2-4mdk
- rebuild for new dbus-sharp

* Sun Feb 20 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.2-3mdk
- fix mime script call

* Sat Feb 19 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.2-2mdk
- add mime registration for AAC files
- fix deps

* Thu Feb 17 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.2-1mdk
- new version

* Thu Feb 17 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.1-3mdk
- rebuild for new dbus-sharp

* Sat Feb  5 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.1-2mdk
- conditional MPEG4 metadata support

* Fri Feb  4 2005 Goetz Waschk <waschk@linux-mandrake.com> 0.8.1-1mdk
- New release 0.8.1

* Fri Jan 21 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.0-3mdk
- rebuild for new dbus-sharp

* Fri Jan 14 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.0-2mdk
- fix buildrequires

* Mon Jan 10 2005 Götz Waschk <waschk@linux-mandrake.com> 0.8.0-1mdk
- add new files
- disable parallel make
- New release 0.8.0

* Tue Dec 28 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.7.1-1mdk
- New release 0.7.1

* Tue Dec 28 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.0-2mdk
- rebuild

* Mon Dec 27 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.0-1mdk
- we need gnome-sharp2 now
a- New release 0.7.0

* Wed Dec  8 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.3-4mdk
- rebuild for libgdbm3

* Mon Aug  2 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.3-3mdk
- rebuild for new flac

* Wed Jul 28 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.3-2mdk
- rebuild for new rpm

* Sat Jun 19 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.6.3-1mdk
- New release 0.6.3

* Sun Jun  6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.2-1mdk
- drop patches
- new version

* Sat Jun  5 2004 Marcel Pol <mpol@mandrake.org> 0.6.1-3mdk
- update (build)requires

* Thu Jun  3 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.1-2mdk
- patch away small syntax error
- remove workaround for bug 9713
- reenable libtoolize
- patch to build with new gtksharp

* Tue May 11 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.6.1-1mdk
- New release 0.6.1

* Sun May  9 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.0-1mdk
- workaround bug #9713
- requires new mono and gtk-sharp
- add source URL
- new version

* Fri Apr  9 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5.3-1mdk
- new version

* Mon Apr  5 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5.2-1mdk
- new version

* Sun Apr  4 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5.1-2mdk
- this uses xine instead of gstreamer as backend
- fix URL

* Sat Apr  3 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5.1-1mdk
- requires new gtk-sharp
- new version

* Mon Mar  1 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5.0-3mdk
- fix buildrequires

* Mon Mar  1 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5.0-2mdk
- require gstreamer-GConf and gstreamer-audiosink

* Mon Mar  1 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5.0-1mdk
- add new files
- requires new versions of mono and gtk-sharp
- new version

* Thu Feb 12 2004 Götz Waschk <waschk@linux-mandrake.com> 0.4.0-1mdk
- fix buildrequires
- new version

* Wed Feb  4 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.2-1mdk
- drop merged patch 0
- new version

* Mon Feb  2 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.1.1-1mdk
- drop patch 1
- new version

* Mon Feb  2 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.1-2mdk
- fix mono version check

* Sun Feb  1 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.1-1mdk
- requires gstreamer-flac
- new version

* Sun Feb  1 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.0-2mdk
- patch default gconf schema to fix bug 7237

* Wed Jan 28 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.0-1mdk
- fix menu section again
- fix file list
- new version

* Sat Jan 24 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2-2mdk
- new menu
- fix deps

* Fri Jan 23 2004 Abel Cheung <deaddog@deaddog.org> 0.2-1mdk
- First Mandrake package