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