]> git.pld-linux.org Git - packages/libgusb.git/blob - libgusb.spec
- updated to 0.1.3
[packages/libgusb.git] / libgusb.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4 #
5 Summary:        GUsb - GObject wrapper for libusb1 library
6 Summary(pl.UTF-8):      GUsb - obudowanie GObject biblioteki libusb1
7 Name:           libgusb
8 Version:        0.1.3
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
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
23 BuildRequires:  xz
24 Requires:       glib2 >= 1:2.28.0
25 Requires:       libusb >= 1.0.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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
33 system daemon.
34
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.
41
42 %package devel
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
50
51 %description devel
52 Header files for GUsb library.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki GUsb.
56
57 %package static
58 Summary:        Static GUsb library
59 Summary(pl.UTF-8):      Statyczna biblioteka GUsb
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}-%{release}
62
63 %description static
64 Static GUsb library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka GUsb.
68
69 %package apidocs
70 Summary:        GUsb API documentation
71 Summary(pl.UTF-8):      Dokumentacja API biblioteki GUsb
72 Group:          Documentation
73
74 %description apidocs
75 API and internal documentation for GUsb library.
76
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki GUsb.
79
80 %prep
81 %setup -q
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
95 rm -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
104 rm -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.119962 seconds and 4 git commands to generate.