libgusb-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libgusb
  3. Version: 0.2.7
  4. Release: 1%{?_dist_release}
  5. Summary: GObject wrapper for libusb1
  6. Summary(ja): libusb1 用 GObject ラッパー
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: https://gitorious.org/gusb/
  10. Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: glib2-devel >= 2.32.0
  13. BuildRequires: gobject-introspection-devel
  14. BuildRequires: libusb1-devel >= 1.0.19
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: Takemikaduchi
  18. %description
  19. GUsb is a GObject wrapper for libusb1 that makes it easy to do
  20. asynchronous control, bulk and interrupt transfers with proper
  21. cancellation and integration into a mainloop.
  22. This makes it easy to integrate low level USB transfers with your
  23. high-level application or system daemon.
  24. Not everything you can do in libusb1 is wrapped, although we'll accept
  25. feature requests (with patches) if it makes sense. There is some pretty
  26. low hanging fruit if you're interested.
  27. %package devel
  28. Summary: Development files for %{name}
  29. Summary(ja): %{name} の開発ファイル
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: glib2-devel
  33. %description devel
  34. The %{name}-devel package contains libraries and header files for
  35. developing applications that use %{name}.
  36. %package doc
  37. Summary: Documentation for %{name}
  38. Summary(ja): %{name} 用のドキュメント
  39. Group: Documentation
  40. Requires: %{name} = %{version}-%{release}
  41. BuildArch: noarch
  42. %description doc
  43. This package contains documentation for %{name}.
  44. # compat32
  45. %package -n compat32-%{name}
  46. Summary: GObject wrapper for libusb1
  47. Summary(ja): libusb1 用 GObject ラッパー
  48. Group: System Environment/Libraries
  49. Requires: %{name} = %{version}-%{release}
  50. %description -n compat32-%{name}
  51. GUsb is a GObject wrapper for libusb1 that makes it easy to do
  52. asynchronous control, bulk and interrupt transfers with proper
  53. cancellation and integration into a mainloop.
  54. This makes it easy to integrate low level USB transfers with your
  55. high-level application or system daemon.
  56. Not everything you can do in libusb1 is wrapped, although we'll accept
  57. feature requests (with patches) if it makes sense. There is some pretty
  58. low hanging fruit if you're interested.
  59. %package -n compat32-%{name}-devel
  60. Summary: Development files for %{name}
  61. Summary(ja): %{name} の開発ファイル
  62. Group: Development/Libraries
  63. Requires: %{name}-devel = %{version}-%{release}
  64. Requires: compat32-%{name} = %{version}-%{release}
  65. Requires: compat32-glib2-devel
  66. Requires: compat32-libusb1-devel
  67. Requires: compat32-pkgconfig
  68. %description -n compat32-%{name}-devel
  69. The %{name}-devel package contains libraries and header files for
  70. developing applications that use %{name}.
  71. %prep
  72. %setup -q
  73. %build
  74. %configure --disable-static --disable-vala
  75. make %{?_smp_mflags}
  76. %check
  77. %install
  78. rm -rf $RPM_BUILD_ROOT
  79. make install DESTDIR=$RPM_BUILD_ROOT
  80. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  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 ChangeLog COPYING MAINTAINERS NEWS README
  92. %{_libdir}/%{name}.so.*
  93. %{_libdir}/girepository-1.0/GUsb-1.0.typelib
  94. %files devel
  95. %defattr(-,root,root,-)
  96. %{_includedir}/gusb-1
  97. %{_libdir}/%{name}.so
  98. %{_libdir}/pkgconfig/gusb.pc
  99. %{_datadir}/gir-1.0/GUsb-1.0.gir
  100. %files doc
  101. %defattr(-,root,root,-)
  102. %{_datadir}/gtk-doc/html/gusb
  103. # compat32
  104. %if %{build_compat32}
  105. %files -n compat32-%{name}
  106. %defattr(-,root,root,-)
  107. %{_libdir}/%{name}.so.*
  108. %files -n compat32-%{name}-devel
  109. %defattr(-,root,root,-)
  110. %{_libdir}/%{name}.so
  111. %{_libdir}/pkgconfig/gusb.pc
  112. %endif
  113. %changelog
  114. * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.7-1
  115. - new upstream release
  116. * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.2.3-1
  117. - new upstream release
  118. - added compat32 subpackages
  119. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-2
  120. - rebuild with VineSeed environment
  121. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-1
  122. - new upstream release
  123. - add BuildRequires: gobject-introspection-devel
  124. * Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.4-1
  125. - new upstream release
  126. * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.3-1
  127. - initial build