|
|
@ -47,10 +47,12 @@ Python bindings for %{name}
|
|
|
|
rm -r src/uthash.h
|
|
|
|
rm -r src/uthash.h
|
|
|
|
# Set the install prefix to /usr
|
|
|
|
# Set the install prefix to /usr
|
|
|
|
sed -i "s|prefix=/usr/local|prefix=/usr|" config.mk
|
|
|
|
sed -i "s|prefix=/usr/local|prefix=/usr|" config.mk
|
|
|
|
|
|
|
|
# Don't strip binaries on install: rpmbuild will take care of it
|
|
|
|
|
|
|
|
sed -i "s|(INSTALL) -s|(INSTALL)|g" lib/Makefile src/Makefile client/Makefile
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export LDFLAGS="%{__global_ldflags} -Wl,--as-needed"
|
|
|
|
export LDFLAGS="%{optflags} %{__global_ldflags} -Wl,--as-needed"
|
|
|
|
make all %{?_smp_mflags}
|
|
|
|
make all %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
pushd lib/python
|
|
|
|
pushd lib/python
|
|
|
|