14669
|
1 |
#
|
|
2 |
# spec file for package libvisual-plugins.spec
|
|
3 |
#
|
|
4 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
17988
|
8 |
%define owner yippi
|
14669
|
9 |
|
16431
|
10 |
%define OSR 10429:0.x
|
|
11 |
|
14669
|
12 |
Name: libvisual-plugins
|
17821
|
13 |
License: GPL v2
|
14669
|
14 |
Summary: Visualization plugins for the Libvisual library
|
|
15 |
Version: 0.4.0
|
17865
|
16 |
Vendor: Other
|
14669
|
17 |
URL: http://localhost.nl/~synap/libvisual-wiki/index.php/Main_Page
|
|
18 |
Source: http://downloads.sourceforge.net/libvisual/libvisual-plugins-%{version}.tar.bz2
|
17988
|
19 |
# date:2008-11-25 owner:yippi type:branding
|
17821
|
20 |
Patch1: libvisual-plugins-01-compiler.diff
|
18020
|
21 |
# date:2009-09-24 owner:yippi type:branding
|
17821
|
22 |
Patch2: libvisual-plugins-02-opengl.diff
|
14669
|
23 |
|
|
24 |
Requires: libvisual
|
|
25 |
|
|
26 |
%prep
|
|
27 |
%setup -q -n libvisual-plugins-%{version}
|
|
28 |
%patch1 -p1
|
16637
|
29 |
%patch2 -p1
|
14669
|
30 |
|
|
31 |
%build
|
|
32 |
%ifos linux
|
|
33 |
if [ -x /usr/bin/getconf ]; then
|
|
34 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
35 |
fi
|
|
36 |
%else
|
|
37 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
38 |
%endif
|
|
39 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
40 |
CPUS=1
|
|
41 |
fi
|
|
42 |
|
16637
|
43 |
autoconf
|
15301
|
44 |
# the following ifarch-endif contains plugins
|
|
45 |
# which depend on OpenGL
|
14669
|
46 |
./configure --prefix=%{_prefix} \
|
17821
|
47 |
--bindir=%{_bindir} \
|
|
48 |
--libdir=%{_libdir} \
|
|
49 |
--mandir=%{_mandir} \
|
14669
|
50 |
--datadir=%{_datadir} \
|
17821
|
51 |
--sysconfdir=%{_sysconfdir} \
|
14669
|
52 |
--enable-shared=yes \
|
17821
|
53 |
--enable-static=no \
|
15276
|
54 |
%ifarch sparc
|
17821
|
55 |
--disable-opengl \
|
15276
|
56 |
%endif
|
17821
|
57 |
--disable-corona \
|
|
58 |
--disable-gforce
|
14669
|
59 |
|
|
60 |
|
|
61 |
make -j$CPUS
|
|
62 |
|
|
63 |
%install
|
|
64 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
65 |
|
|
66 |
%clean
|
|
67 |
rm -rf $RPM_BUILD_ROOT
|
|
68 |
|
|
69 |
%files
|
|
70 |
%defattr (-, root, bin)
|
|
71 |
%dir %attr (0755,root,bin) %{_libdir}
|
|
72 |
%{_libdir}/*
|
|
73 |
|
|
74 |
%defattr (-, root, other)
|
|
75 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
76 |
%{_datadir}/*
|
|
77 |
|
|
78 |
%changelog
|
16637
|
79 |
* Thu Sep 24 2009 - [email protected]
|
|
80 |
- Add 02-opengl.diff and disable OpenGL plugins on SPARC.
|
15334
|
81 |
* Tue Mar 10 2009 - [email protected]
|
|
82 |
- Change owner to Jerry Tan
|
14669
|
83 |
* Tue Nov 25 2008 - [email protected]
|
|
84 |
- add license tag
|
|
85 |
- rename SFElibvisual-plugins to libvisual-plugins
|
|
86 |
- use sun compiler 12 instead of gcc
|
|
87 |
* Tue Jan 29 2008 - [email protected]
|
|
88 |
- Initial spec.
|