libmtp-vl.spec 8.5 KB

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