Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 668fc476bdcf7415cc6f023a6360fbc3 > files > 4

libvisual-0.2.0-4mdk.src.rpm

%define name libvisual
%define version 0.2.0 
%define release 4mdk
%define major 0
%define libname %mklibname visual %major

Summary: Audio visualisation framework
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://prdownloads.sourceforge.net/libvisual/%{name}-%{version}.tar.bz2
# (gb) 0.2.0-4mdk only build lv_video_mmx.c with -mmmx, don't bother with automake
Patch0:  libvisual-0.2.0-mmx.patch.bz2
Patch1:  libvisual-0.2.0-ppc-build-fix.patch.bz2
License: LGPL
Group: System/Libraries
Url: http://libvisual.sf.net
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: XFree86-devel

%description
Libvisual is a library that acts as a middle layer between
applications that want audio visualisation and audio visualisation
plugins.

Libvisual is aimed at developers who have a need for audio
visualisation and those who actually write the visualisation plugins.

%package -n %libname
Group: System/Libraries
Summary: Shared library of the audio visualisation framework 
Provides: %name = %version-%release

%description -n %libname
Libvisual is a library that acts as a middle layer between
applications that want audio visualisation and audio visualisation
plugins.

Libvisual is aimed at developers who have a need for audio
visualisation and those who actually write the visualisation plugins.

%package -n %libname-devel
Group: Development/C
Summary: Header files of the audio visualisation framework 
Requires: %libname = %version
Provides: libvisual-devel = %version-%release

%description -n %libname-devel
Libvisual is a library that acts as a middle layer between
applications that want audio visualisation and audio visualisation
plugins.

Libvisual is aimed at developers who have a need for audio
visualisation and those who actually write the visualisation plugins.

%prep
%setup -q
# XXX conditional patches are not nice, but x86 is way the much used
# anyway, or patch configury to use automake conditionals for VISUAL_ARCH_X86
%ifarch %{ix86}
%patch0 -p1 -b .mmx
%endif
%patch1 -p1 -b .ppc

%build
export LDFLAGS=-L%_prefix/X11R6/%_lib
%configure2_5x
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
perl -pi -e "s!-L$RPM_BUILD_DIR/%name-%version/%name!!" %buildroot%_libdir/libvisual.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig

%files -n %libname
%defattr(-,root,root)
%doc README NEWS TODO ChangeLog AUTHORS
%_libdir/libvisual.so.*

%files -n %libname-devel
%defattr(-,root,root)
%_includedir/libvisual/
%_libdir/libvisual.so
%_libdir/libvisual.la
%_libdir/pkgconfig/libvisual.pc

%changelog
* Mon Aug 22 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 0.2.0-4mdk
- reconstruct from cvs
- only build lv_video_mmx.c with -mmmx

* Mon Jun 20 2005 Götz Waschk <waschk@mandriva.org> 0.2.0-3mdk
- enable mmx

* Sat Feb 12 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.2.0-2mdk
- Patch1: fix ppc build

* Thu Feb 10 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.2.0-1mdk
- 0.2.0

* Tue Nov 23 2004 Götz Waschk <waschk@linux-mandrake.com> 0.1.7-3mdk
- fix provides

* Fri Oct 15 2004 Götz Waschk <waschk@linux-mandrake.com> 0.1.7-2mdk
- fix openGL build

* Fri Oct 15 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.1.7-1mdk
- New release 0.1.7

* Sun Sep 12 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.1.6-1mdk
- New release 0.1.6

* Wed Jun 30 2004 Götz Waschk <waschk@linux-mandrake.com> 0.1.5-1mdk
- fix installation
- New release 0.1.5

* Fri Jun 25 2004 Götz Waschk <waschk@linux-mandrake.com> 0.1.4-1mdk
- initial package