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: https://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
14 # Source0-md5: fa2b41b828c749f9190edf888948a77b
15 BuildRequires: autoconf >= 2.63
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: glib2-devel >= 1:2.38.0
18 BuildRequires: gobject-introspection-devel >= 1.29
19 BuildRequires: gtk-doc >= 1.9
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 z
40 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
74 %if "%{_rpmversion}" >= "5"
79 API and internal documentation for GUsb library.
81 %description apidocs -l pl.UTF-8
82 Dokumentacja API biblioteki GUsb.
84 %package -n vala-libgusb
85 Summary: Vala API for libgusb
86 Summary(pl.UTF-8): API języka Vala do libgusb
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
89 Requires: vala >= 2:0.16
90 %if "%{_rpmversion}" >= "5"
94 %description -n vala-libgusb
97 %description -n vala-libgusb -l pl.UTF-8
98 API języka Vala do libgusb.
110 --disable-silent-rules \
111 %{!?with_vala:--disable-vala} \
112 --with-html-dir=%{_gtkdocdir}
116 rm -rf $RPM_BUILD_ROOT
119 DESTDIR=$RPM_BUILD_ROOT
121 # obsoleted by pkg-config
122 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgusb.la
125 rm -rf $RPM_BUILD_ROOT
127 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
131 %defattr(644,root,root,755)
132 %doc AUTHORS MAINTAINERS NEWS README TODO
133 %attr(755,root,root) %{_bindir}/gusbcmd
134 %attr(755,root,root) %{_libdir}/libgusb.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libgusb.so.2
136 %{_libdir}/girepository-1.0/GUsb-1.0.typelib
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libgusb.so
141 %{_includedir}/gusb-1
142 %{_datadir}/gir-1.0/GUsb-1.0.gir
143 %{_pkgconfigdir}/gusb.pc
146 %defattr(644,root,root,755)
151 %defattr(644,root,root,755)
156 %files -n vala-libgusb
157 %defattr(644,root,root,755)
158 %{_datadir}/vala/vapi/gusb.vapi