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: d0e4c970e2386900c99cab41d9b17e23
15 BuildRequires: autoconf >= 2.63
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: gtk-doc >= 1.9
18 BuildRequires: glib2-devel >= 1:2.38.0
19 BuildRequires: gobject-introspection-devel >= 1.29
20 BuildRequires: libtool >= 2:2.2
21 BuildRequires: libusb-devel >= 1.0.19
22 BuildRequires: pkgconfig
23 BuildRequires: tar >= 1:1.22
24 %{?with_vala:BuildRequires: vala >= 2:0.16}
26 Requires: glib2 >= 1:2.38.0
27 Requires: libusb >= 1.0.19
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 GUsb is a GObject wrapper for libusb1 that makes it easy to do
32 asynchronous control, bulk and interrupt transfers with proper
33 cancellation and integration into a mainloop. This makes it easy to
34 integrate low level USB transfers with your high-level application or
37 %description -l pl.UTF-8
38 GUsb to obudowanie GObject biblioteki libusb1, ułatwiające
39 asynchroniczne sterowanie oraz przesyłanie danych (typu bulk jak i
40 z użyciem przerwań) z właściwym przerywaniem i integracją w głównej
41 pętli. Ułatwia to integrowanie niskopoziomowego przesyłania danych po
42 USB w wysokopoziomowej aplikacji lub demonie systemowym.
45 Summary: Header files for GUsb library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GUsb
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
49 Requires: glib2-devel >= 1:2.38.0
50 Requires: libusb-devel >= 1.0.19
53 Header files for GUsb library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki GUsb.
59 Summary: Static GUsb library
60 Summary(pl.UTF-8): Statyczna biblioteka GUsb
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
67 %description static -l pl.UTF-8
68 Statyczna biblioteka GUsb.
71 Summary: GUsb API documentation
72 Summary(pl.UTF-8): Dokumentacja API biblioteki GUsb
76 API and internal documentation for GUsb library.
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki GUsb.
81 %package -n vala-libgusb
82 Summary: Vala API for libgusb
83 Summary(pl.UTF-8): API języka Vala do libgusb
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
86 Requires: vala >= 2:0.16
88 %description -n vala-libgusb
91 %description -n vala-libgusb -l pl.UTF-8
92 API języka Vala do libgusb.
104 --disable-silent-rules \
105 %{!?with_vala:--disable-vala} \
106 --with-html-dir=%{_gtkdocdir}
110 rm -rf $RPM_BUILD_ROOT
113 DESTDIR=$RPM_BUILD_ROOT
115 # obsoleted by pkg-config
116 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgusb.la
119 rm -rf $RPM_BUILD_ROOT
121 %post -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
125 %defattr(644,root,root,755)
126 %doc AUTHORS MAINTAINERS NEWS README TODO
127 %attr(755,root,root) %{_libdir}/libgusb.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libgusb.so.2
129 %{_libdir}/girepository-1.0/GUsb-1.0.typelib
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libgusb.so
134 %{_includedir}/gusb-1
135 %{_datadir}/gir-1.0/GUsb-1.0.gir
136 %{_pkgconfigdir}/gusb.pc
139 %defattr(644,root,root,755)
144 %defattr(644,root,root,755)
149 %files -n vala-libgusb
150 %defattr(644,root,root,755)
151 %{_datadir}/vala/vapi/gusb.vapi