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