12840
|
1 |
#
|
|
2 |
# spec file for package gegl
|
|
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: laca
|
|
9 |
#
|
|
10 |
Name: gegl
|
|
11 |
License: GPL
|
|
12 |
Group: System/Libraries
|
|
13 |
Version: 0.0.18
|
|
14 |
Release: 1
|
|
15 |
Distribution: Java Desktop System
|
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Graph based image processing framework.
|
|
18 |
Source: ftp://ftp.gimp.org/pub/gegl/0.0/gegl-%{version}.tar.bz2
|
|
19 |
URL: http://gegl.org/
|
|
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
21 |
Docdir: %{_defaultdocdir}/%{name}
|
|
22 |
Autoreqprov: on
|
|
23 |
|
|
24 |
%description
|
|
25 |
GEGL (Generic Graphics Library) is a graph based image processing framework.
|
|
26 |
|
|
27 |
%prep
|
|
28 |
%setup -q
|
|
29 |
|
|
30 |
%build
|
|
31 |
%ifos linux
|
|
32 |
if [ -x /usr/bin/getconf ]; then
|
|
33 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
34 |
fi
|
|
35 |
%else
|
|
36 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
37 |
%endif
|
|
38 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
39 |
CPUS=1
|
|
40 |
fi
|
|
41 |
|
|
42 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
43 |
./configure --prefix=%{_prefix}
|
|
44 |
make -j$CPUS
|
|
45 |
|
|
46 |
%install
|
|
47 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
48 |
|
|
49 |
%clean
|
|
50 |
rm -rf $RPM_BUILD_ROOT
|
|
51 |
|
|
52 |
%files
|
|
53 |
|
|
54 |
%changelog
|
|
55 |
* Thu Jul 17 2008 - [email protected]
|
|
56 |
- Initial version.
|