]> git.pld-linux.org Git - packages/libgusb.git/blame - libgusb.spec
- updated to 0.1.3
[packages/libgusb.git] / libgusb.spec
CommitLineData
b8f9753f
JB
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
4#
5Summary: GUsb - GObject wrapper for libusb1 library
6Summary(pl.UTF-8): GUsb - obudowanie GObject biblioteki libusb1
7Name: libgusb
7ba4ab3e
JB
8Version: 0.1.3
9Release: 1
b8f9753f
JB
10License: LGPL v2.1+
11Group: Libraries
12Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
7ba4ab3e 13# Source0-md5: 9cf5d2ef121f857c565189f82e9e7233
b8f9753f
JB
14BuildRequires: autoconf >= 2.63
15BuildRequires: automake >= 1:1.11
16BuildRequires: gtk-doc >= 1.9
17BuildRequires: glib2-devel >= 1:2.28.0
18BuildRequires: libtool >= 2:2.2
19BuildRequires: libusb-devel >= 1.0.0
20BuildRequires: pkgconfig
21BuildRequires: tar >= 1:1.22
22BuildRequires: udev-glib-devel
23BuildRequires: xz
24Requires: glib2 >= 1:2.28.0
25Requires: libusb >= 1.0.0
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29GUsb is a GObject wrapper for libusb1 that makes it easy to do
30asynchronous control, bulk and interrupt transfers with proper
31cancellation and integration into a mainloop. This makes it easy to
32integrate low level USB transfers with your high-level application or
33system daemon.
34
35%description -l pl.UTF-8
36GUsb to obudowanie GObject biblioteki libusb1, ułatwiające
37asynchroniczne sterowanie oraz przesyłanie danych (typu bulk jak i
38z użyciem przerwań) z właściwym przerywaniem i integracją w głównej
39pętli. Ułatwia to integrowanie niskopoziomowego przesyłania danych po
40USB w wysokopoziomowej aplikacji lub demonie systemowym.
41
42%package devel
43Summary: Header files for GUsb library
44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GUsb
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
47Requires: glib2-devel >= 1:2.28.0
48Requires: libusb-devel >= 1.0.0
49Requires: udev-glib-devel
50
51%description devel
52Header files for GUsb library.
53
54%description devel -l pl.UTF-8
55Pliki nagłówkowe biblioteki GUsb.
56
57%package static
58Summary: Static GUsb library
59Summary(pl.UTF-8): Statyczna biblioteka GUsb
60Group: Development/Libraries
61Requires: %{name}-devel = %{version}-%{release}
62
63%description static
64Static GUsb library.
65
66%description static -l pl.UTF-8
67Statyczna biblioteka GUsb.
68
69%package apidocs
70Summary: GUsb API documentation
71Summary(pl.UTF-8): Dokumentacja API biblioteki GUsb
72Group: Documentation
73
74%description apidocs
75API and internal documentation for GUsb library.
76
77%description apidocs -l pl.UTF-8
78Dokumentacja API biblioteki GUsb.
79
80%prep
81%setup -q
b8f9753f
JB
82
83%build
84%{__libtoolize}
85%{__aclocal}
86%{__autoconf}
87%{__autoheader}
88%{__automake}
89%configure \
90 --disable-silent-rules \
91 --with-html-dir=%{_gtkdocdir}
92%{__make}
93
94%install
95rm -rf $RPM_BUILD_ROOT
96
97%{__make} install \
98 DESTDIR=$RPM_BUILD_ROOT
99
100# obsoleted by pkg-config
101%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgusb.la
102
103%clean
104rm -rf $RPM_BUILD_ROOT
105
106%post -p /sbin/ldconfig
107%postun -p /sbin/ldconfig
108
109%files
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
114
115%files devel
116%defattr(644,root,root,755)
117%attr(755,root,root) %{_libdir}/libgusb.so
118%{_includedir}/gusb-1
119%{_pkgconfigdir}/gusb.pc
120
121%files static
122%defattr(644,root,root,755)
123%{_libdir}/libgusb.a
124
125%if %{with apidocs}
126%files apidocs
127%defattr(644,root,root,755)
128%{_gtkdocdir}/gusb
129%endif
This page took 0.221109 seconds and 4 git commands to generate.