libmtp-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. Summary: A software library for MTP media players
  2. Summary(ja): MTP メディアプレイヤーのためのソフトウェアライブラリ
  3. Name: libmtp
  4. Version: 1.1.17
  5. Release: 1%{?_dist_release}
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: LGPLv2+
  9. URL: https://github.com/libmtp/libmtp
  10. %global altver %(echo %{version} | tr . -)
  11. Source0: https://github.com/libmtp/libmtp/archive/libmtp-%{altver}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. BuildRequires: libusb1-devel
  14. BuildRequires: doxygen
  15. Requires: udev
  16. Obsoletes: %{name}-hal < 1.1.6-3
  17. %description
  18. This package provides a software library for communicating with MTP
  19. (Media Transfer Protocol) media players, typically audio players, video
  20. players etc.
  21. %description -l ja
  22. このパッケージは典型的な音声プレイヤーや動画プレイヤーなどの
  23. MTP (Media Transfer Protocol) メディアプレイヤーのための
  24. ソフトウェアライブラリを提供します.
  25. %package examples
  26. Summary: Example programs for libmtp
  27. Summary(ja): libmtp のプログラム例集
  28. Group: Applications/Multimedia
  29. Requires: %{name} = %{version}-%{release}
  30. %description examples
  31. This package provides example programs for communicating with MTP
  32. devices.
  33. %description -l ja examples
  34. このパッケージは MTP デバイスを用いて通信するためのプログラム例集を提供します.
  35. %package devel
  36. Summary: Development files for libmtp
  37. Group: Development/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. Requires: pkgconfig
  40. Requires: libusb1-devel
  41. %description devel
  42. This package provides development files for the libmtp
  43. library for MTP media players.
  44. %description -l ja devel
  45. このパッケージは MTP メディアプレイヤーのための libmtp ライブラリに対する
  46. 開発ファイル群を提供します.
  47. %prep
  48. %setup -q -n libmtp-libmtp-%{altver}
  49. %build
  50. ./autogen.sh
  51. %configure --disable-static --with-udev=/etc/udev
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. make DESTDIR=$RPM_BUILD_ROOT install
  56. # Remove libtool archive remnant
  57. rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
  58. # Replace links with relative links
  59. rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-delfile
  60. rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-getfile
  61. rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-newfolder
  62. rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendfile
  63. rm -f $RPM_BUILD_ROOT%{_bindir}/mtp-sendtr
  64. pushd $RPM_BUILD_ROOT%{_bindir}
  65. ln -sf mtp-connect mtp-delfile
  66. ln -sf mtp-connect mtp-getfile
  67. ln -sf mtp-connect mtp-newfolder
  68. ln -sf mtp-connect mtp-sendfile
  69. ln -sf mtp-connect mtp-sendtr
  70. popd
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT
  73. %post -p /sbin/ldconfig
  74. %postun -p /sbin/ldconfig
  75. %files
  76. %defattr(-, root,root,-)
  77. %license COPYING
  78. %doc AUTHORS ChangeLog INSTALL README TODO
  79. %{_libdir}/*.so.*
  80. %{_sysconfdir}/udev/hwdb.d/69-libmtp.hwdb
  81. %{_sysconfdir}/udev/rules.d/69-libmtp.rules
  82. %{_sysconfdir}/udev/mtp-probe
  83. %files examples
  84. %defattr(-,root,root,-)
  85. %{_bindir}/*
  86. %files devel
  87. %defattr(-,root,root,-)
  88. %{_libdir}/*.so
  89. %dir %{_docdir}/%{name}-%{version}
  90. %{_docdir}/%{name}-%{version}/*
  91. %{_includedir}/*.h
  92. %{_libdir}/pkgconfig/*.pc
  93. %changelog
  94. * Mon Aug 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.17-1
  95. - new upstream release.
  96. * Sat Dec 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.16-1
  97. - new upstream release.
  98. * Fri Jul 15 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.11-1
  99. - new upstream release.
  100. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.10-1
  101. - new upstream release
  102. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.8-1
  103. - new upstream release
  104. * Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.6-3
  105. - remove %%{name}-hal subpackage
  106. - change BuildRequires: libusb1-devel instead of libusb-devel
  107. * Sun Nov 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.6-2
  108. - remove configure option "--program-prefix=mtp-"
  109. - fix %%files (move mtp-probe and 69-libmtp.rules)
  110. * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.6-1
  111. - new upstream release
  112. - remove Patch0 (libmtp-0.2.6.1-simpler-rules.patch)
  113. * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-1
  114. - updated to 1.0.3
  115. - Split out hal sub-package
  116. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.3.7-2
  117. - rebuilt with rpm-4.8.1 for pkg-config
  118. * Tue Jun 16 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.3.7-1
  119. - new upstream release
  120. * Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.3.5-1
  121. - initial build based on Fedora package
  122. * Sun Dec 21 2008 Linus Walleij <triad@df.lth.se> 0.3.5-1
  123. - New upstream bugfix release.
  124. - Nuke documentation again. Multilib no like.
  125. * Fri Nov 7 2008 Linus Walleij <triad@df.lth.se> 0.3.4-1
  126. - New upstream bugfix release.
  127. - Bastiens patch is upstreamed, dropping that patch.
  128. * Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-4
  129. - Update device list from CVS and fix the build
  130. * Sat Oct 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-3
  131. - Add support for more Nokia phones from their WMP10 drivers
  132. * Fri Oct 24 2008 - Bastien Nocera <bnocera@redhat.com> - 0.3.3-2
  133. - Add support for the Nokia N82
  134. * Fri Sep 26 2008 Linus Walleij <triad@df.lth.se> 0.3.3-1
  135. - New upstream bugfix release.
  136. * Sat Sep 20 2008 Linus Walleij <triad@df.lth.se> 0.3.2-1
  137. - New upstream version. (API and ABI compatible.) Fixes
  138. bugs on Creative devices.
  139. * Tue Aug 26 2008 Linus Walleij <triad@df.lth.se> 0.3.1-1
  140. - New upstream version. (API and ABI compatible.)
  141. * Thu Aug 7 2008 Linus Walleij <triad@df.lth.se> 0.3.0-1
  142. - Upgrade to 0.3.0. This has to happen some way, perhaps the
  143. painful way: I upgrade to gnomad2 2.9.2 that use 0.3.0 and
  144. then I write patches to Rhythmbox and Amarok to use 0.3.0
  145. and also send these upstream.
  146. * Fri Jul 11 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-3
  147. - Loose PAM console permissions, also assume that we can ship
  148. documentation again since Doxygen has been updated. Fedora
  149. HALd rules for the portable_audio_player capability in
  150. 20-acl-management.fdi will change permissions on the device
  151. node for each plugged-in device.
  152. * Fri May 23 2008 Adam Jackson <ajax@redhat.com> 0.2.6.1-2
  153. - libmtp-0.2.6.1-simpler-rules.patch: Simplify udev rules for faster bootup.
  154. * Sat Mar 8 2008 Linus Walleij <triad@df.lth.se> 0.2.6.1-1
  155. - New upstream bugfix release.
  156. * Sun Mar 2 2008 Linus Walleij <triad@df.lth.se> 0.2.6-1
  157. - New upstream release.
  158. * Sat Feb 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-2
  159. - Rebuild for GCC 4.3.
  160. * Wed Jan 9 2008 Linus Walleij <triad@df.lth.se> 0.2.5-1
  161. - New upstream release.
  162. * Thu Nov 22 2007 Linus Walleij <triad@df.lth.se> 0.2.4-1
  163. - New upstream release.
  164. * Thu Oct 25 2007 Linus Walleij <triad@df.lth.se> 0.2.3-1
  165. - New upstream release.
  166. - New soname libmtp.so.7 so all apps using libmtp have to
  167. be recompiled, have fun.
  168. - If it works out we'll try to reserve a spot to backport
  169. this fixed version to F8 and F7 in a controlled manner.
  170. * Wed Oct 24 2007 Linus Walleij <triad@df.lth.se> 0.2.2-2
  171. - Flat out KILL the Doxygen HTML docs to resolve multiarch conflicts.
  172. Either upstream (that's me!) needs to work around the HTML files being
  173. different each time OR Doxygen must stop generating anchors that
  174. hash the system time, creating different files with each generation.
  175. Pre-generating the docs is deemed silly. (Someone will disagree.)
  176. * Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1
  177. - New upstream release.
  178. * Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.1-2
  179. - License field update from LGPL to LGPLv2+
  180. * Tue Aug 7 2007 Linus Walleij <triad@df.lth.se> 0.2.1-1
  181. - Upstream bugfix release.
  182. * Sat Aug 4 2007 Linus Walleij <triad@df.lth.se> 0.2.0-1
  183. - New upstream release.
  184. - Fixes (hopefully) the issues found by Harald.
  185. - Dependent apps will need to recompile and patch some minor code.
  186. * Mon Jul 30 2007 Harald Hoyer <harald@redhat.com> - 0.1.5-2
  187. - changed udev rules for new kernel and udev versions
  188. * Mon Mar 26 2007 Linus Walleij <triad@df.lth.se> 0.1.5-1
  189. - New upstream release.
  190. - Candidate for FC5, FC6 backport.
  191. - Hopefully API/ABI compatible, testing in devel tree.
  192. * Wed Mar 7 2007 Linus Walleij <triad@df.lth.se> 0.1.4-1
  193. - New upstream release.
  194. - Candidate for FC5, FC6 backport.
  195. - Hopefully API/ABI compatible, testing in devel tree.
  196. * Wed Jan 17 2007 Linus Walleij <triad@df.lth.se> 0.1.3-1
  197. - New upstream release.
  198. - Candidate for FC5, FC6 backport.
  199. * Thu Dec 7 2006 Linus Walleij <triad@df.lth.se> 0.1.0-1
  200. - New upstream release.
  201. - Start providing HAL rules.
  202. * Fri Oct 20 2006 Linus Walleij <triad@df.lth.se> 0.0.21-1
  203. - New upstream release.
  204. * Tue Sep 26 2006 Linus Walleij <triad@df.lth.se> 0.0.20-1
  205. - New upstream release.
  206. - Updated after review by Parag AN, Kevin Fenzi and Ralf Corsepius.
  207. - Fixed pkgconfig bug upstream after being detected by Ralf...
  208. * Sun Aug 27 2006 Linus Walleij <triad@df.lth.se> 0.0.15-1
  209. - New upstream release.
  210. * Wed Aug 23 2006 Linus Walleij <triad@df.lth.se> 0.0.13-1
  211. - First RPM'ed