Sisyphus repositório
Última atualização: 28 maio 2020 | SRPMs: 17560 | Visitas: 18625921
en ru br
ALT Linux repositórios
S:2.5.0-alt1

Group :: Desenvolvimento/Outros
RPM: pybind11

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

#based on fedora spec
Name: pybind11
Version: 2.4.3
Release: alt1

Summary: Seamless operability between C++11 and Python
License: BSD-style
Group: Development/Other
Url: https://github.com/pybind/pybind11

Source0: %name-%version.tar

Patch1: alt-e2k-workaround-for-missing-copy-elision.patch

BuildRequires(pre): rpm-build-python3
# Automatically added by buildreq on Thu May 10 2018
BuildRequires: boost-devel-headers
BuildRequires: catch-devel
BuildRequires: ccmake
BuildRequires: eigen3
BuildRequires: gcc-c++
BuildRequires: python-module-scipy
BuildRequires: python3-dev
BuildRequires: python3-module-pytest
BuildRequires: python3-module-setuptools
BuildRequires: python-module-setuptools

# These are only needed for the checks

BuildRequires: python-module-pytest
BuildRequires: python-module-numpy
BuildRequires: python-module-numpy-testing
BuildRequires: python3-module-numpy
BuildRequires: python3-module-numpy-testing
BuildRequires: python3-module-scipy
BuildRequires: eigen3-devel
BuildRequires: ctest

%package devel
Summary: %summary
Group: Development/Other
# For dir ownership
Requires: cmake

%package -n python3-module-%name
Summary: %summary
Group: Development/Python3
Requires: %name-devel = %EVR

%define base_description \
pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code. Tutorial and reference documentation is provided at http://pybind11.readthedocs.org/en/master

%description
%base_description

%description devel
%base_description

This package contains the development headers for pybind11.

%description -n python3-module-%name
%base_description

This package contains the Python 3 files.

%prep
%setup

%ifarch %e2k
%patch1 -p1
%endif

%build
mkdir -p python3
pushd python3
%cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%_bindir/python3 ../..
%cmake_build
popd

%python3_build_debug

%install
%makeinstall_std -C python3/BUILD
# Force install to arch-ful directories instead.
PYBIND11_USE_CMAKE=true %python3_install "--install-purelib" "%python3_sitelibdir"

rm -rf %buildroot%_includedir/python*

%check
%ifarch %e2k
export SKIP_E2K=1
%endif
make -C python3/BUILD/tests check -j$NPROCS

%files devel
%doc README.md CONTRIBUTING.md LICENSE ISSUE_TEMPLATE.md docs/*
%_includedir/%name
%_datadir/cmake/%name

%files -n python3-module-%name
%python3_sitelibdir/%name
%python3_sitelibdir/%name-%version-*.egg-info

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009