2011-02-02 02:08:03 +01:00
|
|
|
#
|
|
|
|
# spec file for package libftdi1
|
|
|
|
#
|
2014-10-01 16:01:22 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-02-02 02:08:03 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libftdi1
|
2014-10-01 16:01:22 +02:00
|
|
|
Version: 1.0
|
2013-01-03 01:13:10 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to program and control the FTDI USB controller
|
2012-05-03 20:59:17 +02:00
|
|
|
License: LGPL-2.1+ and GPL-2.0-with-classpath-exception
|
2011-02-02 02:08:03 +01:00
|
|
|
Group: Hardware/Other
|
|
|
|
Url: http://www.intra2net.com/en/developer/libftdi
|
2014-10-01 16:01:22 +02:00
|
|
|
Source: http://www.intra2net.com/en/developer/libftdi/download/libftdi1-%{version}.tar.bz2
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake >= 2.8
|
2013-01-03 01:13:10 +01:00
|
|
|
BuildRequires: doxygen
|
2014-10-01 16:01:22 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libusb-1_0-devel
|
2013-01-03 01:13:10 +01:00
|
|
|
BuildRequires: pkgconfig
|
2011-02-02 02:08:03 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%package -n libftdi1-devel
|
2011-02-02 02:08:03 +01:00
|
|
|
Summary: Header files and static libraries for libftdi
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-01-03 01:13:10 +01:00
|
|
|
Requires: libftdi1 = %{version}
|
2014-10-01 16:01:22 +02:00
|
|
|
Requires: libusb-1_0-devel
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2013-01-03 01:13:10 +01:00
|
|
|
%description
|
|
|
|
Library to program and control the FTDI USB controller.
|
2010-12-21 17:30:29 +01:00
|
|
|
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
|
|
|
|
|
|
|
%description -n libftdi1-devel
|
|
|
|
Header files and static libraries for libftdi.
|
|
|
|
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
|
|
|
|
|
|
|
%prep
|
2014-10-01 16:01:22 +02:00
|
|
|
%setup -q
|
|
|
|
mkdir build
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%build
|
2014-10-01 16:01:22 +02:00
|
|
|
cd build
|
|
|
|
%ifarch ia64
|
|
|
|
CMFLAGS="-DLIB_SUFFIX=/"
|
|
|
|
%else
|
|
|
|
CMFLAGS=""
|
|
|
|
%endif
|
|
|
|
|
|
|
|
CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" \
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" $CMFLAGS ../
|
2013-01-03 01:13:10 +01:00
|
|
|
make %{?_smp_mflags}
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%install
|
2014-10-01 16:01:22 +02:00
|
|
|
cd build
|
2013-01-03 01:13:10 +01:00
|
|
|
%make_install
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man3
|
2014-10-01 16:01:22 +02:00
|
|
|
cp -p doc/man/man3/[^_]*.3 %{buildroot}%{_mandir}/man3
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2013-01-03 01:13:10 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2013-01-03 01:13:10 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-01-03 01:13:10 +01:00
|
|
|
%doc AUTHORS COPYING* LICENSE README
|
2011-01-21 23:36:03 +01:00
|
|
|
%{_libdir}/libftdi*.so.*
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%files -n libftdi1-devel
|
|
|
|
%defattr(-,root,root)
|
2014-10-01 16:01:22 +02:00
|
|
|
%{_bindir}/libftdi*-config
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/libftdi*.so
|
2011-01-21 23:36:03 +01:00
|
|
|
%{_libdir}/libftdi*.*a
|
2010-12-21 17:30:29 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2014-10-01 16:01:22 +02:00
|
|
|
%{_libdir}/cmake/%{name}
|
2013-01-03 01:13:10 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
2011-02-02 02:08:03 +01:00
|
|
|
%changelog
|