ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/simage.spec
Revision: 1.10
Committed: Wed May 23 16:26:07 2007 UTC (17 years, 11 months ago) by elmer
Branch: MAIN
CVS Tags: ge20070629, pe20070626c-ports, ge20070625, pe20070626b-ports, sm20070626a-ports, pe20070626a-ports, pe20070625b-ports, pe20070625a-ports, pe20070624a-ports, ge20070622, pe20070607a-ports
Changes since 1.9: +3 -3 lines
Log Message:
o Updates to use %realversion from rpm-preamble
o Versions all updated to -XXXX (we can choose the actual rebuild naming
  convention in a second pass)

File Contents

# User Rev Content
1 elmer 1.10 ### RPM external simage 1.6.1-XXXX
2     Source: http://ftp.coin3d.org/coin/src/all/%{n}-%{realversion}.tar.gz
3 eulisse 1.3 %define tmpplatf %(echo %cmsplatf | cut -d_ -f2)
4    
5     Requires: libungif libjpg zlib libpng
6     %if "%tmpplatf" != "amd64"
7     Requires: libtiff
8     %endif
9    
10 eulisse 1.1 %prep
11 elmer 1.10 %setup -n %{n}-%{realversion}
12 eulisse 1.2
13 eulisse 1.1 %build
14 eulisse 1.3 CONFIGURE_ENV=
15     CONFIGURE_OPTS="--with-tiff=$LIBTIFF_ROOT"
16     %if "%tmpplatf" == "amd64"
17     CONFIGURE_ENV="LD=gcc"
18     CONFIGURE_OPTS="--without-tiff"
19     %endif
20    
21     ./configure $CONFIGURE_ENV --prefix=%i \
22     $CONFIGURE_OPTS \
23 eulisse 1.2 --with-ungif=$LIBUNGIF_ROOT \
24     --with-jpeg=$LIBJPG_ROOT \
25     --with-zlib=$ZLIB_ROOT \
26     --with-png=$LIBPNG_ROOT \
27 eulisse 1.3 --without-oggvorbis
28 eulisse 1.4 make
29 eulisse 1.6
30     %post
31     %{relocateConfig}bin/simage-config
32 eulisse 1.7 %{relocateConfig}lib/libsimage.la
33     %{relocateConfig}share/Coin/conf/simage-default.cfg