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