tizen 2.4 release
[external/libusb.git] / packaging / libusb.spec
1 Name:           libusb
2 Version:        1.0.9
3 Release:        0
4 License:        LGPL-2.1+
5 Summary:        USB Library
6 Url:            http://www.libusb.org/
7 Group:          Base/Device Management
8 Source:         %{name}-%{version}.tar.bz2
9 Source1:        baselibs.conf
10 Source1001:     libusb.manifest
11 BuildRequires:  pkg-config
12
13 %description
14 Libusb is a library that allows userspace access to USB devices.
15
16 %package devel
17 Summary:        USB Library
18 Group:          Development/Libraries
19 Requires:       glibc-devel
20 Requires:       libusb = %{version}
21
22 %description devel
23 Libusb is a library that allows userspace access to USB devices.
24
25 %prep
26 %setup -q
27 cp %{SOURCE1001} .
28
29 %build
30 %configure\
31         --with-pic\
32         --disable-static
33 make %{?_smp_mflags}
34
35 %install
36 %make_install
37
38 %post  -p /sbin/ldconfig
39
40 %postun  -p /sbin/ldconfig
41
42 %files
43 %manifest %{name}.manifest
44 %defattr(-,root,root)
45 %doc COPYING
46 %{_libdir}/*.so.*
47
48 %files devel
49 %manifest %{name}.manifest
50 %defattr(-,root,root)
51 %{_includedir}/libusb-1.0
52 %{_libdir}/*.so
53 %{_libdir}/pkgconfig/*.pc
54
55 %changelog