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

Comparing COMP/CMSDIST/bz2lib.spec (file contents):
Revision 1.5 by eulisse, Thu Jul 6 13:08:38 2006 UTC vs.
Revision 1.13 by elmer, Fri Nov 2 17:00:57 2007 UTC

# Line 1 | Line 1
1 < ### RPM external bz2lib 1.0.2
1 > ### RPM external bz2lib 1.0.2-CMS18
2   # Build system patches by Lassi A. Tuura <lat@iki.fi>
3 < Source: ftp://sources.redhat.com/pub/bzip2/v%(echo %v | tr -d .)/bzip2-%v.tar.gz
3 > Source: ftp://sources.redhat.com/pub/bzip2/v%(echo %realversion | tr -d .)/bzip2-%realversion.tar.gz
4 > %define cpu %(echo %cmsplatf | cut -f2 -d_)
5   Provides: libbz2.so.1
6 + %if "%cpu" == "amd64"
7 + Provides: libbz2.so.1()(64bit)
8 + %endif
9  
10   %prep
11 < %setup -n bzip2-%v
11 > %setup -n bzip2-%realversion
12   sed -e 's/ -shared/ -dynamiclib/' \
13      -e 's/ -Wl,-soname -Wl,[^ ]*//' \
14      -e 's/libbz2\.so/libbz2.dylib/g' \
# Line 17 | Line 21 | make %makeprocesses -f Makefile-libbz2_$
21   %install
22   case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
23   make install PREFIX=%i
24 < cp libbz2.$so.%v %i/lib
25 < ln -s libbz2.$so.%v %i/lib/libbz2.$so
26 < ln -s libbz2.$so.%v %i/lib/libbz2.$so.`echo %v | cut -d. -f 1,2`
27 < ln -s libbz2.$so.%v %i/lib/libbz2.$so.`echo %v | cut -d. -f 1`
28 < # mimetic.spec
29 < #
24 > cp libbz2.$so.%realversion %i/lib
25 > ln -s libbz2.$so.%realversion %i/lib/libbz2.$so
26 > ln -s libbz2.$so.%realversion %i/lib/libbz2.$so.`echo %realversion | cut -d. -f 1,2`
27 > ln -s libbz2.$so.%realversion %i/lib/libbz2.$so.`echo %realversion | cut -d. -f 1`
28 >
29 > # SCRAM ToolBox toolfile
30 > mkdir -p %i/etc/scram.d
31 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
32 > <doc type=BuildSystem::ToolDoc version=1.0>
33 > <Tool name=%n version=%v>
34 > <info url="http://sources.redhat.com/bzip2/"></info>
35 > <lib name=bz2>
36 > <Client>
37 > <Environment name=BZ2LIB_BASE default="%i"></Environment>
38 > <Environment name=LIBDIR default="$BZ2LIB_BASE/lib"></Environment>
39 > <Environment name=INCLUDE default="$BZ2LIB_BASE/include"></Environment>
40 > </Client>
41 > </Tool>
42 > EOF_TOOLFILE
43 >
44 > %post
45 > %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines