!5 Update package
From: @liqiuyu123 Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
b298564863
Binary file not shown.
BIN
posix_ipc-1.0.5.tar.gz
Normal file
BIN
posix_ipc-1.0.5.tar.gz
Normal file
Binary file not shown.
@ -1,8 +1,6 @@
|
|||||||
%global with_python3 1
|
|
||||||
%global with_python2 0
|
|
||||||
Name: python-posix_ipc
|
Name: python-posix_ipc
|
||||||
Version: 0.9.8
|
Version: 1.0.5
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: POSIX IPC primitives (semaphores and shared memory) for Python
|
Summary: POSIX IPC primitives (semaphores and shared memory) for Python
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: http://semanchuk.com/philip/posix_ipc/
|
URL: http://semanchuk.com/philip/posix_ipc/
|
||||||
@ -14,61 +12,32 @@ manipulation of POSIX inter-process semaphores, shared memory and message\
|
|||||||
queues on platforms supporting POSIX Realtime Extensions, POSIX 1003.1b-1993.
|
queues on platforms supporting POSIX Realtime Extensions, POSIX 1003.1b-1993.
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
%if 0%{?with_python2}
|
|
||||||
%package -n python2-posix_ipc
|
|
||||||
Summary: %summary
|
|
||||||
BuildRequires: python2-devel python2-setuptools
|
|
||||||
%{?python_provide:%python_provide python2-posix_ipc}
|
|
||||||
%description -n python2-posix_ipc %_description
|
|
||||||
%endif # with_python2
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-posix_ipc
|
%package -n python3-posix_ipc
|
||||||
Summary: POSIX IPC primitives (semaphores and shared memory) for Python
|
Summary: POSIX IPC primitives (semaphores and shared memory) for Python
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
%description -n python3-posix_ipc %_description
|
%description -n python3-posix_ipc %_description
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n posix_ipc-%{version}
|
%setup -q -n posix_ipc-%{version}
|
||||||
chmod 644 demo/make_all.sh
|
chmod 644 demo/make_all.sh
|
||||||
chmod 644 demo2/cleanup.py
|
chmod 644 demo2/cleanup.py
|
||||||
chmod 644 demo/cleanup.py
|
chmod 644 demo/cleanup.py
|
||||||
%if 0%{?with_python3}
|
|
||||||
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?with_python2}
|
|
||||||
%py2_build
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?with_python2}
|
|
||||||
%py2_install
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?with_python2}
|
|
||||||
%files -n python2-posix_ipc
|
|
||||||
%doc README LICENSE demo demo2
|
|
||||||
%{python2_sitearch}/*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python3-posix_ipc
|
%files -n python3-posix_ipc
|
||||||
%doc README LICENSE demo demo2
|
%doc README LICENSE demo demo2
|
||||||
%{python3_sitearch}/*
|
%{python3_sitearch}/*
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 01 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.0.5-1
|
||||||
|
- update to 1.0.5
|
||||||
|
|
||||||
* Tue May 10 2022 yangping <yangping69@h-partners> - 0.9.8-2
|
* Tue May 10 2022 yangping <yangping69@h-partners> - 0.9.8-2
|
||||||
- License compliance rectification
|
- License compliance rectification
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user