6 |
|
Name: %{name} |
7 |
|
Version: %{version} |
8 |
|
Release: %{release} |
9 |
< |
Copyright: GPL |
9 |
> |
License: GPL |
10 |
|
Group: Utilities/File |
11 |
< |
Source: %{name}-%{version}.tar.gz |
11 |
> |
Source0: %{name}-%{version}.tar.gz |
12 |
|
URL: http://cxmon.cebix.net/ |
13 |
< |
BuildRoot: %{_tmppath}/%{name}-root |
13 |
> |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
14 |
|
Prefix: %{_prefix} |
15 |
|
|
16 |
|
%description |
25 |
|
%setup -q |
26 |
|
|
27 |
|
%build |
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 |
32 |
< |
NCPU=1 |
33 |
< |
fi |
34 |
< |
else |
35 |
< |
NCPU=1 |
36 |
< |
fi |
37 |
< |
PARL=$[ $NCPU + 1 ] |
38 |
< |
make -j $PARL |
28 |
> |
%configure |
29 |
> |
make |
30 |
|
|
31 |
|
%install |
32 |
|
rm -rf ${RPM_BUILD_ROOT} |
33 |
< |
make DESTDIR=${RPM_BUILD_ROOT} install-strip |
33 |
> |
%makeinstall |
34 |
|
|
35 |
|
%clean |
36 |
|
rm -rf ${RPM_BUILD_ROOT} |