Skip to content

Commit

Permalink
Binder 1.4.2 (#306)
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 May 28, 2024
1 parent 936314d commit 7ca9a27
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 1 deletion.
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=(
Herwig:7.3.0
binder:1.4.2
#Herwig:7.3.0
#Rivet:4.0.0
#binder:1.4.1
#rapgap:3.4.0
Expand Down
85 changes: 85 additions & 0 deletions binder/1.4.2/binder.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
Name: binder
Version: 1.4.2
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

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-%{version}
sed -i 's/1.4.1/1.4.2/g' CMakeLists.txt

%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
* Tue May 28 2024 Andrii Verbytskyi <[email protected]>
+ 1.4.2
* 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

1 change: 1 addition & 0 deletions md5sums.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,4 @@ de9d74c29d794a4dcd528e6cec3e2895 Professor/2.4.2/rpmbuild/SOURCES/professor-pro
204a28656cb7fccac1a4f000b4bf5036 highfive/2.3.1/rpmbuild/SOURCES/highfive-2.3.1.tar.gz
e0bdbe7739b5e92d5bba62a52ab60f43 binder/1.4.1/rpmbuild/SOURCES/v1.4.1.tar.gz
423bac94105e306be0612b6182a0d31f Rivet/4.0.0/rpmbuild/SOURCES/Rivet-4.0.0.tar.gz
57b91768402ba1df08c983eaafe71021 binder/1.4.2/rpmbuild/SOURCES/v1.4.2.tar.gz

0 comments on commit 7ca9a27

Please sign in to comment.