File libvisual.spec of Package libvisual

#
# spec file for package libvisual (Version 0.4.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libvisual
BuildRequires:  freeglut-devel gcc-c++ libdrm-devel pkgconfig
License:        GPL v2 or later; LGPL v2.1 or later
Group:          Productivity/Multimedia/Sound/Visualization
Version:        0.4.0
Release:        174
Summary:        Sound Visualization Library
Url:            http://localhost.nl/~synap/libvisual-wiki/index.php/Main_Page
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %name-%{version}.tar.bz2
Patch:          %name-%{version}.diff
Patch1:         %name-%{version}-compiler_warnings.diff
Patch2:         libvisual.visual_cpu_get_altivec.patch
Patch3:         %name-%{version}-unref-static.diff

%description
Libvisual is a library that acts as a middle layer between applications
that need audio visualization and audio visualization plug-ins.



Authors:
--------
    Dennis Smit <synap@nerds-incorporated.org>
    Duilio J. Protti <dprotti@users.sourceforge.net>
    Vitaly V. Bursov <vitalyb@mail333.com>
    Gustavo Sverzut Barbieri <gsbarbieri@yahoo.com.br>

%package devel
License:        GPL v2 or later; LGPL v2.1 or later
Group:          Productivity/Multimedia/Sound/Visualization
Summary:        sound visualisation library
Requires:       %{name} = %{version} glibc-devel

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

This library is used by amaroK for example.



Authors:
--------
    Dennis Smit <synap@nerds-incorporated.org>
    Duilio J. Protti <dprotti@users.sourceforge.net>
    Vitaly V. Bursov <vitalyb@mail333.com>
    Gustavo Sverzut Barbieri <gsbarbieri@yahoo.com.br>

%prep
%setup -q
%patch
%patch1
%patch2 -p1
%patch3

%build
autoreconf -fiv
%if %suse_version > 1000
CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
%endif
%ifarch %ix86
CFLAGS="$RPM_OPT_FLAGS -mmmx"
%else
CFLAGS="$RPM_OPT_FLAGS"
%endif
export CFLAGS="$CFLAGS -fno-strict-aliasing"
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%_libdir/%name/{morph,input,actor,transform} $RPM_BUILD_ROOT%_datadir/%name/{morph,input,actor,transform}
sed -e 's, -L/usr/src/packages/BUILD/libvisual-%{version}/libvisual , ,' $RPM_BUILD_ROOT/%_libdir/libvisual-0.4.la > $RPM_BUILD_ROOT/%_libdir/libvisual-0.4.la.1
mv $RPM_BUILD_ROOT/%_libdir/libvisual-0.4.la.1 $RPM_BUILD_ROOT/%_libdir/libvisual-0.4.la
# *fixme*
rm -rf $RPM_BUILD_ROOT/%_datadir/locale

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

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

%files devel
%defattr(-,root,root)
/usr/include/libvisual-0.4
%_libdir/pkgconfig/libvisual-0.4.pc
%_libdir/libvisual-0.4.so
%_libdir/libvisual-0.4.la

%changelog
* Thu Nov 13 2008 crrodriguez@suse.de
- use -fno-strict-aliasing to avoid breakages.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Mon Jun 11 2007 schwab@suse.de
- Fix unref on const object.
* Tue Nov 21 2006 olh@suse.de
- disable altivec [#219960]
* Tue Aug 29 2006 mskibbe@suse.de
- fix some compiler warnings
- fix bug 199443 - libvisual-0.4.0-2: local variable used before
  set
* Tue Jul 04 2006 cthiel@suse.de
- update to version 0.4.0
  * Real time timestamping support.
  * Will unref plugins that don't match the ABI version.
  * Added VisRectangle system.
  * New BMP loader that supports all depths and RLE encoding.
  * visual_mem_set(), visual_mem_set16(), visual_mem_set32()
  Optimized memset functions.
  * VisVideo new composite system.
  * VisVideo sub regions.
  * visual_video_zoom_*().
  * visual_video_mirror_*().
  * visual_video_rotate_*().
  * Removed obsolete visual_video_depth_transform_to_buffer().
  * Added VisCollection system.
  * Added VisHashmap.
  * Added VisCache.
  * VisAudio rewrite.
  * Added .license bit to VisPluginInfo for realtime license check.
  * Removed .struct_size and .api_version from the VisPluginInfo structure,
  and revamped the plugin version check system. Put
  VISUAL_PLUGIN_API_VERSION_VALIDATOR somewhere in your plugin and it'll
  work.
  * Homedir installable plugins ~/.libvisual/actor transform morph input.
  * Added VisOS. Realtime priority functions are hosted in this module.
  * Added VisMath. All kind of math related functions have been added, most
  note worthy are the _vectorized_. All of these are accelerated by
  mmx/3dnow/sse instructions.
  * VisFourier completely revamped.
* Tue Feb 28 2006 hvogel@suse.de
- include transform directorys for plugins [#154112]
* Fri Feb 03 2006 ro@suse.de
- Stack Protector only for > 10.0
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 hvogel@suse.de
- Make use of Stack Protector
* Mon Sep 26 2005 mls@suse.de
- make devel package require base package
* Thu Jun 23 2005 hvogel@suse.de
- remove build directory from dependency_libs
* Tue May 10 2005 ro@suse.de
- use mmx on x86
* Thu Feb 10 2005 adrian@suse.de
- update to official version 0.2.0
* Tue Feb 08 2005 hvogel@suse.de
- fix build on ppc
* Wed Feb 02 2005 hvogel@suse.de
- update to latest CVS (upcomming 0.2.0)
* Mon Nov 22 2004 hvogel@suse.de
- the directorys do not belong to the devel subpackage
* Thu Nov 11 2004 hvogel@suse.de
- include some directorys the libvisual plugins need
* Thu Oct 28 2004 adrian@suse.de
- update to version 0.1.7
* Mon Oct 11 2004 adrian@suse.de
- initial package of version 0.1.6
openSUSE Build Service is sponsored by