libgusb-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. %bcond_with docs
  2. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  3. Name: libgusb
  4. Summary: GObject wrapper for libusb1
  5. Summary(ja): libusb1 用 GObject ラッパー
  6. Version: 0.4.9
  7. Release: 1%{?_dist_release}
  8. Group: system
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Packager: Takemikaduchi
  12. License: LGPLv2+
  13. URL: https://github.com/hughsie/libgusb
  14. Source0: https://github.com/hughsie/libgusb/releases/download/%{version}/libgusb-%{version}.tar.xz
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: meson
  17. BuildRequires: glib2-devel >= 2.32.0
  18. BuildRequires: gobject-introspection-devel
  19. BuildRequires: json-glib-devel
  20. BuildRequires: libusb1-devel >= 1.0.19
  21. %description
  22. GUsb is a GObject wrapper for libusb1 that makes it easy to do
  23. asynchronous control, bulk and interrupt transfers with proper
  24. cancellation and integration into a mainloop.
  25. This makes it easy to integrate low level USB transfers with your
  26. high-level application or system daemon.
  27. Not everything you can do in libusb1 is wrapped, although we'll accept
  28. feature requests (with patches) if it makes sense. There is some pretty
  29. low hanging fruit if you're interested.
  30. %package devel
  31. Summary: Development files for %{name}
  32. Summary(ja): %{name} の開発ファイル
  33. Group: programming
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: glib2-devel
  36. %description devel
  37. The %{name}-devel package contains libraries and header files for
  38. developing applications that use %{name}.
  39. %if %{with docs}
  40. %package doc
  41. Summary: Documentation for %{name}
  42. Summary(ja): %{name} 用のドキュメント
  43. Group: documentation
  44. Requires: %{name} = %{version}-%{release}
  45. BuildArch: noarch
  46. %description doc
  47. This package contains documentation for %{name}.
  48. %endif
  49. # compat32
  50. %package -n compat32-%{name}
  51. Summary: GObject wrapper for libusb1
  52. Summary(ja): libusb1 用 GObject ラッパー
  53. Group: system,legacy
  54. Requires: %{name} = %{version}-%{release}
  55. %description -n compat32-%{name}
  56. GUsb is a GObject wrapper for libusb1 that makes it easy to do
  57. asynchronous control, bulk and interrupt transfers with proper
  58. cancellation and integration into a mainloop.
  59. This makes it easy to integrate low level USB transfers with your
  60. high-level application or system daemon.
  61. Not everything you can do in libusb1 is wrapped, although we'll accept
  62. feature requests (with patches) if it makes sense. There is some pretty
  63. low hanging fruit if you're interested.
  64. %package -n compat32-%{name}-devel
  65. Summary: Development files for %{name}
  66. Summary(ja): %{name} の開発ファイル
  67. Group: programming,legacy
  68. Requires: %{name}-devel = %{version}-%{release}
  69. Requires: compat32-%{name} = %{version}-%{release}
  70. Requires: compat32-glib2-devel
  71. Requires: compat32-libusb1-devel
  72. Requires: compat32-pkgconfig
  73. %description -n compat32-%{name}-devel
  74. The %{name}-devel package contains libraries and header files for
  75. developing applications that use %{name}.
  76. %debug_package
  77. %prep
  78. %setup -q
  79. %build
  80. %meson \
  81. -Dvapi=false \
  82. -Dtests=false \
  83. -Dumockdev=disabled \
  84. %if %{with docs}
  85. -Ddocs=true
  86. %else
  87. -Ddocs=false
  88. %endif
  89. %meson_build
  90. %install
  91. %meson_install
  92. %files
  93. %defattr(-,root,root,-)
  94. %license COPYING
  95. %doc AUTHORS NEWS README.md
  96. %{_libdir}/%{name}.so.*
  97. %{_libdir}/girepository-1.0/GUsb-1.0.typelib
  98. %files devel
  99. %defattr(-,root,root,-)
  100. %{_bindir}/gusbcmd
  101. %{_libdir}/%{name}.so
  102. %{_libdir}/pkgconfig/gusb.pc
  103. %{_includedir}/gusb-1
  104. %{_datadir}/gir-1.0/GUsb-1.0.gir
  105. %if %{with docs}
  106. %files doc
  107. %defattr(-,root,root,-)
  108. %{_datadir}/gtk-doc/html/gusb
  109. %endif
  110. # compat32
  111. %if %{build_compat32}
  112. %files -n compat32-%{name}
  113. %defattr(-,root,root,-)
  114. %{_libdir}/%{name}.so.*
  115. %files -n compat32-%{name}-devel
  116. %defattr(-,root,root,-)
  117. %{_libdir}/%{name}.so
  118. %{_libdir}/pkgconfig/gusb.pc
  119. %endif
  120. %changelog
  121. * Mon Aug 12 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.9-1
  122. - new upstream release.
  123. * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.7-1
  124. - new upstream release
  125. * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.2.3-1
  126. - new upstream release
  127. - added compat32 subpackages
  128. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-2
  129. - rebuild with VineSeed environment
  130. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-1
  131. - new upstream release
  132. - add BuildRequires: gobject-introspection-devel
  133. * Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.4-1
  134. - new upstream release
  135. * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.3-1
  136. - initial build