Skip to content

Commit

Permalink
Binder update (#298)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrii Verbytskyi <[email protected]>
  • Loading branch information
andriish and Andrii Verbytskyi authored Feb 12, 2024
1 parent 471ec5b commit 7149e68
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 2 deletions.
3 changes: 2 additions & 1 deletion alllocal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export PATH=$PATH:$(pwd)

#set -x
declare -a BUILDLIST=(
openloops:2.1.3
binder:1.4.1
#openloops:2.1.3
#COCOA:0.1.1
#HEPrpms:2023.12.30
#whizard:3.1.4
Expand Down
83 changes: 83 additions & 0 deletions binder/1.4.1/binder.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
Name: binder
Version: 1.4.1
Release: 1%{?dist}
Summary: A tool for automatic generation of Python bindings to C++ code
License: MIT License
URL: https://github.com/RosettaCommons/binder
#Source0: https://github.com/RosettaCommons/binder/archive/v{version}.tar.gz
Source0: https://github.com/RosettaCommons/binder/archive/2d4b1aa19ca3b32b4b459e7a99048ae96712618b.zip

BuildRequires: clang clang-devel llvm-devel
%if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} >= 9
BuildRequires: clang-libs
Requires: clang-libs
BuildRequires: pybind11-devel
Requires: pybind11-devel
%endif

%if 0%{?suse_version}
BuildRequires: libclang-cpp17
Requires: libclang-cpp17
BuildRequires: python-pybind11-common-devel
Requires: python-pybind11-common-devel
%endif
BuildRequires: python3 python3-devel
BuildRequires: gcc-c++ unzip
BuildRequires: cmake >= 3.4.3
%description
Binder is a tool for automatic generation of Python bindings for C++11
projects using Pybind11 and Clang LibTooling libraries. That is, Binder,
takes a C++ project and compiles it into objects and functions that
are all usable within Python. Binder is different from prior tools in
that it handles special features new in C++11.

%prep
%setup -q -n binder-2d4b1aa19ca3b32b4b459e7a99048ae96712618b

%build
%if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0}
%if %{?fedora}%{!?fedora:0} > 36 || %{?rhel}%{!?rhel:0} == 8
%if %{?fedora}%{!?fedora:0} > 37
sed -i 's/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g' CMakeLists.txt
%endif
%cmake -DBINDER_ENABLE_TEST=OFF
%else
%cmake . -DBINDER_ENABLE_TEST=OFF
%endif
%cmake_build
%endif

%if 0%{?suse_version}
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBINDER_ENABLE_TEST=OFF
make
%endif

%install
%if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0}
%cmake_install
%endif
%if 0%{?suse_version}
%make_install
%endif



%files
%{_bindir}/*

%changelog
* Thu Dec 21 2023 Andrii Verbytskyi <[email protected]>
+ 1.4.0
* Fri Mar 10 2023 Andrii Verbytskyi
- Try to build on epel
* Wed Jan 19 2022 Andrii Verbytskyi
+ Patch for more includes
* Tue Dec 7 2021 Andrii Verbytskyi
+ Version bump
* Fri Apr 9 2021 Andrii Verbytskyi
+ Added debug and cleaned up. CentOS8+
* Thu Nov 5 2020 Andrii Verbytskyi <[email protected]> - 1.1.0-1
- Update to 1.1.0
* Fri Jan 3 2020 A V <[email protected]> - 0.9.9-3
- Init

3 changes: 2 additions & 1 deletion md5sums.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,5 @@ cd50e0abe8424ae2a0e8042fee604b27 iminuit/2.23.0/rpmbuild/SOURCES/d0b406db5e678a
861c3b73582fe7d411b7c4f000715188 hevea/2.36/rpmbuild/SOURCES/v2.36.tar.gz
de9d74c29d794a4dcd528e6cec3e2895 Professor/2.4.2/rpmbuild/SOURCES/professor-professor-2.4.2.tar.gz
007c6c360291b292923f8181a9dbe645 MG5_aMC/3.5.3/rpmbuild/SOURCES/MG5_aMC_v3.5.3.tar.gz
0b26b5c610aa66c07d526ac51c986b86 openloops/2.1.3/rpmbuild/SOURCES/OpenLoops-OpenLoops-2.1.3.tar.gz
0b26b5c610aa66c07d526ac51c986b86 openloops/2.1.3/rpmbuild/SOURCES/OpenLoops-OpenLoops-2.1.3.tar.gz
3f0c46b36d5e1b2f3f2a4072d8d5e5fb binder/1.4.1/rpmbuild/SOURCES/2d4b1aa19ca3b32b4b459e7a99048ae96712618b.zip

0 comments on commit 7149e68

Please sign in to comment.