[9150] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[521] | 3 | Summary: A library which allows userspace access to USB devices |
---|
| 4 | Summary(ja): USB デバイスにユーザスペースからアクセスするためのライブラリ |
---|
| 5 | Name: libusb1 |
---|
[8793] | 6 | Version: 1.0.19 |
---|
[9150] | 7 | Release: 2%{?_dist_release} |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | License: LGPLv2+ |
---|
| 10 | URL: http://libusb.wiki.sourceforge.net/Libusb1.0 |
---|
| 11 | |
---|
[521] | 12 | Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2 |
---|
[9150] | 13 | |
---|
[521] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | ExcludeArch: s390 s390x |
---|
[8793] | 16 | BuildRequires: eudev-libudev-devel |
---|
[521] | 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 |
---|
[9150] | 29 | Summary(ja): libusb の開発用ファイル |
---|
[521] | 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 | |
---|
[9150] | 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 | |
---|
[521] | 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 | |
---|
[9150] | 110 | %if %{build_compat32} |
---|
| 111 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 112 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 113 | %endif |
---|
[521] | 114 | |
---|
[9150] | 115 | |
---|
[521] | 116 | %files |
---|
| 117 | %defattr(-,root,root) |
---|
| 118 | %doc AUTHORS COPYING README NEWS ChangeLog |
---|
[9150] | 119 | %{_libdir}/libusb-1.0.so.* |
---|
[521] | 120 | |
---|
| 121 | %files devel |
---|
| 122 | %defattr(-,root,root) |
---|
| 123 | %doc doc/html examples/*.c |
---|
[9150] | 124 | %{_includedir}/libusb-1.0 |
---|
| 125 | %{_libdir}/libusb-1.0.so |
---|
[521] | 126 | %{_libdir}/pkgconfig/libusb-1.0.pc |
---|
| 127 | |
---|
| 128 | %files static |
---|
| 129 | %defattr(-,root,root) |
---|
[9150] | 130 | %{_libdir}/libusb-1.0.a |
---|
[521] | 131 | |
---|
[9150] | 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 | |
---|
[521] | 145 | %changelog |
---|
[9150] | 146 | * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.19-2 |
---|
| 147 | - added compat32 subpackages |
---|
| 148 | |
---|
[8793] | 149 | * Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.19-1 |
---|
| 150 | - new upstream release |
---|
| 151 | - add BuildRequires: eudev-libudev-devel |
---|
| 152 | |
---|
[6163] | 153 | * Thu May 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.9-1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
[1901] | 156 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-2 |
---|
| 157 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 158 | |
---|
[1101] | 159 | * Tue May 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.8-1 |
---|
| 160 | - new upstream release |
---|
| 161 | |
---|
[521] | 162 | * Thu Dec 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.6-1 |
---|
| 163 | - new upstream release |
---|
| 164 | |
---|
| 165 | * Wed Sep 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.3-1 |
---|
| 166 | - new upstream release |
---|
| 167 | |
---|
| 168 | * Mon Aug 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.2-1 |
---|
| 169 | - new upstream release |
---|
| 170 | |
---|
| 171 | * Sun Jun 14 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0.1-1 |
---|
| 172 | - new upstream release |
---|
| 173 | - fixed BuildRoot |
---|
| 174 | - added Japanese description, summary |
---|
| 175 | |
---|
| 176 | * Wed May 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1 |
---|
| 177 | - initial build for Vine Linux |
---|
| 178 | |
---|
| 179 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2 |
---|
| 180 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 181 | |
---|
| 182 | * Mon Dec 15 2008 - Bastien Nocera <bnocera@redhat.com> - 1.0.0-1 |
---|
| 183 | - Update to 1.0.0 |
---|
| 184 | |
---|
| 185 | * Fri Nov 21 2008 - Bastien Nocera <bnocera@redhat.com> - 0.9.4-1 |
---|
| 186 | - Update to 0.9.4 |
---|
| 187 | |
---|
| 188 | * Tue Sep 23 2008 Jindrich Novy <jnovy@redhat.com> 0.9.3-0.1 |
---|
| 189 | - update to 0.9.3 |
---|
| 190 | |
---|
| 191 | * Sun Jul 06 2008 - Bastien Nocera <bnocera@redhat.com> - 0.9.1 |
---|
| 192 | - Update to 0.9.1 |
---|
| 193 | |
---|
| 194 | * Mon May 26 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.4 |
---|
| 195 | - update to official beta |
---|
| 196 | |
---|
[8793] | 197 | * Fri May 23 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.3.gitbef33bb |
---|
[521] | 198 | - update comment on how the tarball was created |
---|
| 199 | - use abbreviated git hash within package name to avoid conflicts |
---|
| 200 | - add to %%description that libusb1 is incompatible with libsub-0.1 |
---|
| 201 | |
---|
| 202 | * Thu May 22 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.2.gitbef33bb |
---|
| 203 | - add info on how the snapshot tarball was created |
---|
| 204 | |
---|
| 205 | * Wed May 21 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.1.gitbef33bb |
---|
| 206 | - use proper version to denote it is a git snapshot |
---|
| 207 | |
---|
| 208 | * Thu May 15 2008 Jindrich Novy <jnovy@redhat.com> 0.9.0-0.1 |
---|
| 209 | - initial packaging |
---|