1 |
< |
### RPM external meschach 1.2 |
1 |
> |
### RPM external meschach 1.2.pCMS1-CMS19 |
2 |
|
Source: http://www.math.uiowa.edu/~dstewart/meschach/mesch12b.tar.gz |
3 |
+ |
Patch: meschach-1.2-slc4 |
4 |
+ |
Patch1: meschach-1.2b-fPIC |
5 |
|
|
6 |
|
%prep |
7 |
|
%setup -c -n meschach-1.2 -a 0 |
8 |
+ |
%patch -p0 |
9 |
+ |
%patch1 -p0 |
10 |
+ |
|
11 |
|
%build |
12 |
+ |
# Just fix this by hand for MacOSX (the configure probably needs to be updated) |
13 |
+ |
%ifos darwin |
14 |
+ |
perl -p -i -e "s|define HAVE_MALLOC_H 1|undef MALLOCDECL|g" machine.h |
15 |
+ |
%endif |
16 |
|
make |
17 |
|
%install |
18 |
|
mkdir -p %i/include |
19 |
|
mkdir -p %i/lib |
20 |
|
cp *.h %i/include |
21 |
|
cp meschach.a %i/lib/libmeschach.a |
22 |
+ |
# SCRAM ToolBox toolfile |
23 |
+ |
mkdir -p %i/etc/scram.d |
24 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
25 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
26 |
+ |
<Tool name=Meschach version=%v> |
27 |
+ |
<info url=http://www.meschach.com></info> |
28 |
+ |
<lib name=meschach> |
29 |
+ |
<Client> |
30 |
+ |
<Environment name=MESCHACH_BASE default="%i"></Environment> |
31 |
+ |
<Environment name=LIBDIR default="$MESCHACH_BASE/lib"></Environment> |
32 |
+ |
<Environment name=INCLUDE default="$MESCHACH_BASE/include"></Environment> |
33 |
+ |
</Client> |
34 |
+ |
</Tool> |
35 |
+ |
EOF_TOOLFILE |
36 |
+ |
|
37 |
+ |
%post |
38 |
+ |
%{relocateConfig}etc/scram.d/%n |
39 |
|
|