libmtp-vl.spec 8.7 KB

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