From 7687b12510e48f107de6ca5eabb1895667b39bef Mon Sep 17 00:00:00 2001 From: Lucian Langa Date: Jan 04 2010 08:21:09 +0000 Subject: - add bindings typo patch - drop multilib patch - new upstream release --- diff --git a/.cvsignore b/.cvsignore index e7a2966..53134d2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -libftdi-0.16.tar.gz +libftdi-0.17.tar.gz diff --git a/libftdi-0.16-multilib.patch b/libftdi-0.16-multilib.patch deleted file mode 100644 index de0f468..0000000 --- a/libftdi-0.16-multilib.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- libftdi-0.16/libftdi-config.in 2009-02-06 17:40:10.000000000 +0200 -+++ libftdi-0.16-mod/libftdi-config.in 2009-07-31 13:08:08.000000000 +0300 -@@ -1,7 +1,7 @@ - #!/bin/sh - --prefix=@prefix@ --exec_prefix=@exec_prefix@ -+prefix=`pkg-config --variable prefix libftdi` -+exec_prefix=`pkg-config --variable exec_prefix libftdi` - exec_prefix_set=no - - usage() -@@ -46,17 +46,14 @@ - echo_exec_prefix=yes - ;; - --version) -- echo @VERSION@ -+ pkg-config --modversion libftdi - exit 0 - ;; - --cflags) -- if test "@includedir@" != /usr/include ; then -- includes="-I@includedir@" -- fi -- echo_cflags=yes -+ pkg-config --cflags libftdi - ;; - --libs) -- echo_libs=yes -+ pkg-config --libs libftdi - ;; - *) - usage 1 1>&2 -@@ -71,9 +68,3 @@ - if test "$echo_exec_prefix" = "yes"; then - echo $exec_prefix - fi --if test "$echo_cflags" = "yes"; then -- echo $includes --fi --if test "$echo_libs" = "yes"; then -- echo -L@libdir@ -lftdi @LIBS@ --fi diff --git a/libftdi-0.17-bind-typo.patch b/libftdi-0.17-bind-typo.patch new file mode 100644 index 0000000..4f94409 --- /dev/null +++ b/libftdi-0.17-bind-typo.patch @@ -0,0 +1,11 @@ +diff -Naur libftdi-0.17/bindings/python/setup.py.in libftdi-0.17-mod/bindings/python/setup.py.in +--- libftdi-0.17/bindings/python/setup.py.in 2009-05-29 22:54:41.000000000 +0300 ++++ libftdi-0.17-mod/bindings/python/setup.py.in 2010-01-04 09:48:58.000000000 +0200 +@@ -12,6 +12,6 @@ + py_modules=['ftdi'], + ext_modules=[Extension('_ftdi', ['ftdi_wrap.c'], + include_dirs=['@top_srcdir@/src'], +- library_dirs=['@top_buildir@/src/.libs','lib','/usr/lib'], ++ library_dirs=['@top_builddir@/src/.libs','lib','/usr/lib'], + libraries=['ftdi'])], + ) diff --git a/libftdi.spec b/libftdi.spec index 88f5589..753ccaf 100644 --- a/libftdi.spec +++ b/libftdi.spec @@ -1,7 +1,7 @@ %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: libftdi -Version: 0.16 -Release: 7%{?dist} +Version: 0.17 +Release: 1%{?dist} Summary: Library to program and control the FTDI USB controller Group: System Environment/Libraries @@ -9,7 +9,7 @@ License: LGPLv2 URL: http://www.intra2net.com/de/produkte/opensource/ftdi/ Source0: http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/%{name}-%{version}.tar.gz Source1: no_date_footer.html -Patch0: libftdi-0.16-multilib.patch +Patch0: libftdi-0.17-bind-typo.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libusb-devel, doxygen, boost-devel, python-devel, swig @@ -60,7 +60,7 @@ for building C++ applications with libftdi. %prep %setup -q sed -i -e 's/HTML_FOOTER =/HTML_FOOTER = no_date_footer.html/g' doc/Doxyfile.in -%patch0 -p1 -b .multilib +%patch0 -p1 -b .bindings-typo %build @@ -88,6 +88,8 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_ft2232 rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_cbus rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all_pp +rm -f $RPM_BUILD_ROOT/%{_bindir}/baud_test +rm -f $RPM_BUILD_ROOT/%{_bindir}/serial_read %clean rm -rf $RPM_BUILD_ROOT @@ -110,6 +112,7 @@ rm -rf $RPM_BUILD_ROOT %files python %defattr(-, root, root, -) +%doc AUTHORS ChangeLog COPYING.LIB README %{python_sitearch}/* %files c++ @@ -136,6 +139,11 @@ exit 0 %postun c++ -p /sbin/ldconfig %changelog +* Mon Jan 04 2010 Lucian Langa - 0.17-1 +- add bindings typo patch +- drop multilib patch +- new upstream release + * Sat Aug 22 2009 Lucian Langa - 0.16-7 - add group for udev rule (#517773) diff --git a/sources b/sources index d369206..1757dde 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -524af6f39aefa1a4e8fac12c6be0ed06 libftdi-0.16.tar.gz +810c69cfaa078b49795c224ef9b6b851 libftdi-0.17.tar.gz