]> git.pld-linux.org Git - packages/libusbx.git/blob - libusbx.spec
- initial; from fc; unfinished
[packages/libusbx.git] / libusbx.spec
1 Summary:        Library for accessing USB devices
2 Name:           libusbx
3 Version:        1.0.17
4 Release:        0.1
5 Source0:        http://downloads.sourceforge.net/libusbx/%{name}-%{version}.tar.bz2
6 # Source0-md5:  99467ca2cb81c19c4a172de9f30e7576
7 License:        LGPL v2+
8 Group:          Libraries
9 URL:            http://sourceforge.net/apps/mediawiki/libusbx/
10 BuildRequires:  doxygen
11 BuildRequires:  systemd-devel
12 BuildRequires:  udev-devel
13 Provides:       libusb1 = %{version}-%{release}
14 Obsoletes:      libusb1 <= 1.0.9
15
16 %description
17 This package provides a way for applications to access USB devices.
18
19 Libusbx is a fork of the original libusb, which is a fully API and ABI
20 compatible drop in for the libusb-1.0.9 release. The libusbx fork was
21 started by most of the libusb-1.0 developers, after the original
22 libusb project did not produce a new release for over 18 months.
23
24 Note that this library is not compatible with the original libusb-0.1
25 series, if you need libusb-0.1 compatibility install the libusb
26 package.
27
28 %package        devel
29 Summary:        Development files for %{name}
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32 Provides:       libusb1-devel = %{version}-%{release}
33 Obsoletes:      libusb1-devel <= 1.0.9
34
35 %description    devel
36 The %{name}-devel package contains libraries and header files for
37 developing applications that use %{name}.
38
39 %prep
40 %setup -q
41
42 %build
43 %configure \
44         --disable-static \
45         --disable-silent-rules \
46         --enable-examples-build \
47
48 %{__make}
49 %{__make} -C doc docs
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 rm $RPM_BUILD_ROOT%{_libdir}/*.la
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
64
65 %files
66 %defattr(644,root,root,755)
67 %doc AUTHORS COPYING README ChangeLog
68 %{_libdir}/*.so.*
69
70 %files devel
71 %defattr(644,root,root,755)
72 %doc doc/html examples/*.c
73 %{_includedir}/libusb-1.0
74 %{_libdir}/*.so
75 %{_pkgconfigdir}/libusb-1.0.pc
This page took 0.081589 seconds and 3 git commands to generate.