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