Use make macros
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
This commit is contained in:
parent
99b4002f05
commit
cc651b3503
4
gsm.spec
4
gsm.spec
@ -67,7 +67,7 @@ export LDFLAGS="%{?__global_ldflags}"
|
|||||||
export LDFLAGS="%{?__global_ldflags}"
|
export LDFLAGS="%{?__global_ldflags}"
|
||||||
mkdir -p %{buildroot}{%{_bindir},%{_includedir}/gsm,%{_libdir},%{_mandir}/{man1,man3}}
|
mkdir -p %{buildroot}{%{_bindir},%{_includedir}/gsm,%{_libdir},%{_mandir}/{man1,man3}}
|
||||||
|
|
||||||
make install \
|
%make_install \
|
||||||
INSTALL_ROOT=%{buildroot}%{_prefix} \
|
INSTALL_ROOT=%{buildroot}%{_prefix} \
|
||||||
GSM_INSTALL_INC=%{buildroot}%{_includedir}/gsm \
|
GSM_INSTALL_INC=%{buildroot}%{_includedir}/gsm \
|
||||||
GSM_INSTALL_LIB=%{buildroot}%{_libdir} \
|
GSM_INSTALL_LIB=%{buildroot}%{_libdir} \
|
||||||
@ -83,7 +83,7 @@ echo ".so toast.1" > %{buildroot}%{_mandir}/man1/untoast.1
|
|||||||
# This is to ensure that the patch creates the proper library version.
|
# This is to ensure that the patch creates the proper library version.
|
||||||
[ -f %{buildroot}%{_libdir}/libgsm.so.%{version} ]
|
[ -f %{buildroot}%{_libdir}/libgsm.so.%{version} ]
|
||||||
export LDFLAGS="%{?__global_ldflags}"
|
export LDFLAGS="%{?__global_ldflags}"
|
||||||
make addtst
|
%{__make} addtst
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user