Accepting request 1236039 from devel:libraries:c_c++
- Modernize building of the Python subpackage, don't generate *.egg. OBS-URL: https://build.opensuse.org/request/show/1236039 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tbb?expand=0&rev=38
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
mtime: 1735658003
|
||||
commit: dd92ead7d38465b8bea5729deb5703487a5f76c245556da77a3677aaa02afaf9
|
||||
mtime: 1736358097
|
||||
commit: f7a57bc661f3aff47dfa1fc55642925d5639a4e30086a4543ac94237c479195a
|
||||
url: https://src.opensuse.org/clibs/tbb
|
||||
revision: master
|
||||
|
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1f13fdd36d76365b4b9ef06019ce4b9dfd742a873482cac856c452bc56e59744
|
||||
oid sha256:dccc6ecb695c71f7d6ed66008501d49a3ff852bb1f3ebea5b6aec276361225bc
|
||||
size 256
|
||||
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 8 17:41:12 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Modernize building of the Python subpackage, don't generate *.egg.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 31 13:57:21 UTC 2024 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||
|
||||
|
12
tbb.spec
12
tbb.spec
@@ -34,7 +34,6 @@
|
||||
%bcond_with test
|
||||
|
||||
%if 0%{suse_version} >= 1500
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%bcond_without python3
|
||||
%define skip_python2 1
|
||||
%else
|
||||
@@ -59,6 +58,8 @@ BuildRequires: hwloc-devel
|
||||
%if %{with python3}
|
||||
BuildRequires: %{python_module devel >= 3.5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: swig >= 3.0.6
|
||||
%endif
|
||||
@@ -225,7 +226,7 @@ cd ..
|
||||
# rebuild for every python flavor
|
||||
%if %{with python3}
|
||||
pushd python
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
popd
|
||||
%endif
|
||||
|
||||
@@ -238,8 +239,10 @@ source build/*/vars.sh
|
||||
|
||||
%if %{with python3}
|
||||
pushd python
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%pyproject_install
|
||||
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
rm -rfv %{buildroot}%{$python_sitearch}/TBB-%{version}*.egg
|
||||
}
|
||||
popd
|
||||
%endif
|
||||
|
||||
@@ -305,7 +308,6 @@ popd
|
||||
%files %{python_files %{name}}
|
||||
%{python_sitearch}/tbb
|
||||
%{python_sitearch}/TBB.py
|
||||
%{python_sitearch}/TBB-*py3*
|
||||
%{python_sitearch}/TBB-%{version}*-info
|
||||
%pycache_only %{python_sitearch}/__pycache__/TBB*
|
||||
%endif
|
||||
|
Reference in New Issue
Block a user