14
0
Tomáš Chvátal
2019-10-08 10:40:06 +00:00
committed by Git OBS Bridge
parent 3565b58fb0
commit 578bd89fd2
2 changed files with 9 additions and 9 deletions

View File

@@ -22,8 +22,7 @@ Version: 2.4.2
Release: 0
Summary: Module for operability between C++11 and Python
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/pybind/pybind11
URL: https://github.com/pybind/pybind11
Source: https://github.com/pybind/pybind11/archive/v%{version}.tar.gz#/pybind11-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
@@ -33,7 +32,6 @@ BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
@@ -44,23 +42,20 @@ by inferring type information using compile-time introspection.
%package -n %{name}-devel
Summary: Development files for pybind11
Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: python-devel
Provides: %{python_module %{name}-devel}
%description -n %{name}-devel
This package contains files for developing applications using pybind11.
%prep
%setup -q -n pybind11-%{version}
# calling cmake to install header to right location and
# generate cmake include files
echo "python_files devel = %{python_files devel}"
%build
%python_build
# calling cmake to install header to right location and
# generate cmake include files
%cmake
%cmake_build