libimobiledevice-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. Name: libimobiledevice
  2. Version: 1.0.2
  3. Release: 1%{?_dist_release}
  4. Summary: Library for connecting to mobile devices
  5. Summary(ja): モバイルデバイスに接続するためのライブラリ
  6. Group: System Environment/Libraries
  7. License: LGPLv2+
  8. URL: http://matt.colyer.name/projects/iphone-linux/
  9. Source0: http://cloud.github.com/downloads/MattColyer/libiphone/%{name}-%{version}.tar.bz2
  10. Patch0: libimobiledevice-fixdso.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: libxml2-devel
  13. BuildRequires: libusb1-devel
  14. BuildRequires: libtasn1-devel
  15. BuildRequires: libplist-devel
  16. BuildRequires: glib2-devel
  17. BuildRequires: gnutls-devel
  18. BuildRequires: python-devel
  19. BuildRequires: swig
  20. BuildRequires: usbmuxd-devel
  21. Provides: libiphone = %{version}
  22. Obsoletes: libiphone < 0.9.7
  23. %description
  24. libimobiledevice is a library for connecting to mobile devices including phones
  25. and music players
  26. %package devel
  27. Summary: Development package for libimobiledevice
  28. Summary(ja): libimobiledevice の開発用パッケージ
  29. Group: Development/Libraries
  30. Requires: libimobiledevice = %{version}-%{release}
  31. Requires: libplist-devel >= 0.12
  32. Requires: usbmuxd-devel >= 0.1.0
  33. Requires: glib2-devel >= 2.14.1
  34. Requires: gnutls-devel >= 1.6.3
  35. Requires: libtasn1-devel >= 1.1
  36. Requires: pkgconfig
  37. Provides: libiphone-devel = %{version}
  38. Obsoletes: libiphone-devel < 0.9.7
  39. %description devel
  40. Files for development with libimobiledevice.
  41. %package python
  42. Summary: Python bindings for libimobiledevice
  43. Summary(ja): libimobiledevice の Python バインディング
  44. Group: Development/Libraries
  45. Requires: libimobiledevice = %{version}-%{release}
  46. Requires: pkgconfig
  47. Provides: libiphone-python = %{version}
  48. Obsoletes: libiphone-python < 0.9.7
  49. %description python
  50. Python bindings for libimobiledevice.
  51. %prep
  52. %setup -q
  53. %patch0 -p1 -b .fixdso
  54. # Fix dir permissions on html docs
  55. chmod +x docs/html
  56. %build
  57. %configure --disable-static
  58. # Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
  59. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  60. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  61. make %{?_smp_mflags} V=1
  62. %install
  63. rm -rf %{buildroot}
  64. make install DESTDIR=%{buildroot}
  65. #Remove libtool archives.
  66. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  67. %clean
  68. rm -rf %{buildroot}
  69. %post -p /sbin/ldconfig
  70. %postun -p /sbin/ldconfig
  71. %files
  72. %defattr(-,root,root,-)
  73. %doc AUTHORS COPYING.LESSER README
  74. %doc %{_datadir}/man/man1/idevice*
  75. %{_bindir}/idevice*
  76. %{_libdir}/libimobiledevice.so.*
  77. %files devel
  78. %defattr(-,root,root,-)
  79. %doc docs/html/
  80. %{_libdir}/pkgconfig/libimobiledevice-1.0.pc
  81. %{_libdir}/libimobiledevice.so
  82. %{_includedir}/libimobiledevice/
  83. %files python
  84. %defattr(-,root,root,-)
  85. %{python_sitearch}/imobiledevice/
  86. %changelog
  87. * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-1
  88. - new upstream release
  89. * Sat May 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-2
  90. - updated devel package Requires
  91. * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  92. - initial build for Vine Linux
  93. * Sun Mar 21 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1
  94. - New upstream stable 1.0.0 release
  95. * Mon Feb 15 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-3
  96. - Add patch to fix DSO linking. Fixes bug 565084
  97. * Wed Feb 3 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-2
  98. - Package review updates, add developer docs
  99. * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-1
  100. - New package for new library name. Update to 0.9.7
  101. * Sun Jan 24 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.6-1
  102. - Update to 0.9.6 release
  103. * Sat Jan 9 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.5-3
  104. - Updated to the new python sysarch spec file reqs
  105. * Tue Dec 15 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.5-2
  106. - Update python bindings
  107. * Sat Dec 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.5-1
  108. - Update to 0.9.5 release for new usbmuxd/libplist 1.0.0 final
  109. * Sat Dec 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-3
  110. - Rebuild for libplist .so bump
  111. * Wed Oct 28 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-2
  112. - Update from libusb to libusb1
  113. * Wed Oct 28 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-1
  114. - Update to 0.9.4 release for new usbmuxd 1.0.0-rc1
  115. * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.3-1
  116. - Update to 0.9.3 release
  117. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
  118. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  119. * Wed May 13 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.1-2
  120. - Add new build reqs
  121. * Tue May 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.1-1
  122. - Update to official 0.9.1 release
  123. * Fri Apr 03 2009 - Bastien Nocera <bnocera@redhat.com> - 0.1.0-11.20090325git443edc8
  124. - Update to latest master version
  125. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-10.20090103git5cde554
  126. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  127. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-9.git5cde554
  128. - Add back gnutls version patch
  129. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-8.git5cde554
  130. - Upload bzipped source file
  131. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-7.git5cde554
  132. - New git snapshot
  133. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-6.git8c3a01e
  134. - Fix devel dependency
  135. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-5.git8c3a01e
  136. - Fix gnutls check for new rawhide version
  137. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-4.git8c3a01e
  138. - Rebuild for pkgconfig
  139. * Tue Dec 2 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-3.git8c3a01e
  140. - Fix git file generation
  141. * Mon Dec 1 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-2.git8c3a01e
  142. - Updates for package review
  143. * Sat Nov 29 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-1
  144. - Initial package