2009-07-01 09:03:17 +00:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2008-09-29 04:25:05 +00:00
|
|
|
Name: libftdi
|
2014-03-24 15:19:11 +00:00
|
|
|
Version: 1.1
|
|
|
|
Release: 1%{?dist}
|
2008-09-29 04:25:05 +00:00
|
|
|
Summary: Library to program and control the FTDI USB controller
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPLv2
|
|
|
|
URL: http://www.intra2net.com/de/produkte/opensource/ftdi/
|
2014-03-24 15:19:11 +00:00
|
|
|
Source0: http://www.intra2net.com/en/developer/%{name}/download/%{name}1-%{version}.tar.bz2
|
2008-09-29 04:25:05 +00:00
|
|
|
|
2014-03-24 15:19:11 +00:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libconfuse-devel
|
|
|
|
BuildRequires: libusbx-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: swig
|
|
|
|
Requires: systemd
|
2009-08-22 12:37:53 +00:00
|
|
|
|
2008-09-29 04:25:05 +00:00
|
|
|
|
2014-03-24 15:19:11 +00:00
|
|
|
%description
|
|
|
|
A library (using libusb) to talk to FTDI's FT2232C,
|
|
|
|
FT232BM and FT245BM type chips including the popular bitbang mode.
|
|
|
|
|
2008-09-29 04:25:05 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Header files and static libraries for libftdi
|
|
|
|
Group: Development/Libraries
|
2014-03-24 15:19:11 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Header files and static libraries for libftdi
|
2008-09-29 04:25:05 +00:00
|
|
|
|
2009-07-01 09:03:17 +00:00
|
|
|
%package python
|
|
|
|
Summary: Libftdi library Python binding
|
|
|
|
Group: Development/Libraries
|
2014-03-24 15:19:11 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description python
|
|
|
|
Libftdi Python Language bindings.
|
2009-07-01 09:03:17 +00:00
|
|
|
|
|
|
|
%package c++
|
|
|
|
Summary: Libftdi library C++ binding
|
|
|
|
Group: Development/Libraries
|
2014-03-24 15:19:11 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description c++
|
|
|
|
Libftdi library C++ language binding.
|
2009-07-01 09:03:17 +00:00
|
|
|
|
|
|
|
%package c++-devel
|
|
|
|
Summary: Libftdi library C++ binding development headers and libraries
|
|
|
|
Group: Development/Libraries
|
2014-03-24 15:19:11 +00:00
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
Requires: %{name}-c++ = %{version}-%{release}
|
2009-07-01 09:03:17 +00:00
|
|
|
|
|
|
|
%description c++-devel
|
|
|
|
Libftdi library C++ binding development headers and libraries
|
|
|
|
for building C++ applications with libftdi.
|
|
|
|
|
2008-09-29 04:25:05 +00:00
|
|
|
|
|
|
|
%prep
|
2014-03-24 15:19:11 +00:00
|
|
|
%setup -q -n %{name}1-%{version}
|
|
|
|
|
2010-03-11 19:44:53 +00:00
|
|
|
#kernel does not provide usb_device anymore
|
|
|
|
sed -i -e 's/usb_device/usb/g' packages/99-libftdi.rules
|
2014-03-24 15:19:11 +00:00
|
|
|
sed -i -e 's/GROUP="plugdev"/TAG+="uaccess"/g' packages/99-libftdi.rules
|
2008-09-29 04:25:05 +00:00
|
|
|
|
|
|
|
%build
|
2014-03-24 15:19:11 +00:00
|
|
|
export CMAKE_PREFIX_PATH=/usr
|
|
|
|
%{cmake} .
|
|
|
|
|
2008-09-29 04:25:05 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
2014-03-24 15:19:11 +00:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
|
|
|
|
install -p -m 644 packages/99-libftdi.rules $RPM_BUILD_ROOT/lib/udev/rules.d/69-libftdi.rules
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.a" -delete
|
|
|
|
|
2008-09-29 04:25:05 +00:00
|
|
|
#no man install
|
2014-03-24 15:19:11 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
|
2008-09-29 04:25:05 +00:00
|
|
|
install -p -m 644 doc/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
|
|
|
|
|
|
|
|
# Cleanup examples
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/simple
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang2
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_ft2232
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_cbus
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all
|
2009-02-15 09:46:52 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all_pp
|
2009-12-20 18:07:52 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/baud_test
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/serial_read
|
2012-05-04 20:33:17 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/serial_test
|
2014-03-24 15:19:11 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/cmake*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
2008-09-29 04:25:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS ChangeLog COPYING.LIB README
|
2014-03-24 15:19:11 +00:00
|
|
|
%{_libdir}/libftdi1.so.2*
|
|
|
|
/lib/udev/rules.d/69-libftdi.rules
|
2008-09-29 04:25:05 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc doc/html
|
2014-03-24 15:19:11 +00:00
|
|
|
%doc %{_datadir}/libftdi/examples
|
|
|
|
%{_bindir}/ftdi_eeprom
|
|
|
|
%{_bindir}/libftdi1-config
|
|
|
|
%{_libdir}/libftdi1.so
|
|
|
|
%{_includedir}/libftdi1
|
|
|
|
%{_libdir}/pkgconfig/libftdi1.pc
|
2008-09-29 04:25:05 +00:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
2009-07-01 09:03:17 +00:00
|
|
|
%files python
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%files c++
|
2014-03-24 15:19:11 +00:00
|
|
|
%{_libdir}/libftdipp1.so.2*
|
2009-07-01 09:03:17 +00:00
|
|
|
|
|
|
|
%files c++-devel
|
2014-03-24 15:19:11 +00:00
|
|
|
%{_libdir}/libftdipp1.so
|
|
|
|
%{_includedir}/libftdi1/*hpp
|
|
|
|
%{_libdir}/pkgconfig/libftdipp1.pc
|
2008-09-29 04:25:05 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2009-07-01 09:03:17 +00:00
|
|
|
%post c++ -p /sbin/ldconfig
|
|
|
|
%postun c++ -p /sbin/ldconfig
|
|
|
|
|
2008-09-29 04:25:05 +00:00
|
|
|
%changelog
|
2014-03-24 15:19:11 +00:00
|
|
|
* Mon Mar 24 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-1
|
|
|
|
- Update to 1.1
|
|
|
|
- Build against libusb1
|
|
|
|
- Package cleanup
|
|
|
|
- Run make check
|
|
|
|
|
2013-08-03 05:28:17 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-30 12:17:37 +00:00
|
|
|
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 0.20-4
|
|
|
|
- Rebuild for boost 1.54.0
|
|
|
|
|
2013-02-14 04:21:23 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 19:47:23 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-04 20:33:17 +00:00
|
|
|
* Fri May 04 2012 Lucian Langa <cooly@gnome.eu.org> - 0.20-1
|
|
|
|
- new upstream release
|
|
|
|
|
2012-01-13 07:41:19 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-25 07:56:06 +00:00
|
|
|
* Fri Nov 25 2011 Lucian Langa <cooly@gnome.eu.org> - 0.19-2
|
|
|
|
- fix bug #678781 - too generic name in man file
|
|
|
|
|
2011-06-18 05:49:23 +00:00
|
|
|
* Sat Jun 18 2011 Lucian Langa <cooly@gnome.eu.org> - 0.19-1
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
* Tue May 24 2011 Lucian Langa <cooly@gnome.eu.org> - 0.19-1
|
|
|
|
- new upstream release
|
|
|
|
|
2011-02-08 05:49:15 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-06 10:39:50 +00:00
|
|
|
* Mon Dec 06 2010 Dan Horák <dan[at]danny.cz> - 0.18-4
|
|
|
|
- fix build with libusb >= 1:0.1.3 (wrapper around libusb1)
|
|
|
|
|
2010-08-01 14:35:02 +00:00
|
|
|
* Sun Aug 1 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.18-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-07-22 02:11:39 +00:00
|
|
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.18-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-07-01 17:44:34 +00:00
|
|
|
* Thu Jul 01 2010 Lucian Langa <cooly@gnome.eu.org> - 0.18-1
|
|
|
|
- drop patch0 - fixed upstream
|
|
|
|
- new upstream release
|
|
|
|
|
2010-06-09 05:44:10 +00:00
|
|
|
* Wed Jun 09 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-5
|
|
|
|
- readd mistakenly dropped parch (fixes multilib issues)
|
|
|
|
|
2010-05-05 05:26:44 +00:00
|
|
|
* Wed May 05 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-4
|
|
|
|
- fix typo in group handling (#581151)
|
|
|
|
|
2010-03-11 19:44:53 +00:00
|
|
|
* Thu Mar 11 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-3
|
|
|
|
- fix incorrect UDEV rule (#563566)
|
|
|
|
|
2010-01-16 15:07:22 +00:00
|
|
|
* Sat Jan 16 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-2
|
|
|
|
- do not package static libfiles (#556068)
|
|
|
|
|
2014-03-24 15:19:11 +00:00
|
|
|
* Sun Jan 3 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-1
|
2010-01-04 07:59:08 +00:00
|
|
|
- add patch to fix typo in python bindings
|
|
|
|
- drop multilib patch0 fixed upstream
|
2009-12-20 18:07:52 +00:00
|
|
|
- new upstream release
|
|
|
|
|
2009-08-22 12:37:53 +00:00
|
|
|
* Sat Aug 22 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-7
|
|
|
|
- add group for udev rule (#517773)
|
|
|
|
|
2009-07-31 11:07:54 +00:00
|
|
|
* Fri Jul 31 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-6
|
|
|
|
- rebuilt with modified patch
|
|
|
|
|
2009-07-31 07:58:46 +00:00
|
|
|
* Fri Jul 31 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-5
|
|
|
|
- fix multilib conflict in libftdi-config (#508498)
|
|
|
|
|
2009-07-25 05:38:41 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-01 09:03:17 +00:00
|
|
|
* Wed Jul 01 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-3
|
|
|
|
- added udev rules
|
|
|
|
- addedd c++, python bindings
|
|
|
|
|
|
|
|
* Tue Jun 30 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-2
|
|
|
|
- fix doxygen conflict (#508498)
|
|
|
|
|
2009-05-09 09:44:30 +00:00
|
|
|
* Fri May 08 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-1
|
|
|
|
- new upstream release
|
|
|
|
|
2009-02-25 14:52:58 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-16 13:09:32 +00:00
|
|
|
* Mon Feb 16 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-3
|
|
|
|
- fix tag
|
|
|
|
|
2009-02-15 10:01:57 +00:00
|
|
|
* Sun Feb 15 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-2
|
|
|
|
- add new BR boost-devel
|
|
|
|
|
2009-02-15 09:46:52 +00:00
|
|
|
* Sun Feb 15 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-1
|
|
|
|
- fix for bug #485600: pick libusb-devel for -devel subpackage
|
|
|
|
- new upstream release
|
|
|
|
|
2008-09-29 04:25:05 +00:00
|
|
|
* Fri Sep 26 2008 Lucian Langa <cooly@gnome.eu.org> - 0.14-2
|
|
|
|
- require pkgconfig for devel
|
|
|
|
|
|
|
|
* Tue Sep 23 2008 Lucian Langa <cooly@gnome.eu.org> - 0.14-1
|
|
|
|
- new upstream
|
|
|
|
|
|
|
|
* Wed Sep 03 2008 Lucian Langa <cooly@gnome.eu.org> - 0.13-1
|
|
|
|
- initial specfile
|