14
0

Accepting request 774056 from home:StefanBruens:branches:science

- Fix mixup of expanded/unexpaned python versions in devel package,
  the devel package always required python(2)-devel and
  python2-pybind. Move the data to a -common-devel subpackage,
  pulled in by versioned python{2,3}-pybind-devel packages.

OBS-URL: https://build.opensuse.org/request/show/774056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=13
This commit is contained in:
2020-02-13 14:54:10 +00:00
committed by Git OBS Bridge
parent 811f9f0801
commit 7f916e5284
2 changed files with 25 additions and 8 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Feb 13 05:32:14 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Fix mixup of expanded/unexpaned python versions in devel package,
the devel package always required python(2)-devel and
python2-pybind. Move the data to a -common-devel subpackage,
pulled in by versioned python{2,3}-pybind-devel packages.
-------------------------------------------------------------------
Tue Jan 14 10:19:23 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pybind11
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -40,13 +40,19 @@ and vice versa, mainly to create Python bindings of existing C++
code. It can reduce boilerplate code in traditional extension modules
by inferring type information using compile-time introspection.
%package -n %{name}-devel
%package -n %{name}-common-devel
Summary: Development files for pybind11
Requires: %{name} = %{version}
Requires: python-devel
Provides: %{python_module pybind11-devel = %{version}}
Provides: %{python_module pybind11-common-devel = %{version}}
%description -n %{name}-devel
%description -n %{name}-common-devel
This package contains files for developing applications using pybind11.
%package devel
Summary: Development files for pybind11
Requires: %{name}-common-devel = %{version}
Requires: python-devel
%description devel
This package contains files for developing applications using pybind11.
%prep
@@ -63,7 +69,7 @@ This package contains files for developing applications using pybind11.
%python_install
%cmake_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# removing duplciated header files
# removing duplicated header files
rm -rv %{buildroot}%{_includedir}/python2.*/pybind11/
rm -rv %{buildroot}%{_includedir}/python3.*/pybind11
@@ -72,9 +78,12 @@ rm -rv %{buildroot}%{_includedir}/python3.*/pybind11
%license LICENSE
%{python_sitelib}/*
%files -n %{name}-devel
%files -n %{name}-common-devel
%{_includedir}/pybind11
%license LICENSE
%{_datadir}/cmake/pybind11
%files %{python_files devel}
%license LICENSE
%changelog