diff --git a/python-pybind11.changes b/python-pybind11.changes index 2d10f81..ddaef1e 100644 --- a/python-pybind11.changes +++ b/python-pybind11.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Feb 13 05:32:14 UTC 2020 - Stefan BrĂ¼ns + +- 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 diff --git a/python-pybind11.spec b/python-pybind11.spec index 5517666..81c12aa 100644 --- a/python-pybind11.spec +++ b/python-pybind11.spec @@ -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