commit 217bb5158c1c95a74e827bde4d3929f8106961df Author: Jan Rękorajski <bagg...@pld-linux.org> Date: Sat Dec 28 17:30:14 2024 +0100
= up to 2.13.6 python-pybind11.spec => python3-pybind11.spec | 79 +++------------------------ 1 file changed, 7 insertions(+), 72 deletions(-) --- diff --git a/python-pybind11.spec b/python3-pybind11.spec similarity index 52% rename from python-pybind11.spec rename to python3-pybind11.spec index afe4be1..f48c3f5 100644 --- a/python-pybind11.spec +++ b/python3-pybind11.spec @@ -1,35 +1,24 @@ -# -# Conditional build: -%bcond_without python2 # CPython 2.x module -%bcond_without python3 # CPython 3.x module - %define module pybind11 %define egg_name pybind11 %define pypi_name pybind11 Summary: Seamless operability between C++11 and Python Summary(pl.UTF-8): Gładka współpraca między C++11 a Pythonem -Name: python-%{pypi_name} +Name: python3-%{pypi_name} # keep 2.9.x here for python2 support -Version: 2.9.2 +Version: 2.13.6 Release: 1 License: BSD Group: Libraries/Python #Source0Download: https://pypi.org/simple/pybind11/ Source0: https://github.com/pybind/pybind11/archive/v%{version}/%{pypi_name}-%{version}.tar.gz -# Source0-md5: 06e4b6c2d0a5d6c6025941203cfcd4b6 +# Source0-md5: a04dead9c83edae6d84e2e343da7feeb URL: https://pypi.org/project/pybind11/ -BuildRequires: rpm-pythonprov -BuildRequires: rpmbuild(macros) >= 1.714 -%if %{with python2} -BuildRequires: python-modules >= 1:2.7 -BuildRequires: python-setuptools -%endif -%if %{with python3} BuildRequires: python3-modules >= 1:3.2 BuildRequires: python3-setuptools -%endif +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 Requires: libstdc++-devel >= 6:4.7 -Requires: python-devel >= 1:2.7 +Requires: python3-devel >= 1:2.7 Conflicts: eigen3 < 3.2.7 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -51,89 +40,35 @@ zminimalizować kod wiążący w tradycyjnych modułach rozszerzeń poprzez wnioskowanie informacji o typach przy użyciu introspekcji w trakcie kompilacji. -%package -n python3-%{pypi_name} -Summary: Seamless operability between C++11 and Python -Summary(pl.UTF-8): Gładka współpraca między C++11 a Pythonem -Group: Libraries/Python -Requires: libstdc++-devel >= 6:4.7 -Requires: python3-devel >= 1:3.2 -Conflicts: eigen3 < 3.2.7 - -%description -n python3-%{pypi_name} -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. Its goals and syntax are similar to the excellent -Boost.Python library by David Abrahams: to minimize boilerplate code -in traditional extension modules by inferring type information using -compile-time introspection. - -%description -n python3-%{pypi_name} -l pl.UTF-8 -pybind11 to lekka, składająca się z samych nagłówków biblioteka -udostępniająca typy C++ w Pythonie i na odwrót, służąca głównie do -tworzenia wiązań Pythona do istniejącego kodu w C++. Cele i składnia -są podobne do biblioteki Boost.Python autorstwa Davida Abrahamsa - aby -zminimalizować kod wiążący w tradycyjnych modułach rozszerzeń poprzez -wnioskowanie informacji o typach przy użyciu introspekcji w trakcie -kompilacji. - %prep %setup -q -n %{pypi_name}-%{version} %build pys="" -%if %{with python2} -pys="$pys python2" -%endif -%if %{with python3} pys="$pys python3" -%endif for py in $pys; do mkdir $py %cmake -B $py -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXECUTABLE=%{_bindir}/$py -DPYBIND11_INSTALL=TRUE -DUSE_PYTHON_INCLUDE_DIR=FALSE -DPYBIND11_TEST=OFF %{__make} -C $py done -%if %{with python2} -%py_build -%endif - -%if %{with python3} %py3_build -%endif %install rm -rf $RPM_BUILD_ROOT -%if %{with python2} -%{__make} install -C python2 DESTDIR=$RPM_BUILD_ROOT -%py_install - -%py_postclean -%endif - -%if %{with python3} %{__make} install -C python3 DESTDIR=$RPM_BUILD_ROOT %py3_install -%endif %clean rm -rf $RPM_BUILD_ROOT -%if %{with python2} %files %defattr(644,root,root,755) %doc LICENSE README.rst -%{py_sitescriptdir}/%{module} -%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info -%endif - -%if %{with python3} -%files -n python3-%{pypi_name} -%defattr(644,root,root,755) -%doc LICENSE README.rst %attr(755,root,root) %{_bindir}/pybind11-config %{py3_sitescriptdir}/%{module} %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info %{_includedir}/%{module} %{_datadir}/cmake/pybind11 -%endif +%{_npkgconfigdir}/pybind11.pc ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/python3-pybind11.git/commitdiff/217bb5158c1c95a74e827bde4d3929f8106961df _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit