libftdi: (tomj) ability to set RS232 break type
[libftdi] / libftdi.spec.in
1 %define    enable_async_mode @ENABLE_ASYNC_MODE@
2 Summary:   Library to program and control the FTDI USB controller
3 Name:      libftdi
4 Version:   @VERSION@
5 Release:   1
6 License:   LGPL
7 Group:     System Environment/Libraries
8 Vendor:    Intra2net AG
9 Source:    %{name}-%{version}.tar.gz
10 Buildroot: /tmp/%{name}-%{version}-root
11 Requires:  libusb
12 BuildRequires: libusb, libusb-devel, pkgconfig, doxygen
13 Prefix:    /usr
14
15 %package   devel
16 Summary:   Header files and static libraries for libftdi
17 Group:     Development/Libraries
18 Requires:  libftdi = %{version}, libusb-devel
19
20 %description 
21 Library to program and control the FTDI USB controller
22
23 %description devel
24 Header files and static libraries for libftdi
25
26 %prep
27 %setup -q
28
29 %build
30
31 PARAMS=""
32 ./configure --prefix=%{prefix} \
33     --libdir=%{_libdir} \
34 %if %{enable_async_mode}
35     --with-async-mode \
36 %endif
37
38 make
39
40 %install
41 make DESTDIR=$RPM_BUILD_ROOT install
42
43 # Cleanup
44 rm -f $RPM_BUILD_ROOT/usr/bin/simple
45 rm -f $RPM_BUILD_ROOT/usr/bin/bitbang
46 rm -f $RPM_BUILD_ROOT/usr/bin/bitbang2
47 rm -f $RPM_BUILD_ROOT/usr/bin/bitbang_ft2232
48 rm -f $RPM_BUILD_ROOT/usr/bin/bitbang_cbus
49 rm -f $RPM_BUILD_ROOT/usr/bin/find_all
50
51 %clean
52 rm -fr $RPM_BUILD_ROOT
53
54 %files
55 %defattr(-,root,root)
56 %doc COPYING.LIB
57 %{_libdir}/libftdi.so*
58
59 %files devel
60 %defattr(-,root,root)
61 %doc doc/html doc/man
62 %{_bindir}/libftdi-config
63 %{prefix}/include/*.h
64 %{_libdir}/libftdi.*a
65 %{_libdir}/pkgconfig/*.pc