libmtp-vl.spec 9.4 KB

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