libimobiledevice-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. Name: libimobiledevice
  2. Version: 1.0.2
  3. Release: 2%{?_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. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.2-2
  88. - rebuilt with rpm-4.8.1 for pkg-config
  89. * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-1
  90. - new upstream release
  91. * Sat May 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-2
  92. - updated devel package Requires
  93. * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  94. - initial build for Vine Linux
  95. * Sun Mar 21 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1
  96. - New upstream stable 1.0.0 release
  97. * Mon Feb 15 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-3
  98. - Add patch to fix DSO linking. Fixes bug 565084
  99. * Wed Feb 3 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-2
  100. - Package review updates, add developer docs
  101. * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-1
  102. - New package for new library name. Update to 0.9.7
  103. * Sun Jan 24 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.6-1
  104. - Update to 0.9.6 release
  105. * Sat Jan 9 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.5-3
  106. - Updated to the new python sysarch spec file reqs
  107. * Tue Dec 15 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.5-2
  108. - Update python bindings
  109. * Sat Dec 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.5-1
  110. - Update to 0.9.5 release for new usbmuxd/libplist 1.0.0 final
  111. * Sat Dec 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-3
  112. - Rebuild for libplist .so bump
  113. * Wed Oct 28 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-2
  114. - Update from libusb to libusb1
  115. * Wed Oct 28 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-1
  116. - Update to 0.9.4 release for new usbmuxd 1.0.0-rc1
  117. * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.3-1
  118. - Update to 0.9.3 release
  119. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
  120. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  121. * Wed May 13 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.1-2
  122. - Add new build reqs
  123. * Tue May 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.1-1
  124. - Update to official 0.9.1 release
  125. * Fri Apr 03 2009 - Bastien Nocera <bnocera@redhat.com> - 0.1.0-11.20090325git443edc8
  126. - Update to latest master version
  127. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-10.20090103git5cde554
  128. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  129. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-9.git5cde554
  130. - Add back gnutls version patch
  131. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-8.git5cde554
  132. - Upload bzipped source file
  133. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-7.git5cde554
  134. - New git snapshot
  135. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-6.git8c3a01e
  136. - Fix devel dependency
  137. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-5.git8c3a01e
  138. - Fix gnutls check for new rawhide version
  139. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-4.git8c3a01e
  140. - Rebuild for pkgconfig
  141. * Tue Dec 2 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-3.git8c3a01e
  142. - Fix git file generation
  143. * Mon Dec 1 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-2.git8c3a01e
  144. - Updates for package review
  145. * Sat Nov 29 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-1
  146. - Initial package