Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > a19ec38736a257ce96b2247ca4f33069 > files > 7

marlin-0.12-2mdv2008.0.src.rpm

%define	name	marlin
%define version 0.12
%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
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
# From GNOME bug #475905: updates marlin to newer libunique API.
# tested for libunique 0.9.3, may need updating for future versions.
# by Emmanuele Bassi. - AdamW 2007/09
Patch0:		marlin-0.12-unique.patch
# Fixes some errors in the .schemas file - AdamW 2007/09
Patch1:		marlin-0.12-schemas.patch

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildRequires:	gettext
BuildRequires:	scrollkeeper
BuildRequires:	intltool
BuildRequires:	libgnomeui2-devel
BuildRequires:	libgstreamer0.10-plugins-base-devel
BuildRequires:	libnautilus-burn-devel >= 2.11.5
BuildRequires:	e2fsprogs-devel
BuildRequires:	libmusicbrainz-devel >= 2.1.1
BuildRequires:	perl-XML-Parser
BuildRequires:	gnome-common
BuildRequires:	unique-devel
BuildRequires:	soundtouch-devel
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
%patch0 -p0 -b .unique
%patch1 -p1 -b .schemas
perl -pi -e 's,marlin/marlin-icon.png,%{name},g' marlin.desktop.in

%build
autoreconf
# the tarball has old versions of the intltool scripts, which don't
# work any more. this is a somewhat hacky way to make it use packaged
# ones instead. there must be a cleaner way to do it, but I can't
# figure it out: the lines are in aclocal.m4, and if you generate
# aclocal.m4 with 'aclocal' they're in the generated copy, but I can't
# figure out where the hell they come *from*. the lines don't appear
# in any other file in the tarball. autoreconf runs aclocal, so we
# have to do this substitution *after* autoreconf, and then do
# autoconf again to get the changes into the 'configure' script.
# - AdamW 2007/09
perl -pi -e 's,\$\(top_builddir\)/intltool,%{_bindir}/intltool,g' aclocal.m4
autoconf

%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

%post
%update_menus
%post_install_gconf_schemas %{schemas}
%update_scrollkeeper
%update_icon_cache hicolor

%preun
%preun_uninstall_gconf_schemas %{schemas}

%post -n %{libname} -p /sbin/ldconfig

%postun
%clean_menus
%clean_scrollkeeper
%clean_icon_cache hicolor

%postun -n %{libname} -p /sbin/ldconfig

%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
* Thu Sep 13 2007 Adam Williamson <awilliamson@mandriva.com> 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 <fundawang@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