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