diff --git a/libftdi1-1.4-cmake_swig.patch b/libftdi1-1.4-cmake_swig.patch new file mode 100644 index 0000000..bbbdd46 --- /dev/null +++ b/libftdi1-1.4-cmake_swig.patch @@ -0,0 +1,21 @@ +--- a/python/CMakeLists.txt ++++ b/python/CMakeLists.txt +@@ -1,3 +1,7 @@ ++# swig_add_module is deprecated and SWIG_MODULE__REAL_NAME is no ++# longer set by default so set policy to the old behavior. ++cmake_policy(SET CMP0078 OLD) ++ + option ( PYTHON_BINDINGS "Build python bindings via swig" ON ) + option ( LINK_PYTHON_LIBRARY "Link against python libraries" ON ) + +@@ -24,8 +28,9 @@ if ( SWIG_FOUND AND PYTHONLIBS_FOUND AND + + if ( DOCUMENTATION AND DOXYGEN_FOUND ) + set(CMAKE_SWIG_FLAGS -DDOXYGEN=${DOXYGEN_FOUND}) ++ set_property(SOURCE ftdi1.i PROPERTY DEPENDS ftdi1_doc.i) + endif() +- swig_add_module ( ftdi1 python ftdi1.i ) ++ swig_add_library ( ftdi1 LANGUAGE python SOURCES ftdi1.i ) + swig_link_libraries ( ftdi1 ftdi1 ) + + if ( LINK_PYTHON_LIBRARY ) diff --git a/libftdi1.spec b/libftdi1.spec index 618624e..56c361e 100644 --- a/libftdi1.spec +++ b/libftdi1.spec @@ -1,6 +1,6 @@ Name: libftdi1 Version: 1.4 -Release: 1mamba +Release: 2mamba Summary: A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R Group: System/Libraries Vendor: openmamba @@ -8,15 +8,17 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.intra2net.com/en/developer/libftdi/index.php Source: http://www.intra2net.com/en/developer/libftdi/download/libftdi1-%{version}.tar.bz2 +Patch0: libftdi1-1.4-cmake_swig.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ldconfig BuildRequires: libconfuse-devel BuildRequires: libgcc -BuildRequires: libpython-devel BuildRequires: libpython3-devel BuildRequires: libstdc++6-devel -BuildRequires: libusbx-devel +BuildRequires: libusb-devel +BuildRequires: python3 ## AUTOBUILDREQ-END BuildRequires: cmake BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -42,11 +44,17 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n ftdi1-utils Utilities to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using libusb, including the popular bitbang mode. +%debug_package + %prep %setup -q -n libftdi1-%{version} +%patch0 -p1 %build -%cmake -d build +%cmake -d build \ + -DEXAMPLES=OFF \ + -DFTDI_EEPROM=ON + %make -j1 %install @@ -93,6 +101,9 @@ Utilities to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using l %{_bindir}/ftdi_eeprom %changelog +* Wed Dec 09 2020 Silvan Calarco 1.4-2mamba +- rebuilt with debug package and cmake swig build patch + * Sun Oct 13 2019 Automatic Build System 1.4-1mamba - automatic version update by autodist