libimobiledevice-vl.spec 7.2 KB

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