1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: libgusb |
---|
4 | Version: 0.2.7 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: GObject wrapper for libusb1 |
---|
7 | Summary(ja): libusb1 用 GObject ラッパー |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: LGPLv2+ |
---|
11 | URL: https://gitorious.org/gusb/ |
---|
12 | Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: glib2-devel >= 2.32.0 |
---|
16 | BuildRequires: gobject-introspection-devel |
---|
17 | BuildRequires: libusb1-devel >= 1.0.19 |
---|
18 | |
---|
19 | Vendor: Project Vine |
---|
20 | Distribution: Vine Linux |
---|
21 | Packager: Takemikaduchi |
---|
22 | |
---|
23 | |
---|
24 | %description |
---|
25 | GUsb is a GObject wrapper for libusb1 that makes it easy to do |
---|
26 | asynchronous control, bulk and interrupt transfers with proper |
---|
27 | cancellation and integration into a mainloop. |
---|
28 | This makes it easy to integrate low level USB transfers with your |
---|
29 | high-level application or system daemon. |
---|
30 | |
---|
31 | Not everything you can do in libusb1 is wrapped, although we'll accept |
---|
32 | feature requests (with patches) if it makes sense. There is some pretty |
---|
33 | low hanging fruit if you're interested. |
---|
34 | |
---|
35 | |
---|
36 | %package devel |
---|
37 | Summary: Development files for %{name} |
---|
38 | Summary(ja): %{name} の開発ファイル |
---|
39 | Group: Development/Libraries |
---|
40 | Requires: %{name} = %{version}-%{release} |
---|
41 | Requires: glib2-devel |
---|
42 | |
---|
43 | %description devel |
---|
44 | The %{name}-devel package contains libraries and header files for |
---|
45 | developing applications that use %{name}. |
---|
46 | |
---|
47 | |
---|
48 | %package doc |
---|
49 | Summary: Documentation for %{name} |
---|
50 | Summary(ja): %{name} 用のドキュメント |
---|
51 | Group: Documentation |
---|
52 | Requires: %{name} = %{version}-%{release} |
---|
53 | BuildArch: noarch |
---|
54 | |
---|
55 | %description doc |
---|
56 | This package contains documentation for %{name}. |
---|
57 | |
---|
58 | |
---|
59 | # compat32 |
---|
60 | %package -n compat32-%{name} |
---|
61 | Summary: GObject wrapper for libusb1 |
---|
62 | Summary(ja): libusb1 用 GObject ラッパー |
---|
63 | Group: System Environment/Libraries |
---|
64 | Requires: %{name} = %{version}-%{release} |
---|
65 | |
---|
66 | %description -n compat32-%{name} |
---|
67 | GUsb is a GObject wrapper for libusb1 that makes it easy to do |
---|
68 | asynchronous control, bulk and interrupt transfers with proper |
---|
69 | cancellation and integration into a mainloop. |
---|
70 | This makes it easy to integrate low level USB transfers with your |
---|
71 | high-level application or system daemon. |
---|
72 | |
---|
73 | Not everything you can do in libusb1 is wrapped, although we'll accept |
---|
74 | feature requests (with patches) if it makes sense. There is some pretty |
---|
75 | low hanging fruit if you're interested. |
---|
76 | |
---|
77 | %package -n compat32-%{name}-devel |
---|
78 | Summary: Development files for %{name} |
---|
79 | Summary(ja): %{name} の開発ファイル |
---|
80 | Group: Development/Libraries |
---|
81 | Requires: %{name}-devel = %{version}-%{release} |
---|
82 | Requires: compat32-%{name} = %{version}-%{release} |
---|
83 | Requires: compat32-glib2-devel |
---|
84 | Requires: compat32-libusb1-devel |
---|
85 | Requires: compat32-pkgconfig |
---|
86 | |
---|
87 | %description -n compat32-%{name}-devel |
---|
88 | The %{name}-devel package contains libraries and header files for |
---|
89 | developing applications that use %{name}. |
---|
90 | |
---|
91 | |
---|
92 | %prep |
---|
93 | %setup -q |
---|
94 | |
---|
95 | %build |
---|
96 | %configure --disable-static --disable-vala |
---|
97 | make %{?_smp_mflags} |
---|
98 | |
---|
99 | %check |
---|
100 | |
---|
101 | %install |
---|
102 | rm -rf $RPM_BUILD_ROOT |
---|
103 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
104 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
105 | |
---|
106 | |
---|
107 | %clean |
---|
108 | rm -rf $RPM_BUILD_ROOT |
---|
109 | |
---|
110 | |
---|
111 | %post -p /sbin/ldconfig |
---|
112 | |
---|
113 | %postun -p /sbin/ldconfig |
---|
114 | |
---|
115 | %if %{build_compat32} |
---|
116 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
117 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
118 | %endif |
---|
119 | |
---|
120 | |
---|
121 | %files |
---|
122 | %defattr(-,root,root,-) |
---|
123 | %doc AUTHORS ChangeLog COPYING MAINTAINERS NEWS README |
---|
124 | %{_libdir}/%{name}.so.* |
---|
125 | %{_libdir}/girepository-1.0/GUsb-1.0.typelib |
---|
126 | |
---|
127 | %files devel |
---|
128 | %defattr(-,root,root,-) |
---|
129 | %{_includedir}/gusb-1 |
---|
130 | %{_libdir}/%{name}.so |
---|
131 | %{_libdir}/pkgconfig/gusb.pc |
---|
132 | %{_datadir}/gir-1.0/GUsb-1.0.gir |
---|
133 | |
---|
134 | %files doc |
---|
135 | %defattr(-,root,root,-) |
---|
136 | %{_datadir}/gtk-doc/html/gusb |
---|
137 | |
---|
138 | # compat32 |
---|
139 | %if %{build_compat32} |
---|
140 | %files -n compat32-%{name} |
---|
141 | %defattr(-,root,root,-) |
---|
142 | %{_libdir}/%{name}.so.* |
---|
143 | |
---|
144 | %files -n compat32-%{name}-devel |
---|
145 | %defattr(-,root,root,-) |
---|
146 | %{_libdir}/%{name}.so |
---|
147 | %{_libdir}/pkgconfig/gusb.pc |
---|
148 | %endif |
---|
149 | |
---|
150 | |
---|
151 | %changelog |
---|
152 | * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.7-1 |
---|
153 | - new upstream release |
---|
154 | |
---|
155 | * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.2.3-1 |
---|
156 | - new upstream release |
---|
157 | - added compat32 subpackages |
---|
158 | |
---|
159 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-2 |
---|
160 | - rebuild with VineSeed environment |
---|
161 | |
---|
162 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-1 |
---|
163 | - new upstream release |
---|
164 | - add BuildRequires: gobject-introspection-devel |
---|
165 | |
---|
166 | * Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.4-1 |
---|
167 | - new upstream release |
---|
168 | |
---|
169 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.3-1 |
---|
170 | - initial build |
---|