From 4a20ad8469f6a90ed9e4dc7a881707562220aeab Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:18:23 +0100 Subject: [PATCH] rename ftdi-utils to ftdi1-utils [release 1.1-3mamba;Wed Feb 12 2014] --- README.md | 2 + libftdi1.spec | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 libftdi1.spec diff --git a/README.md b/README.md index 65cf327..2eb833d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libftdi1 +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. + diff --git a/libftdi1.spec b/libftdi1.spec new file mode 100644 index 0000000..345c8e3 --- /dev/null +++ b/libftdi1.spec @@ -0,0 +1,109 @@ +Name: libftdi1 +Version: 1.1 +Release: 3mamba +Summary: A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R +Group: System/Libraries +Vendor: openmamba +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 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libconfuse-devel +BuildRequires: libgcc +BuildRequires: libpython-devel +BuildRequires: libpython3-devel +BuildRequires: libstdc++6-devel +BuildRequires: libusbx-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +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. + +This package contains static libraries and header files need for development. + +%package -n ftdi1-utils +Summary: Utilities based on %{name} +Group: System/Tools +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. + +%prep +%setup -q -n libftdi1-%{version} + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/libftdi1.so.* +%{_libdir}/libftdipp1.so.* +%{python_sitearch}/_ftdi1.so +%{python_sitearch}/ftdi1.py +%doc AUTHORS COPYING.LIB + +%files devel +%defattr(-,root,root) +%{_bindir}/libftdi1-config +%{_libdir}/libftdi1.a +#%{_libdir}/libftdi1.la +%{_libdir}/libftdi1.so +%{_libdir}/libftdipp1.a +#%{_libdir}/libftdipp1.la +%{_libdir}/libftdipp1.so +%dir %{_includedir}/libftdi1 +%{_includedir}/libftdi1/ftdi.h +%{_includedir}/libftdi1/ftdi.hpp +%{_libdir}/pkgconfig/*.pc +%dir %{_libdir}/cmake/libftdi1 +%{_libdir}/cmake/libftdi1/LibFTDI1Config.cmake +%{_libdir}/cmake/libftdi1/UseLibFTDI1.cmake +%{_datadir}/libftdi/examples/complete.py +%{_datadir}/libftdi/examples/simple.py + +%doc ChangeLog README README.mingw + +%files -n ftdi1-utils +%defattr(-,root,root) +%{_bindir}/ftdi_eeprom + +%changelog +* Wed Feb 12 2014 Silvan Calarco 1.1-3mamba +- rename ftdi-utils to ftdi1-utils + +* Sun Feb 09 2014 Silvan Calarco 1.1-2mamba +- renamed to libftdi1 + +* Sat Feb 08 2014 Automatic Build System 1.1-1mamba +- automatic version update by autodist + +* Sun Dec 08 2013 Silvan Calarco 1.0-1mamba +- update to 1.0 + +* Sat Jul 21 2012 Automatic Build System 0.20-1mamba +- automatic version update by autodist + +* Sun Aug 09 2009 Silvan Calarco 0.16-1mamba +- package created by autospec