25 |
|
%setup -q |
26 |
|
|
27 |
|
%build |
28 |
< |
./configure --prefix=%{_prefix} --mandir=%{_mandir} |
28 |
> |
CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} |
29 |
|
if [ -x /usr/bin/getconf ] ; then |
30 |
|
NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN) |
31 |
|
if [ $NCPU -eq 0 ] ; then |
39 |
|
|
40 |
|
%install |
41 |
|
rm -rf ${RPM_BUILD_ROOT} |
42 |
< |
make prefix=%{_prefix} mandir=%{_mandir} DESTDIR=${RPM_BUILD_ROOT} install |
42 |
> |
make DESTDIR=${RPM_BUILD_ROOT} install-strip |
43 |
|
|
44 |
|
%clean |
45 |
|
rm -rf ${RPM_BUILD_ROOT} |
48 |
|
%defattr(-,root,root) |
49 |
|
%doc COPYING README |
50 |
|
%{_bindir}/* |
51 |
– |
|
52 |
– |
%changelog |