ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/graphviz.spec
Revision: 1.16
Committed: Thu Dec 27 20:28:33 2007 UTC (17 years, 4 months ago) by elmer
Branch: MAIN
CVS Tags: pe20080119a-ports-412, pe20080119a-ports, pe20080118g-ports-412, pe20080118g-ports, pe20080118f-ports-412, pe20080118f-ports, nr_pe20080118e-ports-onl, pe20080118e-ports-412, pe20080118e-ports, pe20080118d-ports-412, pe20080118d-ports, pe20080118c-ports, pe20080118b-ports, pe20080118a-ports, pe20080111b-ports, pe20080111a-ports, pe20080110b-ports, pe20080110a-ports, pe20080109a-ports, pe20080108c-ports, ge20080108-wt, pe20080108b-ports, pe20080108a-ports, pe20080105a-ports, pe20080104a-ports, pe20080103a-ports-gcc422, pe20080103a-ports, pe20070103a-ports, pe20080101a-ports, pe20071128b-ports, pe20071128a-ports, pe20071127b-ports
Changes since 1.15: +1 -1 lines
Log Message:
Update to -CMS19 (and variants) and CMS_152.
SCRAMV1 was updated to V1_0_3-p4

File Contents

# Content
1 ### RPM external graphviz 1.9-CMS19
2 Source: http://service-spi.web.cern.ch/service-spi/external/tarFiles/%{n}-%{realversion}.tar.gz
3 Requires: expat zlib libjpg libpng
4 Patch0: graphviz
5
6 %prep
7 %setup -n %{n}-%{realversion}
8 %patch0 -p1
9
10 %build
11 ./configure \
12 --with-expatlibdir=$EXPAT_ROOT/lib \
13 --with-expatincludedir=$EXPAT_ROOT/include \
14 --with-zincludedir=$ZLIB_ROOT/include \
15 --with-zlibdir=$ZLIB_ROOT/lib \
16 --with-pngincludedir=$LIBJPG_ROOT/include \
17 --with-pnglibdir=$LIBJPG_ROOT/lib \
18 --with-jpegincludedir=$LIBPNG_ROOT/include \
19 --with-jpeglibdir=$LIBPNG_ROOT/lib \
20 --without-x \
21 --without-tclsh \
22 --without-tcl \
23 --without-tk \
24 --prefix=%{i}
25 # This is a workaround for the fact that sort from coreutils 5.96 doesn't
26 # like "sort +0 -1", not really something specific to ppc64/ydl5.0
27 if [ "$(uname -m)" == "ppc64" ]
28 then
29 perl -p -i -e "s|\+0 \-1|-k1,1|g" dotneato/common/Makefile
30 fi
31 make
32
33 %install
34 make install
35 # SCRAM ToolBox toolfile
36 mkdir -p %i/etc/scram.d
37 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
38 <doc type=BuildSystem::ToolDoc version=1.0>
39 <Tool name=%n version=%v>
40 <info url="http://www.research.att.com/sw/tools/graphviz/"></info>
41 <Client>
42 <Environment name=GRAPHVIZ_BASE default="%i"></Environment>
43 <Environment name=GRAPHVIZ_BINDIR default="$GRAPHVIZ_BASE/bin"></Environment>
44 <Environment name=LIBDIR default="$GRAPHVIZ_BASE/lib/graphviz"></Environment>
45 </Client>
46 <Runtime name=PATH value="$GRAPHVIZ_BINDIR" type=path>
47 <Use name=expat>
48 <Use name=zlib>
49 <Use name=libjpg>
50 <use name=libpng>
51 </Tool>
52 EOF_TOOLFILE
53
54 %post
55 %{relocateConfig}bin/dotneato-config `find $RPM_INSTALL_PREFIX/%pkgrel/lib/graphviz -name *.la`
56 %{relocateConfig}etc/scram.d/%n