ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/graphviz.spec
(Generate patch)

Comparing COMP/CMSDIST/graphviz.spec (file contents):
Revision 1.1 by eulisse, Fri Feb 24 08:01:52 2006 UTC vs.
Revision 1.25 by andreasp, Tue May 19 09:01:05 2009 UTC

# Line 1 | Line 1
1 < ### RPM external graphviz 1.9
2 < Source: http://service-spi.web.cern.ch/service-spi/external/tarFiles/%{n}-%{v}.tar.gz  
1 > ### RPM external graphviz 2.16.1-CMS19
2 > Source: http://www.graphviz.org/pub/%{n}/ARCHIVE/%{n}-%{realversion}.tar.gz  
3 > Requires: expat zlib libjpg libpng
4  
5   %prep
6 < %setup -n %{n}-%{v}
6 > %setup -n %{n}-%{realversion}
7  
8   %build
9 < ./configure --prefix=%{i}
10 < make
9 > which gcc
10 > LIB64_SUFFIX=
11 > case %cmsplatf in
12 >    *_ia32_* )
13 >        export LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | sed -e 's|lib64|lib|g'`
14 >        ADDITIONAL_OPTIONS="--with-freetype2=no --disable-shared --enable-static --disable-libtdl"
15 >    ;;
16 >    *_amd64_* )
17 >        LIB64_SUFFIX=64
18 >        ADDITIONAL_OPTIONS="--with-freetype2=no --disable-shared --enable-static --disable-ltdl"
19 >    ;;
20 >    osx* )
21 >        ADDITIONAL_OPTIONS="--with-freetype2=no"
22 >    ;;
23 > esac
24 > ./configure \
25 >  --with-expatlibdir=$EXPAT_ROOT/lib$LIB64_SUFFIX \
26 >  --with-expatincludedir=$EXPAT_ROOT/include \
27 >  --with-zincludedir=$ZLIB_ROOT/include \
28 >  --with-zlibdir=$ZLIB_ROOT/lib \
29 >  --with-pngincludedir=$LIBPNG_ROOT/include \
30 >  --with-pnglibdir=$LIBPNG_ROOT/lib \
31 >  --with-jpegincludedir=$LIBJPG_ROOT/include \
32 >  --with-jpeglibdir=$LIBJPG_ROOT/lib \
33 >  --without-x \
34 >  --without-tclsh \
35 >  --without-tcl \
36 >  --without-fontconfig \
37 >  --without-tk \
38 >  --without-perl \
39 >  --without-python \
40 >  --without-ruby \
41 >  --disable-ruby \
42 >  --disable-perl \
43 >  --without-pangocairo \
44 >  --without-fontconfig \
45 >  --without-gdk-pixbuf \
46 >  --disable-sharp \
47 >  --disable-guile \
48 >  --disable-java \
49 >  --disable-lua \
50 >  --disable-ocaml \
51 >  --disable-perl \
52 >  --disable-php \
53 >  --disable-python \
54 >  --prefix=%{i} \
55 >  $ADDITIONAL_OPTIONS
56 >
57 > # This is a workaround for the fact that sort from coreutils 5.96 doesn't
58 > # like "sort +0 -1", not really something specific to ppc64/ydl5.0
59 > if [ "$(uname -m)" == "ppc64" ]
60 > then
61 > perl -p -i -e "s|\+0 \-1|-k1,1|g" dotneato/common/Makefile
62 > fi
63 > # Probably the configure should just be remade on Darwin, but it builds
64 > # as-is with this small cleanup
65 > perl -p -i -e "s|-lexpat||g" configure
66 > # make %makeprocesses
67 > make
68 >
69 > %install
70 > make install
71 > # To match configure options above
72 > case %cmsplatf in
73 >    *_ia32_* | *_amd64_*)
74 >        ln -s dot_static %i/bin/dot
75 >    ;;
76 > esac
77 >
78 > # SCRAM ToolBox toolfile
79 > mkdir -p %i/etc/scram.d
80 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
81 > <doc type=BuildSystem::ToolDoc version=1.0>
82 > <Tool name=%n version=%v>
83 > <info url="http://www.research.att.com/sw/tools/graphviz/"></info>
84 > <Client>
85 > <Environment name=GRAPHVIZ_BASE default="%i"></Environment>
86 > <Environment name=GRAPHVIZ_BINDIR default="$GRAPHVIZ_BASE/bin"></Environment>
87 > <Environment name=LIBDIR default="$GRAPHVIZ_BASE/lib/graphviz"></Environment>
88 > </Client>
89 > <Runtime name=PATH value="$GRAPHVIZ_BINDIR" type=path>
90 > <Use name=expat>
91 > <Use name=zlib>
92 > <Use name=libjpg>
93 > <use name=libpng>
94 > </Tool>
95 > EOF_TOOLFILE
96 >
97 > %post
98 > # It appears one needs to list at least one explicitly as the macro adds
99 > # the prefix, but then the find can add it and the others (also with the
100 > # prefix)
101 > %{relocateConfig}/lib/libgraph.la `find $RPM_INSTALL_PREFIX/%pkgrel/lib -name *.la`
102 > %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines