Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 65aaa45ebb254438ca6573cb946a906c > files > 7

marlin-0.13-2mdv2010.1.src.rpm

%define	name	marlin
%define version 0.13
%define schemas	%{name}

%define	major		0
%define	libname		%mklibname %name %major
%define develname	%mklibname %name -d

Summary: 	A GNOME sample editor
Name: 		%name
Version: 	%version
Release: 	%mkrel 2
License: 	GPLv2
Group: 		Graphical desktop/GNOME
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
URL: 		http://marlin.sourceforge.net/

Source0: 	http://folks.o-hand.com/iain/marlin-releases/%{name}-%{version}.tar.bz2
Source1:	%name-16.png
Source2:	%name-32.png
Source3:	%name.png
Patch0: marlin-0.13-format-string.patch
Patch1: marlin-0.13-soundtouch-1.4.patch

BuildRequires:	gettext
BuildRequires:	scrollkeeper
BuildRequires:	intltool
BuildRequires:	libGConf2-devel
BuildRequires:	gtk+2-devel
BuildRequires:	libgstreamer0.10-plugins-base-devel
BuildRequires:  gnome-media-devel
#gw disabled in configure.in
#BuildRequires:	libuuid-devel
BuildRequires:	libmusicbrainz-devel >= 2.1.1
BuildRequires:	gnome-common
BuildRequires:	unique-devel
BuildRequires:	soundtouch-devel >= 1.4
BuildRequires:	libjack-devel
BuildRequires:	libsamplerate-devel
BuildRequires:	desktop-file-utils

%description 
Marlin is a sample editor for GNOME. It uses GStreamer for 
file operations and for recording and playback, meaning it 
can handle a great number of formats and work with most sound 
systems.

    * Can load from a large number of media formats (mp3, ogg, mpg, avi...)
    * Can save to many formats (mp3, wav, ogg...)
    * Can handle large files with no problems
    * Handles cut, copy, paste, and mix operations
    * Fully Gnome 2 HIG compliant
    * Can record from a variety of sources (ALSA, OSS, esd, MAS, arts)
    * Playback
    * Can extract audio from CDs

%package -n	%libname
Summary: 	Shared libraries for Marlin
Group: 		Sound
Provides:	libmarlin = %version-%release

%description -n	%libname
Marlin is a sample editor for GNOME. It uses GStreamer for 
file operations and for recording and playback, meaning it 
can handle a great number of formats and work with most sound 
systems.

%package -n	%develname
Summary: 	Development libraries and headers for Marlin
Requires:	%libname = %version
Group: 		Sound
Provides: 	%name-devel = %version-%release
Obsoletes:	%mklibname %name 0 -d

%description -n	%develname
Marlin is a sample editor for GNOME. It uses GStreamer for 
file operations and for recording and playback, meaning it 
can handle a great number of formats and work with most sound 
systems.

%prep
%setup -q
%apply_patches
autoreconf -fi

%build
#gw 0.13 does not build
%define _disable_ld_no_undefined 1
%configure2_5x --disable-schemas-install
%make WARN_CFLAGS=""

%install
rm -rf %buildroot
%{makeinstall_std}

# menu entry
desktop-file-install --vendor="" \
  --add-category="GTK" \
  --add-category="GNOME" \
  --add-category="Audio" \
  --add-category="AudioVideoEditing" \
  --remove-category="Application" \
  --remove-category="Multimedia" \
  --remove-key="Encoding" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %name --with-gnome

# icon
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
#install -m 644 src/pixmaps/%name.png %buildroot/%_datadir/pixmaps/%name.png
install -m644 %SOURCE1 -D %buildroot%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %SOURCE2 -D %buildroot%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m644 %SOURCE3 -D %buildroot%{_iconsdir}/hicolor/32x32/apps/%{name}.png

%if %mdkversion < 200900
%post
%update_menus
%post_install_gconf_schemas %{schemas}
%update_scrollkeeper
%update_icon_cache hicolor
%endif

%preun
%preun_uninstall_gconf_schemas %{schemas}

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%clean_scrollkeeper
%clean_icon_cache hicolor
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %buildroot

%files -n %name -f %name.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog README TODO
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_bindir}/*
%{_libdir}/%{name}-%{version}
%{_datadir}/%{name}
%{_datadir}/omf/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

%files -n %libname
%defattr(-,root,root,-)
%{_libdir}/lib*.so.%{major}*

%files -n %develname
%defattr(-,root,root,-)
%dir %{_includedir}/libmarlin
%{_includedir}/libmarlin/*
%{_libdir}/*a
%{_libdir}/*.so



%changelog
* Mon Mar 01 2010 Götz Waschk <waschk@mandriva.org> 0.13-2mdv2010.1
+ Revision: 512900
- patch for soundtouch 1.4
- update build deps

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

* Tue Feb 17 2009 Götz Waschk <waschk@mandriva.org> 0.13-1mdv2009.1
+ Revision: 341458
- new version
- drop patches
- fix format strings
- disable --no-undefined

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

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Thu Sep 13 2007 Adam Williamson <awilliamson@mandriva.org> 0.12-1mdv2008.0
+ Revision: 85302
- add marlin-0.12-schemas.patch to fix some errors in the gconf .schemas file
- correct some errors in the desktop-file-install command
- buildrequires desktop-file-utils
- add a couple of missing buildrequires
- menu entry fixups
- update and clean file lists
- fd.o icons
- use macros for schema / scrollkeeper
- hack to use system rather than included intltool scripts (needed to fix build)
- drop stray second %%description
- update buildrequires
- add marlin-0.12-unique.patch (patch0) - ports app to latest libunique API
- new download location
- Fedora license policy
- new devel policy
- spec clean
- new release 0.12

  + Funda Wang <fwang@mandriva.org>
    - Update to svn trunk tarball
    - Rebuild


* Sat May 13 2006 Emmanuel Andry <eandry@mandriva.org> 0.9-3mdk
- Rebuild for nautilus-burn

* Fri Apr 07 2006 Jerome Soyer <saispo@mandriva.org> 0.9-2mdk
- Rebuild for unresolved dependency

* Tue Oct 11 2005 Götz Waschk <waschk@mandriva.org> 0.9-1mdk
- bump deps
- drop patches
- New release 0.9

* Wed Jul 13 2005 Götz Waschk <waschk@mandriva.org> 0.8-2mdk
- fix buildrequires

* Wed Jul 13 2005 Götz Waschk <waschk@mandriva.org> 0.8-1mdk
- another build patch
- New release 0.8

* Mon Sep 13 2004 Jerome Soyer <saispo@mandrake.org> 0.7-1mdk
- New version

* Thu Sep 02 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6-1mdk
- patch0: fix build
- fix source URL
- New release 0.6

* Thu Aug 26 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5-5mdk
- more build requires

* Thu Aug 26 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5-4mdk
- more buildrequires fixes

* Wed Aug 25 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5-3mdk
- fix buildrequires

* Tue Aug 24 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.5-2mdk
- fix the use summary macro in menu item

* Sat Aug 14 2004 Jerome Soyer <jeromesoyer@yahoo.fr> 0.5-1mdk
- first build