1 |
|
### RPM external elfutils 0.128-CMS3 |
2 |
– |
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) true ;; Darwin:* ) false ;; * ) false ;; esac |
2 |
|
#TODO: put everything in rpm.spec??? |
3 |
|
Source: ftp://sources.redhat.com/pub/systemtap/%{n}/%{n}-%{realversion}.tar.gz |
4 |
|
%prep |
5 |
|
%setup -n %n-%realversion |
6 |
|
%build |
7 |
+ |
%if "%(echo %cmsos | sed -e 's/osx.*/osx/')" != "osx" |
8 |
|
./configure --prefix=%i |
9 |
|
cd libelf |
10 |
|
make %makeprocesses |
11 |
+ |
%endif |
12 |
|
%install |
13 |
+ |
%if "%(echo %cmsos | sed -e 's/osx.*/osx/')" != "osx" |
14 |
|
cd libelf |
15 |
|
make install |
16 |
|
rm -rf %i/bin |
17 |
+ |
%endif |