[packages/cassandra-bin] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 19:24:04 CET 2015
commit 271a98d015bc701bb316e482e85b6c839848a71c
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 19:20:07 2015 +0100
automatic change: use py_build/py_install macros
cassandra-bin.spec | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/cassandra-bin.spec b/cassandra-bin.spec
index a2ef90a..7606862 100644
--- a/cassandra-bin.spec
+++ b/cassandra-bin.spec
@@ -54,7 +54,7 @@ oparty na ColumnFamily, bogatszy niż typowe systemy klucza i wartości.
%build
# current version of cqlsh supports only python 2.
cd pylib
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
cd ..
%install
@@ -77,11 +77,7 @@ cp -p conf/{*.properties,cassandra-env.sh,cassandra.yaml,README.txt} $RPM_BUILD_
cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{shname}.conf
cd pylib
-%{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
cd ..
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cassandra-bin.git/commitdiff/271a98d015bc701bb316e482e85b6c839848a71c
More information about the pld-cvs-commit
mailing list