Fix Python 2 sub-package
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
2f398702da
commit
ad1b224f1e
|
@ -3,7 +3,7 @@
|
|||
|
||||
Name: zookeeper
|
||||
Version: 3.4.9
|
||||
Release: 11.0.riscv64%{?dist}
|
||||
Release: 11.1.riscv64%{?dist}
|
||||
Summary: A high-performance coordination service for distributed applications
|
||||
License: ASL 2.0 and BSD
|
||||
URL: https://zookeeper.apache.org/
|
||||
|
@ -122,7 +122,7 @@ Provides: zkpython%{?_isa} = %{version}-%{release}
|
|||
Requires: python2
|
||||
|
||||
%description -n python2-%{name}
|
||||
The python-%{name} package contains Python bindings for %{name}.
|
||||
The python2-%{name} package contains Python 2 bindings for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
@ -217,9 +217,9 @@ mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|||
cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name}/
|
||||
|
||||
pushd src/contrib/zkpython
|
||||
%{__python} src/python/setup.py build --build-base=$PWD/build \
|
||||
%{__python2} src/python/setup.py build --build-base=$PWD/build \
|
||||
install --root=%{buildroot} ;\
|
||||
chmod 0755 %{buildroot}%{python_sitearch}/zookeeper.so
|
||||
chmod 0755 %{buildroot}%{python2_sitearch}/zookeeper.so
|
||||
popd
|
||||
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
|
@ -301,11 +301,14 @@ getent passwd zookeeper >/dev/null || \
|
|||
%doc LICENSE.txt NOTICE.txt
|
||||
|
||||
%files -n python2-%{name}
|
||||
%{python2_sitearch}/ZooKeeper-?.?-py%{python_version}.egg-info
|
||||
%{python2_sitearch}/ZooKeeper-?.?-py%{python2_version}.egg-info
|
||||
%{python2_sitearch}/zookeeper.so
|
||||
%doc LICENSE.txt NOTICE.txt src/contrib/zkpython/README
|
||||
|
||||
%changelog
|
||||
* Mon Sep 17 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 3.4.9-11.1.riscv64
|
||||
- Fix Python 2 packages
|
||||
|
||||
* Mon Sep 17 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 3.4.9-11.0.riscv64
|
||||
- Fix compilation error
|
||||
|
||||
|
|
Loading…
Reference in New Issue