1 |
< |
### RPM external elfutils 0.128-wt1 |
1 |
> |
### RPM external elfutils 0.128-CMS3 |
2 |
|
#TODO: put everything in rpm.spec??? |
3 |
|
Source: ftp://sources.redhat.com/pub/systemtap/%{n}/%{n}-%{realversion}.tar.gz |
4 |
– |
|
4 |
|
%prep |
5 |
|
%setup -n %n-%realversion |
6 |
+ |
perl -p -i -e "s/-Wextra//g;s/-Werror//" `find . -name \*.in` |
7 |
|
%build |
8 |
+ |
%if "%(echo %cmsos | sed -e 's/osx.*/osx/')" != "osx" |
9 |
|
./configure --prefix=%i |
10 |
+ |
cd libelf |
11 |
|
make %makeprocesses |
12 |
+ |
%endif |
13 |
|
%install |
14 |
+ |
%if "%(echo %cmsos | sed -e 's/osx.*/osx/')" != "osx" |
15 |
+ |
cd libelf |
16 |
|
make install |
17 |
|
rm -rf %i/bin |
18 |
+ |
%endif |