Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > bb0082a5956d769cd0c92d3f70feb9e3 > files > 6

glame-2.0.2-0.20070607.rc1.1mdv2008.0.src.rpm

%define name	glame
%define version	2.0.2
%define cvs	0
%define pre	rc1
%define date	20070607
%if %cvs
%define release %mkrel 0.%cvs.1
%else
%if %pre
%define release	%mkrel 0.%date.%pre.1
%else
%define release %mkrel 1
%endif
%endif
%define build_plf 0
%{?_with_plf: %{expand: %%global build_plf 1}}
%if %build_plf
%define distsuffix plf
%endif

Summary:   	A sound editor
Name:      	%{name}
Version:   	%{version}
Release:   	%{release}
License: 	GPLv2+
Group:     	Sound
%if %cvs
Source0:	%{name}-%{cvs}.tar.bz2
%else
Source0:   	http://prdownloads.sourceforge.net/glame/%{name}-%{version}-%{pre}.tar.gz
%endif
Source1:      	%{name}-48x48.png
Source2:      	%{name}-32x32.png
Source3:      	%{name}-16x16.png
Patch:		glame-2.0.1-xdg.patch
URL:       	http://glame.sourceforge.net/ 
Buildroot: 	%{_tmppath}/%{name}-buildroot
BuildRequires: 	libgnomeui2-devel
BuildRequires: 	libglade2.0-devel
BuildRequires: 	guile-devel >= 1.6
BuildRequires: 	fftw2-devel 
BuildRequires: 	ladspa-devel
BuildRequires: 	libmad-devel
BuildRequires: 	libvorbis-devel
BuildRequires:	libltdl-devel
#gw, that's for /usr/X11R6/include/X11/bitmaps/hlines3 :
BuildRequires:  x11-data-bitmaps
BuildRequires:	gettext-devel
# autogen.sh requires cvs binary for some weird reason.
%if %cvs
BuildRequires:	cvs
%endif
BuildRequires:	texinfo

%description
GLAME is meant to be the GIMP of audio processing. It is designed to be
a powerful, fast, stable, and easily extensible sound editor for Linux
and compatible systems. Supported platforms are Linux and IRIX. 

%if %build_plf
This package is in PLF as it might violate some patents.

%package lame
Group: Sound
Summary: MP3 plugin for glame
BuildRequires: liblame-devel
Requires: %name = %version

%description lame
GLAME is meant to be the GIMP of audio processing. It is designed to be
a powerful, fast, stable, and easily extensible sound editor for Linux
and compatible systems. Supported platforms are Linux and IRIX. 

This is the MP3 encoding plugin for glame based on lame. It is in PLF
for patent reasons.
%endif

%prep
rm -rf $RPM_BUILD_ROOT

%if %cvs
%setup -q -n %{name}
%else
%if %pre
%setup -q -n %{name}-%{version}-%{pre}
%else
%setup -q
%endif
%endif
%patch -p1

%build
%if %cvs
./autogen.sh
%endif
# --enable-maintainer-mode appears to be needed to generate version.texi...
%configure2_5x --enable-maintainer-mode
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

mv %buildroot%{_datadir}/gnome/apps/Multimedia/ %buildroot%{_datadir}/applications

# install icons
mkdir -p $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{48x48,32x32,16x16}/apps
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/%{name}.png

#clean unpackaged files
rm -f %buildroot%_libdir/glame/*a

%{find_lang} %{name}

%post
/sbin/install-info %{_infodir}/glame.info %{_infodir}/dir
/sbin/install-info %{_infodir}/glame-dev.info %{_infodir}/dir
%{update_menus}
%{update_icon_cache hicolor}

%postun
/sbin/install-info --delete %{_infodir}/glame.info %{_infodir}/dir
/sbin/install-info --delete %{_infodir}/glame-dev.info %{_infodir}/dir
%{clean_menus}
%{clean_icon_cache hicolor}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%{_bindir}/*
%{_libdir}/glame/
%{_datadir}/applications/glame.desktop
%{_datadir}/%{name}/
%{_infodir}/*
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png

%if %build_plf
%files lame
%defattr (-,root,root)
%{_libdir}/glame/file_mp3_out.so
%endif




%changelog
* Thu Sep 06 2007 Adam Williamson <awilliamson@mandriva.com> 2.0.2-0.20070607.rc1.1mdv2008.0
+ Revision: 80592
- futz the versioning so it's newer than the cvs snapshot
- drop old menu and legacy icons
- use Fedora license scheme
- new release 2.0.2 rc1

* Thu May 24 2007 Adam Williamson <awilliamson@mandriva.com> 2.0.2-0.20070523.1mdv2008.0
+ Revision: 30577
- BuildRequires texinfo
- BuildRequires cvs for CVS build
- BuildRequires gettext-devel
- bump to current CVS to fix interaction with guile, include fd.o icons


* Sun Jan 07 2007 Götz Waschk <waschk@mandriva.org> 2.0.1-6mdv2007.0
+ Revision: 105345
- fix description

* Sun Jan 07 2007 Götz Waschk <waschk@mandriva.org> 2.0.1-5mdv2007.1
+ Revision: 105299
- fix installation
- Import glame

* Sun Jan 07 2007 Götz Waschk <waschk@mandriva.org> 2.0.1-5mdv2007.1
- patch for new guile
- unpack icons

* Thu Aug 03 2006 Götz Waschk <waschk@mandriva.org> 2.0.1-4mdv2007.0
- xdg menu

* Tue May 10 2005 Götz Waschk <waschk@mandriva.org> 2.0.1-3mdk
- fix menu path

* Thu Mar 31 2005 Götz Waschk <waschk@linux-mandrake.com> 2.0.1-2mdk
- fix buildrequires

* Wed Mar 30 2005 Götz Waschk <waschk@linux-mandrake.com> 2.0.1-1mdk
- New release 2.0.1

* Sat Oct 30 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0.3-1mdk
- fix buildrequires
- add source URL
- New release 1.0.3

* Wed Jan 14 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0.2-1mdk
- 1.0.2