15420N/A#
15420N/A# spec file for package libvisual-plugins.spec
15420N/A#
15420N/A# Copyright (c) 2008 Sun Microsystems, Inc.
15420N/A# This file and all modifications and additions to the pristine
15420N/A# package are under the same license as the package itself.
15420N/A#
20307N/A%define owner wangke
15420N/A
17182N/A%define OSR 10429:0.x
17182N/A
15420N/AName: libvisual-plugins
18572N/ALicense: GPL v2
15420N/ASummary: Visualization plugins for the Libvisual library
15420N/AVersion: 0.4.0
18616N/AVendor: Other
15420N/AURL: http://localhost.nl/~synap/libvisual-wiki/index.php/Main_Page
15420N/ASource: http://downloads.sourceforge.net/libvisual/libvisual-plugins-%{version}.tar.bz2
20307N/A# date:2009-09-24 owner:wangke type:branding
20124N/APatch1: libvisual-plugins-01-opengl.diff
15420N/A
15420N/ARequires: libvisual
15420N/A
15420N/A%prep
15420N/A%setup -q -n libvisual-plugins-%{version}
15420N/A%patch1 -p1
15420N/A
15420N/A%build
15420N/A%ifos linux
15420N/Aif [ -x /usr/bin/getconf ]; then
15420N/A CPUS=`getconf _NPROCESSORS_ONLN`
15420N/Afi
15420N/A%else
15420N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15420N/A%endif
15420N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15420N/A CPUS=1
15420N/Afi
15420N/A
17388N/Aautoconf
16052N/A# the following ifarch-endif contains plugins
16052N/A# which depend on OpenGL
15420N/A./configure --prefix=%{_prefix} \
18572N/A --bindir=%{_bindir} \
18572N/A --libdir=%{_libdir} \
18572N/A --mandir=%{_mandir} \
15420N/A --datadir=%{_datadir} \
18572N/A --sysconfdir=%{_sysconfdir} \
15420N/A --enable-shared=yes \
18572N/A --enable-static=no \
16027N/A%ifarch sparc
18572N/A --disable-opengl \
16027N/A%endif
18572N/A --disable-corona \
18572N/A --disable-gforce
15420N/A
15420N/A
15420N/Amake -j$CPUS
15420N/A
15420N/A%install
15420N/Amake install DESTDIR=$RPM_BUILD_ROOT
15420N/A
15420N/A%clean
15420N/Arm -rf $RPM_BUILD_ROOT
15420N/A
15420N/A%files
15420N/A%defattr (-, root, bin)
15420N/A%dir %attr (0755,root,bin) %{_libdir}
15420N/A%{_libdir}/*
15420N/A
15420N/A%defattr (-, root, other)
15420N/A%dir %attr(0755, root, sys) %{_datadir}
15420N/A%{_datadir}/*
15420N/A
15420N/A%changelog
17388N/A* Thu Sep 24 2009 - jedy.wang@sun.com
17388N/A- Add 02-opengl.diff and disable OpenGL plugins on SPARC.
16085N/A* Tue Mar 10 2009 - harry.lu@sun.com
16085N/A- Change owner to Jerry Tan
15420N/A* Tue Nov 25 2008 - jim.li@sun.com
15420N/A- add license tag
15420N/A- rename SFElibvisual-plugins to libvisual-plugins
15420N/A- use sun compiler 12 instead of gcc
15420N/A* Tue Jan 29 2008 - moinak.ghosh@sun.com
15420N/A- Initial spec.