1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: A library which allows userspace access to USB devices |
---|
4 | Summary(ja): USB デバイスにユーザスペースからアクセスするためのライブラリ |
---|
5 | Name: libusb1 |
---|
6 | Version: 1.0.21 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Group: System Environment/Libraries |
---|
9 | License: LGPLv2+ |
---|
10 | URL: http://libusb.wiki.sourceforge.net/Libusb1.0 |
---|
11 | |
---|
12 | Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2 |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | ExcludeArch: s390 s390x |
---|
16 | BuildRequires: eudev-libudev-devel |
---|
17 | BuildRequires: doxygen |
---|
18 | |
---|
19 | %description |
---|
20 | This package provides a way for applications to access USB devices. Note that |
---|
21 | this library is not compatible with the original libusb-0.1 series. |
---|
22 | |
---|
23 | %description -l ja |
---|
24 | このパッケージはアプリケーションが USB デバイスにアクセスする方法を提供します。 |
---|
25 | このライブラリはオリジナルの libusb-0.1 シリーズと互換性がないことに注意してください。 |
---|
26 | |
---|
27 | %package devel |
---|
28 | Summary: Development files for libusb |
---|
29 | Summary(ja): libusb の開発用ファイル |
---|
30 | Group: Development/Libraries |
---|
31 | Requires: %{name} = %{version}-%{release} |
---|
32 | Requires: pkgconfig |
---|
33 | |
---|
34 | %description devel |
---|
35 | This package contains the header files, libraries and documentation needed to |
---|
36 | develop applications that use libusb1. |
---|
37 | |
---|
38 | %description devel -l ja |
---|
39 | このパッケージは libusb1 を使うアプリケーションを開発するために |
---|
40 | 必要なヘッダファイル、ライブラリ、ドキュメントを含んでいます。 |
---|
41 | |
---|
42 | %package static |
---|
43 | Summary: Static development files for libusb |
---|
44 | Summary(ja): libusb の静的開発ファイル |
---|
45 | Group: Development/Libraries |
---|
46 | Requires: %{name}-devel = %{version}-%{release} |
---|
47 | |
---|
48 | %description static |
---|
49 | This package contains static libraries to develop applications that use libusb1. |
---|
50 | |
---|
51 | %description static -l ja |
---|
52 | このパッケージは libusb1 を使うアプリケーションを開発するための |
---|
53 | 静的ライブラリを含んでいます。 |
---|
54 | |
---|
55 | |
---|
56 | # compat32 |
---|
57 | %package -n compat32-%{name} |
---|
58 | Summary: A library which allows userspace access to USB devices |
---|
59 | Summary(ja): USB デバイスにユーザスペースからアクセスするためのライブラリ |
---|
60 | Group: System Environment/Libraries |
---|
61 | Requires: %{name} = %{version}-%{release} |
---|
62 | Requires: compat32-eudev-libudev |
---|
63 | |
---|
64 | %description -n compat32-%{name} |
---|
65 | This package provides a way for applications to access USB devices. Note that |
---|
66 | this library is not compatible with the original libusb-0.1 series. |
---|
67 | |
---|
68 | %description -n compat32-%{name} -l ja |
---|
69 | このパッケージはアプリケーションが USB デバイスにアクセスする方法を提供します。 |
---|
70 | このライブラリはオリジナルの libusb-0.1 シリーズと互換性がないことに注意してください。 |
---|
71 | |
---|
72 | %package -n compat32-%{name}-devel |
---|
73 | Summary: Development files for libusb |
---|
74 | Summary(ja): libusb の開発用ファイル |
---|
75 | Group: Development/Libraries |
---|
76 | Requires: %{name}-devel = %{version}-%{release} |
---|
77 | Requires: compat32-%{name} = %{version}-%{release} |
---|
78 | Requires: compat32-pkgconfig |
---|
79 | |
---|
80 | %description -n compat32-%{name}-devel |
---|
81 | This package contains the header files, libraries and documentation needed to |
---|
82 | develop applications that use libusb1. |
---|
83 | |
---|
84 | %description -n compat32-%{name}-devel -l ja |
---|
85 | このパッケージは libusb1 を使うアプリケーションを開発するために |
---|
86 | 必要なヘッダファイル、ライブラリ、ドキュメントを含んでいます。 |
---|
87 | |
---|
88 | |
---|
89 | %prep |
---|
90 | %setup -q -n libusb-%{version} |
---|
91 | |
---|
92 | %build |
---|
93 | %configure |
---|
94 | make CFLAGS="$RPM_OPT_FLAGS" |
---|
95 | pushd doc |
---|
96 | make docs |
---|
97 | popd |
---|
98 | |
---|
99 | %install |
---|
100 | rm -rf $RPM_BUILD_ROOT |
---|
101 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
102 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
103 | |
---|
104 | %clean |
---|
105 | rm -rf $RPM_BUILD_ROOT |
---|
106 | |
---|
107 | %post -p /sbin/ldconfig |
---|
108 | %postun -p /sbin/ldconfig |
---|
109 | |
---|
110 | %if %{build_compat32} |
---|
111 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
112 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
113 | %endif |
---|
114 | |
---|
115 | |
---|
116 | %files |
---|
117 | %defattr(-,root,root) |
---|
118 | %doc AUTHORS COPYING README NEWS ChangeLog |
---|
119 | %{_libdir}/libusb-1.0.so.* |
---|
120 | |
---|
121 | %files devel |
---|
122 | %defattr(-,root,root) |
---|
123 | %doc doc/html examples/*.c |
---|
124 | %{_includedir}/libusb-1.0 |
---|
125 | %{_libdir}/libusb-1.0.so |
---|
126 | %{_libdir}/pkgconfig/libusb-1.0.pc |
---|
127 | |
---|
128 | %files static |
---|
129 | %defattr(-,root,root) |
---|
130 | %{_libdir}/libusb-1.0.a |
---|
131 | |
---|
132 | # compat32 |
---|
133 | %if %{build_compat32} |
---|
134 | %files -n compat32-%{name} |
---|
135 | %defattr(-,root,root,-) |
---|
136 | %{_libdir}/libusb-1.0.so.* |
---|
137 | |
---|
138 | %files -n compat32-%{name}-devel |
---|
139 | %defattr(-,root,root,-) |
---|
140 | %{_libdir}/libusb-1.0.so |
---|
141 | %{_libdir}/pkgconfig/libusb-1.0.pc |
---|
142 | %endif |
---|
143 | |
---|
144 | |
---|
145 | %changelog |
---|
146 | * Fri Jan 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.21-1 |
---|
147 | - new upstream release. |
---|
148 | |
---|
149 | * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.19-2 |
---|
150 | - added compat32 subpackages |
---|
151 | |
---|
152 | * Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.19-1 |
---|
153 | - new upstream release |
---|
154 | - add BuildRequires: eudev-libudev-devel |
---|
155 | |
---|
156 | * Thu May 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.9-1 |
---|
157 | - new upstream release |
---|
158 | |
---|
159 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-2 |
---|
160 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
161 | |
---|
162 | * Tue May 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.8-1 |
---|
163 | - new upstream release |
---|
164 | |
---|
165 | * Thu Dec 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.6-1 |
---|
166 | - new upstream release |
---|
167 | |
---|
168 | * Wed Sep 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.3-1 |
---|
169 | - new upstream release |
---|
170 | |
---|
171 | * Mon Aug 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.2-1 |
---|
172 | - new upstream release |
---|
173 | |
---|
174 | * Sun Jun 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1 |
---|
175 | - new upstream release |
---|
176 | - fixed BuildRoot |
---|
177 | - added Japanese description, summary |
---|
178 | |
---|
179 | * Wed May 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1 |
---|
180 | - initial build for Vine Linux |
---|
181 | |
---|
182 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2 |
---|
183 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
184 | |
---|
185 | * Mon Dec 15 2008 - Bastien Nocera <bnocera@redhat.com> - 1.0.0-1 |
---|
186 | - Update to 1.0.0 |
---|
187 | |
---|
188 | * Fri Nov 21 2008 - Bastien Nocera <bnocera@redhat.com> - 0.9.4-1 |
---|
189 | - Update to 0.9.4 |
---|
190 | |
---|
191 | * Tue Sep 23 2008 Jindrich Novy <jnovy@redhat.com> 0.9.3-0.1 |
---|
192 | - update to 0.9.3 |
---|
193 | |
---|
194 | * Sun Jul 06 2008 - Bastien Nocera <bnocera@redhat.com> - 0.9.1 |
---|
195 | - Update to 0.9.1 |
---|
196 | |
---|
197 | * Mon May 26 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.4 |
---|
198 | - update to official beta |
---|
199 | |
---|
200 | * Fri May 23 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.3.gitbef33bb |
---|
201 | - update comment on how the tarball was created |
---|
202 | - use abbreviated git hash within package name to avoid conflicts |
---|
203 | - add to %%description that libusb1 is incompatible with libsub-0.1 |
---|
204 | |
---|
205 | * Thu May 22 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.2.gitbef33bb |
---|
206 | - add info on how the snapshot tarball was created |
---|
207 | |
---|
208 | * Wed May 21 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.1.gitbef33bb |
---|
209 | - use proper version to denote it is a git snapshot |
---|
210 | |
---|
211 | * Thu May 15 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.1 |
---|
212 | - initial packaging |
---|