libimobiledevice-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. %bcond_with python
  2. Name: libimobiledevice
  3. Version: 1.2.0
  4. Release: 1%{?_dist_release}
  5. Summary: Library for connecting to mobile devices
  6. Summary(ja): モバイルデバイスに接続するためのライブラリ
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://www.libimobiledevice.org/
  10. Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: libxml2-devel
  13. BuildRequires: libusb1-devel
  14. BuildRequires: libtasn1-devel
  15. BuildRequires: libplist-devel >= 1.11
  16. BuildRequires: libplist-python
  17. BuildRequires: glib2-devel
  18. BuildRequires: gnutls-devel
  19. BuildRequires: python-devel
  20. %if %{with python}
  21. BuildRequires: Cython
  22. %endif
  23. BuildRequires: swig
  24. BuildRequires: libusbmuxd-devel >= 1.0.9
  25. BuildRequires: libgcrypt-devel
  26. #BuildRequires: readline-devel
  27. Provides: libiphone = %{version}
  28. Obsoletes: libiphone < 0.9.7
  29. Vendor: Project Vine
  30. Distribution: Vine Linux
  31. Packager: daisuke
  32. %description
  33. libimobiledevice is a library for connecting to mobile devices including phones
  34. and music players
  35. %package devel
  36. Summary: Development package for libimobiledevice
  37. Summary(ja): libimobiledevice の開発用パッケージ
  38. Group: Development/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. Provides: libiphone-devel = %{version}
  41. Obsoletes: libiphone-devel < 0.9.7
  42. %description devel
  43. Files for development with libimobiledevice.
  44. %package python
  45. Summary: Python bindings for libimobiledevice
  46. Summary(ja): libimobiledevice の Python バインディング
  47. Group: System Environment/Libraries
  48. Requires: %{name} = %{version}-%{release}
  49. Provides: libiphone-python = %{version}
  50. Obsoletes: libiphone-python < 0.9.7
  51. %description python
  52. Python bindings for libimobiledevice.
  53. %prep
  54. %setup -q
  55. # Fix dir permissions on html docs
  56. chmod +x docs/html
  57. %build
  58. %configure \
  59. --disable-static \
  60. --disable-openssl \
  61. %if %{with python}
  62. --without-cython \
  63. --without-python \
  64. %endif
  65. ;
  66. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  67. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  68. make %{?_smp_mflags} V=1
  69. %install
  70. rm -rf %{buildroot}
  71. make install DESTDIR=%{buildroot}
  72. #Remove libtool archives.
  73. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  74. %clean
  75. rm -rf %{buildroot}
  76. %post -p /sbin/ldconfig
  77. %postun -p /sbin/ldconfig
  78. %files
  79. %defattr(-,root,root,-)
  80. %doc AUTHORS COPYING.LESSER README
  81. %doc %{_datadir}/man/man1/idevice*
  82. %{_bindir}/idevice*
  83. %{_libdir}/libimobiledevice.so.*
  84. %files devel
  85. %defattr(-,root,root,-)
  86. %doc docs/html/
  87. %{_libdir}/pkgconfig/libimobiledevice-1.0.pc
  88. %{_libdir}/libimobiledevice.so
  89. %{_includedir}/libimobiledevice/
  90. %if %{with python}
  91. %files python
  92. %defattr(-,root,root,-)
  93. %{python_sitearch}/imobiledevice.so
  94. %endif
  95. %changelog
  96. * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.2.0-1
  97. - new upstream release
  98. * Tue Jul 08 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.1.6-1
  99. - update to 1.1.6
  100. - add BR: libusbmuxd-devel >= 1.0.9, libgcrypt-devel, readline-devel
  101. - disable python
  102. - disable openssl
  103. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.5-2
  104. - rebuild with VineSeed environment
  105. - add Patch2 (libimobiledevice-1.1.5-cython.patch)
  106. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.5-1
  107. - new upstream release
  108. * Sat Apr 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.4-1
  109. - new upstream release
  110. - add BuildRequires: openssl-devel, Cython
  111. - add Patch1 (libimobiledevice-1.1.4-pkgconfig.patch)
  112. * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-2
  113. - rebuild with python-2.7.2
  114. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-1
  115. - new upstream release
  116. * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-1
  117. - new upstream release
  118. * Tue Dec 28 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
  119. - new upstream release
  120. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.2-2
  121. - rebuilt with rpm-4.8.1 for pkg-config
  122. * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-1
  123. - new upstream release
  124. * Sat May 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-2
  125. - updated devel package Requires
  126. * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  127. - initial build for Vine Linux
  128. * Sun Mar 21 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1
  129. - New upstream stable 1.0.0 release
  130. * Mon Feb 15 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-3
  131. - Add patch to fix DSO linking. Fixes bug 565084
  132. * Wed Feb 3 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-2
  133. - Package review updates, add developer docs
  134. * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-1
  135. - New package for new library name. Update to 0.9.7
  136. * Sun Jan 24 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.6-1
  137. - Update to 0.9.6 release
  138. * Sat Jan 9 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.5-3
  139. - Updated to the new python sysarch spec file reqs
  140. * Tue Dec 15 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.5-2
  141. - Update python bindings
  142. * Sat Dec 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.5-1
  143. - Update to 0.9.5 release for new usbmuxd/libplist 1.0.0 final
  144. * Sat Dec 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-3
  145. - Rebuild for libplist .so bump
  146. * Wed Oct 28 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-2
  147. - Update from libusb to libusb1
  148. * Wed Oct 28 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-1
  149. - Update to 0.9.4 release for new usbmuxd 1.0.0-rc1
  150. * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.3-1
  151. - Update to 0.9.3 release
  152. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
  153. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  154. * Wed May 13 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.1-2
  155. - Add new build reqs
  156. * Tue May 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.1-1
  157. - Update to official 0.9.1 release
  158. * Fri Apr 03 2009 - Bastien Nocera <bnocera@redhat.com> - 0.1.0-11.20090325git443edc8
  159. - Update to latest master version
  160. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-10.20090103git5cde554
  161. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  162. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-9.git5cde554
  163. - Add back gnutls version patch
  164. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-8.git5cde554
  165. - Upload bzipped source file
  166. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-7.git5cde554
  167. - New git snapshot
  168. * Fri Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-6.git8c3a01e
  169. - Fix devel dependency
  170. * Fri Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-5.git8c3a01e
  171. - Fix gnutls check for new rawhide version
  172. * Fri Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-4.git8c3a01e
  173. - Rebuild for pkgconfig
  174. * Tue Dec 2 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-3.git8c3a01e
  175. - Fix git file generation
  176. * Mon Dec 1 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-2.git8c3a01e
  177. - Updates for package review
  178. * Sat Nov 29 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-1
  179. - Initial package