3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without vala # Vala API
6 Summary: GUsb - GObject wrapper for libusb1 library
7 Summary(pl.UTF-8): GUsb - obudowanie GObject biblioteki libusb1
13 Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
14 # Source0-md5: e45c8eab3d95264817f4c9a28a608b93
15 BuildRequires: autoconf >= 2.63
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: gtk-doc >= 1.9
18 BuildRequires: glib2-devel >= 1:2.28.0
19 BuildRequires: gobject-introspection-devel >= 1.29
20 BuildRequires: libtool >= 2:2.2
21 BuildRequires: libusb-devel >= 1.0.0
22 BuildRequires: pkgconfig
23 BuildRequires: tar >= 1:1.22
24 BuildRequires: udev-glib-devel
25 %{?with_vala:BuildRequires: vala >= 2:0.16}
27 Requires: glib2 >= 1:2.28.0
28 Requires: libusb >= 1.0.0
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 GUsb is a GObject wrapper for libusb1 that makes it easy to do
33 asynchronous control, bulk and interrupt transfers with proper
34 cancellation and integration into a mainloop. This makes it easy to
35 integrate low level USB transfers with your high-level application or
38 %description -l pl.UTF-8
39 GUsb to obudowanie GObject biblioteki libusb1, ułatwiające
40 asynchroniczne sterowanie oraz przesyłanie danych (typu bulk jak i
41 z użyciem przerwań) z właściwym przerywaniem i integracją w głównej
42 pętli. Ułatwia to integrowanie niskopoziomowego przesyłania danych po
43 USB w wysokopoziomowej aplikacji lub demonie systemowym.
46 Summary: Header files for GUsb library
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GUsb
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
50 Requires: glib2-devel >= 1:2.28.0
51 Requires: libusb-devel >= 1.0.0
52 Requires: udev-glib-devel
55 Header files for GUsb library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki GUsb.
61 Summary: Static GUsb library
62 Summary(pl.UTF-8): Statyczna biblioteka GUsb
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
69 %description static -l pl.UTF-8
70 Statyczna biblioteka GUsb.
73 Summary: GUsb API documentation
74 Summary(pl.UTF-8): Dokumentacja API biblioteki GUsb
78 API and internal documentation for GUsb library.
80 %description apidocs -l pl.UTF-8
81 Dokumentacja API biblioteki GUsb.
83 %package -n vala-libgusb
84 Summary: Vala API for libgusb
85 Summary(pl.UTF-8): API języka Vala do libgusb
86 Group: Development/Libraries
87 Requires: %{name}-devel = %{version}-%{release}
88 Requires: vala >= 2:0.16
90 %description -n vala-libgusb
93 %description -n vala-libgusb -l pl.UTF-8
94 API języka Vala do libgusb.
106 --disable-silent-rules \
107 %{!?with_vala:--disable-vala} \
108 --with-html-dir=%{_gtkdocdir}
112 rm -rf $RPM_BUILD_ROOT
115 DESTDIR=$RPM_BUILD_ROOT
117 # obsoleted by pkg-config
118 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgusb.la
121 rm -rf $RPM_BUILD_ROOT
123 %post -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
127 %defattr(644,root,root,755)
128 %doc AUTHORS MAINTAINERS NEWS README TODO
129 %attr(755,root,root) %{_libdir}/libgusb.so.*.*.*
130 %attr(755,root,root) %ghost %{_libdir}/libgusb.so.2
131 %{_libdir}/girepository-1.0/GUsb-1.0.typelib
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libgusb.so
136 %{_includedir}/gusb-1
137 %{_datadir}/gir-1.0/GUsb-1.0.gir
138 %{_pkgconfigdir}/gusb.pc
141 %defattr(644,root,root,755)
146 %defattr(644,root,root,755)
151 %files -n vala-libgusb
152 %defattr(644,root,root,755)
153 %{_datadir}/vala/vapi/gusb.vapi