14
0

Accepting request 774186 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/774186
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=6
This commit is contained in:
2020-02-19 11:39:36 +00:00
committed by Git OBS Bridge
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 code. It can reduce boilerplate code in traditional extension modules
by inferring type information using compile-time introspection. by inferring type information using compile-time introspection.
%package -n %{name}-devel %package -n %{name}-common-devel
Summary: Development files for pybind11 Summary: Development files for pybind11
Requires: %{name} = %{version} Provides: %{python_module pybind11-common-devel = %{version}}
Requires: python-devel
Provides: %{python_module pybind11-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. This package contains files for developing applications using pybind11.
%prep %prep
@@ -63,7 +69,7 @@ This package contains files for developing applications using pybind11.
%python_install %python_install
%cmake_install %cmake_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
# removing duplciated header files # removing duplicated header files
rm -rv %{buildroot}%{_includedir}/python2.*/pybind11/ rm -rv %{buildroot}%{_includedir}/python2.*/pybind11/
rm -rv %{buildroot}%{_includedir}/python3.*/pybind11 rm -rv %{buildroot}%{_includedir}/python3.*/pybind11
@@ -72,9 +78,12 @@ rm -rv %{buildroot}%{_includedir}/python3.*/pybind11
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/*
%files -n %{name}-devel %files -n %{name}-common-devel
%{_includedir}/pybind11 %{_includedir}/pybind11
%license LICENSE %license LICENSE
%{_datadir}/cmake/pybind11 %{_datadir}/cmake/pybind11
%files %{python_files devel}
%license LICENSE
%changelog %changelog