update to 1.0.5

This commit is contained in:
liqiuyu123 2022-08-01 15:09:56 +08:00
parent 997e874e6b
commit ce55d98fec
3 changed files with 5 additions and 36 deletions

Binary file not shown.

BIN
posix_ipc-1.0.5.tar.gz Normal file

Binary file not shown.

View File

@ -1,8 +1,6 @@
%global with_python3 1
%global with_python2 0
Name: python-posix_ipc
Version: 0.9.8
Release: 2
Version: 1.0.5
Release: 1
Summary: POSIX IPC primitives (semaphores and shared memory) for Python
License: BSD-3-Clause
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.
%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
Summary: POSIX IPC primitives (semaphores and shared memory) for Python
BuildRequires: python3-devel python3-setuptools
%description -n python3-posix_ipc %_description
%endif # with_python3
%prep
%setup -q -n posix_ipc-%{version}
chmod 644 demo/make_all.sh
chmod 644 demo2/cleanup.py
chmod 644 demo/cleanup.py
%if 0%{?with_python3}
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%endif # with_python3
%build
%if 0%{?with_python2}
%py2_build
%endif
%if 0%{?with_python3}
%py3_build
%endif
%install
%if 0%{?with_python2}
%py2_install
%endif
%if 0%{?with_python3}
%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
%doc README LICENSE demo demo2
%{python3_sitearch}/*
%endif
%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
- License compliance rectification