Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > d439372347e50366afd65a259b79f3e1 > files > 5

gmp3-1.0-0.pre5.1mdk.src.rpm

%define name gmp3
%define version 1.0
%define pre pre5
%define release 0.%{pre}.1mdk
%define summary A GUI tool to rename and tag mp3 and ogg/vorbis files

Summary: %{summary}
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL 
URL: http://software.manicsadness.com/gmp3 
Group: Sound
Source0: %{name}-%{version}%{pre}-1.tar.bz2
Source1: %{name}-48x48.png
Source2:      %{name}-32x32.png
Source3:      %{name}-16x16.png 
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: libgnome-devel >= 1.2.8 
BuildRequires: libvorbis-devel
BuildRequires: autoconf2.5
 
%description
gmp3 is a suite to rename and tag mp3 and ogg/vorbis files.
It is free software, and distributed under the terms of the GPL.
It was written by sam (Samuel Abels, sam@manicsadness.com) and
implemented in C using the GTK.

Features:

- define rules for renaming, which you can proceed on a list of files
- mass renaming/tagging of mp3s
- define rules to apply on a queue of mp3files
- dynamically tagging is implemented, that means, you can generate a
  tag out of the filename and/or directory name
- renaming of files through freedb
- a LOT more

%prep
%setup -q -n %name-%version%pre

%build
%configure2_5x
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

mkdir -p $RPM_BUILD_ROOT/%{_menudir}
cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%{name}
?package(%{name}):\
needs="x11"\
section="Multimedia/Sound"\
title="Gmp3"\
longtitle="A GUI tool to rename and tag mp3 and ogg/vorbis files."\
command="gmp3"\
icon="%{name}.png"
EOF

mkdir -p $RPM_BUILD_ROOT{%{_liconsdir},%{_miconsdir},%{_iconsdir}} 
cp %{SOURCE1} $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
cp %{SOURCE2} $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
cp %{SOURCE3} $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
 
%post
%{update_menus}

%postun
%{clean_menus} 

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc INSTALL COPYING  
%{_bindir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_menudir}/%{name}
%{_datadir}/pixmaps/%{name}/*.xpm


%changelog
* Sun Sep 15 2002 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre5.1mdk
- 1.0pre5

* Thu Sep 12 2002 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.pre4.1mdk
- initial package based on spec from Charles A Edwards <eslrahc@bellsouth.net>
- adapt buildrequires, version scheme

* Wed Sep 11 2002 Charles A Edwards <eslrahc@bellsouth.net>  
- First Mandrake package
- Modified oher spec
- Use autoconf-2.5
- Add Mandrake menu entries
- Add Icons