libusb1-vl.spec 6.5 KB

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