3 %bcond_without apidocs # do not build and package API docs
5 Summary: GUsb - GObject wrapper for libusb1 library
6 Summary(pl.UTF-8): GUsb - obudowanie GObject biblioteki libusb1
12 Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
13 # Source0-md5: 9cf5d2ef121f857c565189f82e9e7233
14 BuildRequires: autoconf >= 2.63
15 BuildRequires: automake >= 1:1.11
16 BuildRequires: gtk-doc >= 1.9
17 BuildRequires: glib2-devel >= 1:2.28.0
18 BuildRequires: libtool >= 2:2.2
19 BuildRequires: libusb-devel >= 1.0.0
20 BuildRequires: pkgconfig
21 BuildRequires: tar >= 1:1.22
22 BuildRequires: udev-glib-devel
24 Requires: glib2 >= 1:2.28.0
25 Requires: libusb >= 1.0.0
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 GUsb is a GObject wrapper for libusb1 that makes it easy to do
30 asynchronous control, bulk and interrupt transfers with proper
31 cancellation and integration into a mainloop. This makes it easy to
32 integrate low level USB transfers with your high-level application or
35 %description -l pl.UTF-8
36 GUsb to obudowanie GObject biblioteki libusb1, ułatwiające
37 asynchroniczne sterowanie oraz przesyłanie danych (typu bulk jak i
38 z użyciem przerwań) z właściwym przerywaniem i integracją w głównej
39 pętli. Ułatwia to integrowanie niskopoziomowego przesyłania danych po
40 USB w wysokopoziomowej aplikacji lub demonie systemowym.
43 Summary: Header files for GUsb library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GUsb
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 Requires: glib2-devel >= 1:2.28.0
48 Requires: libusb-devel >= 1.0.0
49 Requires: udev-glib-devel
52 Header files for GUsb library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki GUsb.
58 Summary: Static GUsb library
59 Summary(pl.UTF-8): Statyczna biblioteka GUsb
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
66 %description static -l pl.UTF-8
67 Statyczna biblioteka GUsb.
70 Summary: GUsb API documentation
71 Summary(pl.UTF-8): Dokumentacja API biblioteki GUsb
75 API and internal documentation for GUsb library.
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki GUsb.
90 --disable-silent-rules \
91 --with-html-dir=%{_gtkdocdir}
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
100 # obsoleted by pkg-config
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgusb.la
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc AUTHORS MAINTAINERS NEWS README TODO
112 %attr(755,root,root) %{_libdir}/libgusb.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libgusb.so.2
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libgusb.so
118 %{_includedir}/gusb-1
119 %{_pkgconfigdir}/gusb.pc
122 %defattr(644,root,root,755)
127 %defattr(644,root,root,755)