libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v0.17-354-g024705c

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 27 Dec 2012 17:30:10 +0100 (CET)
The branch, master has been updated
       via  024705ce0043ee897d3b4871f310d9c82e47ccb0 (commit)
      from  7c21beca63e7d4b07d7ebff25428ca4cfdbc8ec5 (commit)


- Log -----------------------------------------------------------------
commit 024705ce0043ee897d3b4871f310d9c82e47ccb0
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Thu Dec 27 17:30:01 2012 +0100

    First shot at fixing the .spec file

-----------------------------------------------------------------------

Summary of changes:
 libftdi1.spec.in |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/libftdi1.spec.in b/libftdi1.spec.in
index 8c06b09..e5ca1b6 100644
--- a/libftdi1.spec.in
+++ b/libftdi1.spec.in
@@ -5,7 +5,7 @@ Release:   1
 License:   LGPL for libftdi and GPLv2+linking exception for the C++ wrapper
 Group:     System Environment/Libraries
 Vendor:    Intra2net AG
-Source:    
http://www.intra2net.com/en/developer/libftdi/download/%{name}-%{version}.tar.gz
+Source:    
http://www.intra2net.com/en/developer/libftdi/download/%{name}-%{version}.tar.bz2
 Buildroot: /tmp/%{name}-%{version}-root
 Requires:  libusb1
 BuildRequires: libusb1, libusb1-devel, pkgconfig, doxygen
@@ -28,14 +28,17 @@ Header files and static libraries for libftdi1
 
 %build
 
-PARAMS=""
-./configure --prefix=%{prefix} \
-    --libdir=%{_libdir}
-%endif
+mkdir build
+cd build
 
-make
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS"
+cmake -DCMAKE_INSTALL_PREFIX="%{prefix}" ../
+
+make %{?_smp_mflags}
 
 %install
+cd build
 make DESTDIR=$RPM_BUILD_ROOT install
 
 # Remove example programs
@@ -56,6 +59,7 @@ rm -fr $RPM_BUILD_ROOT
 %defattr(-,root,root)
 %doc COPYING.LIB COPYING.GPL LICENSE
 %{_libdir}/libftdi1*.so*
+%{_libdir}/libftdipp1*.so*
 
 %files devel
 %defattr(-,root,root)
@@ -64,4 +68,5 @@ rm -fr $RPM_BUILD_ROOT
 %{prefix}/include/libftdi1/*.h
 %{prefix}/include/libftdi1/*.hpp
 %{_libdir}/libftdi1*.*a
+%{_libdir}/libftdipp1*.*a
 %{_libdir}/pkgconfig/*.pc


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v0.17-354-g024705c, libftdi-git <=