libusb1-vl.spec 6.8 KB

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