libftdi: (gerd) recreate in new kdevelop, pkgconfig, license fix
[libftdi] / libftdi.spec
1 Summary:   Library to program and control the FTDI USB controller
2 Name:      libftdi
3 Version:   0.4
4 Release:   1
5 Copyright: LGPL
6 Group:     System Environment/Libraries
7 Vendor:    Intra2net AG
8 Source:    %{name}-%{version}.tar.gz
9 Buildroot: /tmp/%{name}-%{version}-root
10 Requires:  libusb
11 BuildRequires: libusb, libusb-devel, pkgconfig
12 Prefix:    /usr
13
14 %package   devel
15 Summary:   Header files and static libraries for libftdi
16 Group:     Development/Libraries
17 Requires:  libftdi = %{version}, libusb-devel
18
19 %description 
20 Library to program and control the FTDI USB controller
21
22 %description devel
23 Header files and static libraries for libftdi
24
25 %prep
26 %setup -q
27
28 %build
29 ./configure --prefix=%{prefix}
30 make
31
32 %install
33 make DESTDIR=$RPM_BUILD_ROOT install
34
35 %clean
36 rm -fr $RPM_BUILD_ROOT
37
38 %files
39 %defattr(-,root,root)
40 %doc COPYING.LIB
41 %{prefix}/lib/libftdi.so*
42
43 %files devel
44 %defattr(-,root,root)
45 %{prefix}/lib/libftdi.*a
46 %{prefix}/include/*.h
47 %{prefix}/lib/pkgconfig/*.pc