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

Comparing COMP/CMSDIST/kcachegrind.spec (file contents):
Revision 1.1 by muzaffar, Mon Feb 19 15:17:33 2007 UTC vs.
Revision 1.4 by muzaffar, Tue Feb 20 14:13:13 2007 UTC

# Line 8 | Line 8 | Provides: libkdesu.so.4
8   Provides: libkdeui.so.4
9   Provides: libkio.so.4
10   Provides: libkwalletclient.so.1
11 < Requires: qt libpng libjpg zlib
11 > Requires: qt libpng
12  
13   %define realversion %(echo %v | cut -d- -f1)
14   %define machine_os  %(echo %cmsplatf | cut -d_ -f1)
# Line 16 | Line 16 | Requires: qt libpng libjpg zlib
16   %define sourcefile0 http://kcachegrind.sourceforge.net/%{n}-%{realversion}.tar.gz
17   %define pacthfile0 http://cmsdoc.cern.ch/~muzaffar/public/%{n}-%{realversion}-patch.tar.gz
18   %else
19 < %define sourcefile0 none
20 < %define pacthfile0 none
19 > %define sourcefile0   none
20 > %define pacthfile0    none
21   %endif
22  
23   Source0: %sourcefile0
# Line 36 | Line 36 | make -f admin/Makefile.common cvs
36  
37   %build
38   %if "%{machine_os}" == "slc4"
39 < export CPPFLAGS="-I$LIBPNG_ROOT/include -I$LIBJPG_ROOT/include -I$ZLIB_ROOT/include"
40 < export LDFLAGS="-L$LIBPNG_ROOT/lib -L$LIBJPG_ROOT/lib -L$ZLIB_ROOT/lib"
41 < ./configure --prefix=%i
39 > export CPPFLAGS="-I$LIBPNG_ROOT/include"
40 > export LDFLAGS="-L$LIBPNG_ROOT/lib"
41 > ./configure --prefix=%i --disable-rpath
42 >
43 > # Fix for hard coded rpath
44 > sed 's|hardcode_libdir_flag_spec=".*"|hardcode_libdir_flag_spec=""|' libtool > libtool.new
45 > mv libtool.new libtool
46 >
47   make %makeprocesses
48   %install
49   make install
# Line 48 | Line 53 | make install
53   mkdir -p $RPM_INSTALL_PREFIX/%pkgrel/bin
54   cat << \EOF_KCACHEGRIND > $RPM_INSTALL_PREFIX/%pkgrel/bin/kcachegrind
55   #!/bin/sh
56 < echo "WARNING: KCachegrind is only available for %{machine_os}"
56 > echo "WARNING: KCachegrind is only available for SLC4"
57   EOF_KCACHEGRIND
58   chmod 755 $RPM_INSTALL_PREFIX/%pkgrel/bin/kcachegrind
59   %endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines