]>
Commit | Line | Data |
---|---|---|
1b2cb76e AM |
1 | # |
2 | # Conditional build: | |
1b2cb76e AM |
3 | %bcond_with tests # perform "make check" |
4 | # | |
c1d5f7da JB |
5 | Summary: USB access library (libusb-1.0 to libusb-0.1 compatibility wrapper) |
6 | Summary(pl.UTF-8): Biblioteka dostępu do USB (warstwa kompatybilności libusb-1.0 z libusb-0.1) | |
1b2cb76e | 7 | Name: libusb-compat |
33c0f09f JP |
8 | Version: 0.1.8 |
9 | Release: 1 | |
c1d5f7da | 10 | License: LGPL v2.1+ |
1b2cb76e | 11 | Group: Libraries |
c1d5f7da | 12 | Source0: http://downloads.sourceforge.net/libusb/%{name}-%{version}.tar.bz2 |
33c0f09f | 13 | # Source0-md5: 55373258ce2165eca93c18b05110d058 |
102ffc50 | 14 | URL: http://www.libusb.org/ |
c1d5f7da JB |
15 | BuildRequires: autoconf >= 2.50 |
16 | BuildRequires: automake >= 1.6 | |
1b2cb76e AM |
17 | BuildRequires: libtool >= 2:1.5 |
18 | BuildRequires: libusb-devel >= 1.0.0 | |
cd2077f9 | 19 | BuildRequires: pkgconfig |
c1d5f7da | 20 | Obsoletes: libusb < 1.0 |
1b2cb76e AM |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | Provides a library for application access to USB devices. | |
25 | ||
102ffc50 ER |
26 | libusb-compat-0.1 is a replacement for libusb-0.1. |
27 | ||
28 | It attempts to look, feel and behave identically. The difference is | |
29 | that it just converts the libusb-0.1 function calls into their | |
30 | libusb-1.0 equivalents. | |
31 | ||
1b2cb76e AM |
32 | %description -l pl.UTF-8 |
33 | Biblioteka umożliwiająca dostęp do urządzeń USB z poziomu aplikacji. | |
34 | ||
c1d5f7da JB |
35 | libusb-compat-0.1 to zamiennik libusb-0.1. |
36 | ||
37 | Stara się wyglądać i zachowywać identycznie. Różnica jest taka, że | |
38 | zamienia wywołania funkcji libusb-0.1 na odpowiedniki z libusb-1.0. | |
1b2cb76e AM |
39 | |
40 | %package devel | |
c1d5f7da JB |
41 | Summary: Header files for libusb-compat library |
42 | Summary(es.UTF-8): Archivos de desarrollo de libusb-compat | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libusb-compat | |
44 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento da libusb-compat | |
1b2cb76e AM |
45 | Group: Development/Libraries |
46 | Requires: %{name} = %{version}-%{release} | |
3880f290 | 47 | Requires: libusb-devel >= 1.0.0 |
c1d5f7da | 48 | Obsoletes: libusb-devel < 1.0.0 |
1b2cb76e AM |
49 | Obsoletes: libusb0.1-devel |
50 | ||
51 | %description devel | |
52 | This package contains header files and other resources you can use to | |
102ffc50 | 53 | incorporate libusb-0.1 into applications. |
1b2cb76e AM |
54 | |
55 | %description devel -l es.UTF-8 | |
c1d5f7da | 56 | Bibliotecas de desarrolo para linusb-compat. |
1b2cb76e AM |
57 | |
58 | %description devel -l pl.UTF-8 | |
c1d5f7da JB |
59 | Ten pakiet zawiera pliki nagłówkowe i inne zasoby pozwalające |
60 | wykorzystywać API libusb-0.1 we własnych aplikacjach. | |
1b2cb76e AM |
61 | |
62 | %description devel -l pt_BR.UTF-8 | |
c1d5f7da | 63 | Bibliotecas de desenvolvimento para libusb-compat. |
1b2cb76e AM |
64 | |
65 | %package static | |
c1d5f7da JB |
66 | Summary: libusb-compat static library |
67 | Summary(es.UTF-8): Archivos de desarrollo de libusb-compat - estatico | |
68 | Summary(pl.UTF-8): Statyczna biblioteka libusb-compat | |
69 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento da libusb-compat - biblioteca estática | |
1b2cb76e AM |
70 | Group: Development/Libraries |
71 | Requires: %{name}-devel = %{version}-%{release} | |
c1d5f7da | 72 | Obsoletes: libusb-static < 1.0 |
1b2cb76e AM |
73 | |
74 | %description static | |
c1d5f7da | 75 | This is package with static libusb-compat library. |
1b2cb76e AM |
76 | |
77 | %description static -l es.UTF-8 | |
c1d5f7da | 78 | Bibliotecas de desarrolo para linusb-compat - estatico. |
1b2cb76e AM |
79 | |
80 | %description static -l pl.UTF-8 | |
c1d5f7da | 81 | Statyczna biblioteka libusb-compat. |
1b2cb76e AM |
82 | |
83 | %description static -l pt_BR.UTF-8 | |
c1d5f7da | 84 | Bibliotecas de desenvolvimento para libusb-compat - estático. |
1b2cb76e AM |
85 | |
86 | %prep | |
87 | %setup -q | |
88 | ||
89 | %build | |
90 | %{__libtoolize} | |
91 | %{__aclocal} | |
92 | %{__autoconf} | |
93 | %{__autoheader} | |
94 | %{__automake} | |
95 | %configure | |
96 | ||
97 | %{__make} | |
98 | ||
99 | %{?with_tests:%{__make} check} | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
c1d5f7da JB |
115 | %doc AUTHORS ChangeLog LICENSE NEWS README |
116 | %attr(755,root,root) %{_libdir}/libusb-0.1.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libusb-0.1.so.4 | |
1b2cb76e AM |
118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_bindir}/libusb-config | |
122 | %attr(755,root,root) %{_libdir}/libusb.so | |
123 | %{_libdir}/libusb.la | |
124 | %{_includedir}/usb.h | |
125 | %{_pkgconfigdir}/libusb.pc | |
126 | ||
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libusb.a |