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 |
#
|
|
8 |
# Owner: jim
|
|
9 |
|
|
10 |
Name: libvisual-plugins
|
|
11 |
License: GPL v2
|
|
12 |
Summary: Visualization plugins for the Libvisual library
|
|
13 |
Version: 0.4.0
|
|
14 |
URL: http://localhost.nl/~synap/libvisual-wiki/index.php/Main_Page
|
|
15 |
Source: http://downloads.sourceforge.net/libvisual/libvisual-plugins-%{version}.tar.bz2
|
14738
|
16 |
# date:2008-11-25 owner:jim type:bug bugster:6776046
|
14669
|
17 |
Patch1: libvisual-plugins-01-compiler.diff
|
|
18 |
|
|
19 |
Requires: libvisual
|
|
20 |
|
|
21 |
%prep
|
|
22 |
%setup -q -n libvisual-plugins-%{version}
|
|
23 |
%patch1 -p1
|
|
24 |
|
|
25 |
%build
|
|
26 |
%ifos linux
|
|
27 |
if [ -x /usr/bin/getconf ]; then
|
|
28 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
29 |
fi
|
|
30 |
%else
|
|
31 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
32 |
%endif
|
|
33 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
34 |
CPUS=1
|
|
35 |
fi
|
|
36 |
|
|
37 |
./configure --prefix=%{_prefix} \
|
|
38 |
--mandir=%{_mandir} \
|
|
39 |
--datadir=%{_datadir} \
|
|
40 |
--sysconfdir=%{_sysconfdir} \
|
|
41 |
--enable-shared=yes \
|
|
42 |
--enable-static=no \
|
15276
|
43 |
%ifarch sparc
|
|
44 |
%if %option_with_indiana_branding
|
|
45 |
--disable-nastyfft \
|
|
46 |
--disable-madspin \
|
|
47 |
--disable-flower \
|
|
48 |
--disable-gltest \
|
|
49 |
%endif
|
|
50 |
%endif
|
14669
|
51 |
--disable-corona \
|
|
52 |
--disable-gforce
|
|
53 |
|
|
54 |
|
|
55 |
make -j$CPUS
|
|
56 |
|
|
57 |
%install
|
|
58 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
59 |
rm -f $RPM_BUILD_ROOT/%{_libdir}/lib*.*a
|
|
60 |
|
|
61 |
%clean
|
|
62 |
rm -rf $RPM_BUILD_ROOT
|
|
63 |
|
|
64 |
%files
|
|
65 |
%defattr (-, root, bin)
|
|
66 |
%dir %attr (0755,root,bin) %{_libdir}
|
|
67 |
%{_libdir}/*
|
|
68 |
|
|
69 |
%defattr (-, root, other)
|
|
70 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
71 |
%{_datadir}/*
|
|
72 |
|
|
73 |
%changelog
|
|
74 |
* Tue Nov 25 2008 - [email protected]
|
|
75 |
- add license tag
|
|
76 |
- rename SFElibvisual-plugins to libvisual-plugins
|
|
77 |
- use sun compiler 12 instead of gcc
|
|
78 |
* Tue Jan 29 2008 - [email protected]
|
|
79 |
- Initial spec.
|