|
|
|
@ -1,25 +1,23 @@
|
|
|
|
|
Name: libftdi
|
|
|
|
|
Version: 1.4
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Version: 1.5
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Library to program and control the FTDI USB controller
|
|
|
|
|
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
URL: http://www.intra2net.com/de/produkte/opensource/ftdi/
|
|
|
|
|
Source0: http://www.intra2net.com/en/developer/%{name}/download/%{name}1-%{version}.tar.bz2
|
|
|
|
|
URL: https://www.intra2net.com/en/developer/libftdi/
|
|
|
|
|
Source0: https://www.intra2net.com/en/developer/%{name}/download/%{name}1-%{version}.tar.bz2
|
|
|
|
|
|
|
|
|
|
# Swig requirements have changed in newer versions of CMake.
|
|
|
|
|
# This has been reported to the mailing list
|
|
|
|
|
Patch0: libftdi-cmake_swig.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake3 gcc-c++
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: libconfuse-devel
|
|
|
|
|
BuildRequires: libusbx-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
Requires: systemd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -31,6 +29,7 @@ FT232BM and FT245BM type chips including the popular bitbang mode.
|
|
|
|
|
Summary: Header files and static libraries for libftdi
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: python3-%{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: cmake-filesystem
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Header files and static libraries for libftdi
|
|
|
|
@ -71,32 +70,17 @@ sed -i -e 's/GROUP="plugdev"/TAG+="uaccess"/g' packages/99-libftdi.rules
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CMAKE_PREFIX_PATH=%{_prefix}
|
|
|
|
|
|
|
|
|
|
mkdir build-py3 && pushd build-py3
|
|
|
|
|
%{cmake3} -DPython_ADDITIONAL_VERSIONS=%{python3_version} .. -B .
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# Fix python sheband lines
|
|
|
|
|
find python/examples -type f -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} +
|
|
|
|
|
|
|
|
|
|
%cmake -DSTATICLIBS=off -DFTDIPP=on -DPYTHON_BINDINGS=on -DDOCUMENTATION=on .
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
pushd build-py3
|
|
|
|
|
%make_install
|
|
|
|
|
popd
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
install -D -pm 0644 packages/99-libftdi.rules %{buildroot}%{_udevrulesdir}/69-libftdi.rules
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/usr/lib/udev/rules.d/
|
|
|
|
|
install -pm 0644 packages/99-libftdi.rules %{buildroot}/usr/lib/udev/rules.d/69-libftdi.rules
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
|
find %{buildroot} -type f -name "*.a" -delete
|
|
|
|
|
|
|
|
|
|
#no man install
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man3
|
|
|
|
|
install -pm 0644 build-py3/doc/man/man3/*.3 %{buildroot}%{_mandir}/man3
|
|
|
|
|
|
|
|
|
|
# Cleanup examples
|
|
|
|
|
rm -f %{buildroot}%{_bindir}/simple
|
|
|
|
|
rm -f %{buildroot}%{_bindir}/bitbang
|
|
|
|
@ -108,9 +92,9 @@ rm -f %{buildroot}%{_bindir}/find_all_pp
|
|
|
|
|
rm -f %{buildroot}%{_bindir}/baud_test
|
|
|
|
|
rm -f %{buildroot}%{_bindir}/serial_read
|
|
|
|
|
rm -f %{buildroot}%{_bindir}/serial_test
|
|
|
|
|
rm -rf %{buildroot}%{_libdir}/cmake*
|
|
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/libftdi1/example.conf
|
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/libftdi1/example.conf
|
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/libftdipp1/example.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -119,19 +103,18 @@ rm -rf %{buildroot}%{_datadir}/doc/libftdi1/example.conf
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING.LIB
|
|
|
|
|
%doc AUTHORS ChangeLog README
|
|
|
|
|
%{_libdir}/libftdi1.so.2*
|
|
|
|
|
/usr/lib/udev/rules.d/69-libftdi.rules
|
|
|
|
|
%{_udevrulesdir}/69-libftdi.rules
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc build-py3/doc/html
|
|
|
|
|
%doc AUTHORS ChangeLog
|
|
|
|
|
%doc %{_datadir}/libftdi/examples
|
|
|
|
|
%{_bindir}/ftdi_eeprom
|
|
|
|
|
%{_bindir}/libftdi1-config
|
|
|
|
|
%{_libdir}/libftdi1.so
|
|
|
|
|
%{_includedir}/libftdi1
|
|
|
|
|
%{_libdir}/libftdi1.so
|
|
|
|
|
%{_libdir}/pkgconfig/libftdi1.pc
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%{_libdir}/cmake/libftdi1/
|
|
|
|
|
|
|
|
|
|
%files -n python3-libftdi
|
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
@ -142,15 +125,17 @@ rm -rf %{buildroot}%{_datadir}/doc/libftdi1/example.conf
|
|
|
|
|
|
|
|
|
|
%files c++-devel
|
|
|
|
|
%{_libdir}/libftdipp1.so
|
|
|
|
|
%{_includedir}/libftdi1/*hpp
|
|
|
|
|
%{_includedir}/libftdipp1/*hpp
|
|
|
|
|
%{_libdir}/pkgconfig/libftdipp1.pc
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets c++
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Aug 15 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.5-1
|
|
|
|
|
- Update to 1.5
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|