Compare commits
5 Commits
1.2-1mamba
...
main
Author | SHA1 | Date | |
---|---|---|---|
a0645d2521 | |||
b63a67e87b | |||
8050123e30 | |||
e30200cd19 | |||
edb44ac2b0 |
21
libftdi1-1.4-cmake_swig.patch
Normal file
21
libftdi1-1.4-cmake_swig.patch
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
--- a/python/CMakeLists.txt
|
||||||
|
+++ b/python/CMakeLists.txt
|
||||||
|
@@ -1,3 +1,7 @@
|
||||||
|
+# swig_add_module is deprecated and SWIG_MODULE_<target>_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 )
|
@@ -1,25 +1,25 @@
|
|||||||
Name: libftdi1
|
Name: libftdi1
|
||||||
Version: 1.2
|
Version: 1.5
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R
|
Summary: A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://www.intra2net.com/en/developer/libftdi/index.php
|
URL: https://www.intra2net.com/en/developer/libftdi/index.php
|
||||||
Source: http://www.intra2net.com/en/developer/libftdi/download/libftdi1-%{version}.tar.bz2
|
Source: http://www.intra2net.com/en/developer/libftdi/download/libftdi1-%{version}.tar.bz2
|
||||||
|
Patch0: libftdi1-1.4-cmake_swig.patch
|
||||||
License: LGPL
|
License: LGPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libconfuse-devel
|
BuildRequires: libconfuse-devel
|
||||||
BuildRequires: libgcc
|
BuildRequires: libgcc
|
||||||
BuildRequires: libpython-devel
|
BuildRequires: libpython311-devel
|
||||||
BuildRequires: libpython3-devel
|
|
||||||
BuildRequires: libstdc++6-devel
|
BuildRequires: libstdc++6-devel
|
||||||
BuildRequires: libusbx-devel
|
BuildRequires: libusb-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRequires: python3 >= 3.11
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using libusb, including the popular bitbang mode. This library is linked with your program in userspace, no kernel driver required.
|
A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using libusb, including the popular bitbang mode. This library is linked with your program in userspace, no kernel driver required.
|
||||||
@@ -42,12 +42,22 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
%description -n ftdi1-utils
|
%description -n ftdi1-utils
|
||||||
Utilities to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using libusb, including the popular bitbang mode.
|
Utilities to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using libusb, including the popular bitbang mode.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libftdi1-%{version}
|
%setup -q -n libftdi1-%{version}
|
||||||
|
#%patch 0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -d build
|
%cmake -d build \
|
||||||
%make
|
-DEXAMPLES=OFF \
|
||||||
|
-DFTDI_EEPROM=ON \
|
||||||
|
-DFTDIPP=ON \
|
||||||
|
-DPYTHON_BINDINGS=ON \
|
||||||
|
-DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}.so \
|
||||||
|
-DPYTHON_INCLUDE_DIR=%{python3_inc}
|
||||||
|
|
||||||
|
%make -j1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@@ -60,29 +70,31 @@ Utilities to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using l
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libftdi1.so.*
|
%{_libdir}/libftdi1.so.*
|
||||||
%{_libdir}/libftdipp1.so.*
|
%{_libdir}/libftdipp1.so.*
|
||||||
%{python_sitearch}/_ftdi1.so
|
%{python3_sitearch}/_ftdi1.so
|
||||||
%{python_sitearch}/ftdi1.py
|
%{python3_sitearch}/ftdi1.py
|
||||||
%doc AUTHORS COPYING.LIB
|
%doc AUTHORS COPYING.LIB
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/libftdi1-config
|
%{_bindir}/libftdi1-config
|
||||||
%{_libdir}/libftdi1.a
|
%{_libdir}/libftdi1.a
|
||||||
#%{_libdir}/libftdi1.la
|
|
||||||
%{_libdir}/libftdi1.so
|
%{_libdir}/libftdi1.so
|
||||||
%{_libdir}/libftdipp1.a
|
%{_libdir}/libftdipp1.a
|
||||||
#%{_libdir}/libftdipp1.la
|
|
||||||
%{_libdir}/libftdipp1.so
|
%{_libdir}/libftdipp1.so
|
||||||
%dir %{_includedir}/libftdi1
|
%dir %{_includedir}/libftdi1
|
||||||
%{_includedir}/libftdi1/ftdi.h
|
%{_includedir}/libftdi1/ftdi.h
|
||||||
%{_includedir}/libftdi1/ftdi.hpp
|
%dir %{_includedir}/libftdipp1
|
||||||
|
%{_includedir}/libftdipp1/ftdi.hpp
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%dir %{_libdir}/cmake/libftdi1
|
%dir %{_libdir}/cmake/libftdi1
|
||||||
%{_libdir}/cmake/libftdi1/LibFTDI1Config.cmake
|
%{_libdir}/cmake/libftdi1/LibFTDI1Config.cmake
|
||||||
%{_libdir}/cmake/libftdi1/LibFTDI1ConfigVersion.cmake
|
%{_libdir}/cmake/libftdi1/LibFTDI1ConfigVersion.cmake
|
||||||
%{_libdir}/cmake/libftdi1/UseLibFTDI1.cmake
|
%{_libdir}/cmake/libftdi1/UseLibFTDI1.cmake
|
||||||
%{_datadir}/libftdi/examples/complete.py
|
%dir %{_datadir}/libftdi
|
||||||
%{_datadir}/libftdi/examples/simple.py
|
%dir %{_datadir}/libftdi/examples
|
||||||
|
%{_datadir}/libftdi/examples/*.py
|
||||||
|
%dir %{_docdir}/libftdipp1
|
||||||
|
%{_docdir}/libftdipp1/example.conf
|
||||||
%doc ChangeLog README README.mingw
|
%doc ChangeLog README README.mingw
|
||||||
|
|
||||||
%files -n ftdi1-utils
|
%files -n ftdi1-utils
|
||||||
@@ -90,6 +102,21 @@ Utilities to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using l
|
|||||||
%{_bindir}/ftdi_eeprom
|
%{_bindir}/ftdi_eeprom
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 26 2023 Automatic Build System <autodist@mambasoft.it> 1.5-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
* Mon Oct 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4-3mamba
|
||||||
|
- rebuilt with python3 == 3.11
|
||||||
|
|
||||||
|
* Wed Dec 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4-2mamba
|
||||||
|
- rebuilt with debug package and cmake swig build patch
|
||||||
|
|
||||||
|
* Sun Oct 13 2019 Automatic Build System <autodist@mambasoft.it> 1.4-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
* Sat Jun 18 2016 Automatic Build System <autodist@mambasoft.it> 1.3-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Fri Nov 28 2014 Automatic Build System <autodist@mambasoft.it> 1.2-1mamba
|
* Fri Nov 28 2014 Automatic Build System <autodist@mambasoft.it> 1.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user