libimobiledevice-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. Name: libimobiledevice
  2. Version: 1.0.0
  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): Development package for libimobiledevice
  29. Group: Development/Libraries
  30. Requires: libimobiledevice = %{version}-%{release}
  31. Requires: pkgconfig
  32. Provides: libiphone-devel = %{version}
  33. Obsoletes: libiphone-devel < 0.9.7
  34. %description devel
  35. Files for development with libimobiledevice.
  36. %package python
  37. Summary: Python bindings for libimobiledevice
  38. Summary(ja): Python bindings for libimobiledevice
  39. Group: Development/Libraries
  40. Requires: libimobiledevice = %{version}-%{release}
  41. Requires: pkgconfig
  42. Provides: libiphone-python = %{version}
  43. Obsoletes: libiphone-python < 0.9.7
  44. %description python
  45. Python bindings for libimobiledevice.
  46. %prep
  47. %setup -q
  48. %patch0 -p1 -b .fixdso
  49. # Fix dir permissions on html docs
  50. chmod +x docs/html
  51. %build
  52. %configure --disable-static
  53. # Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
  54. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  55. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  56. make %{?_smp_mflags} V=1
  57. %install
  58. rm -rf %{buildroot}
  59. make install DESTDIR=%{buildroot}
  60. #Remove libtool archives.
  61. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  62. %clean
  63. rm -rf %{buildroot}
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %files
  67. %defattr(-,root,root,-)
  68. %doc AUTHORS COPYING.LESSER README
  69. %doc %{_datadir}/man/man1/idevice*
  70. %{_bindir}/idevice*
  71. %{_libdir}/libimobiledevice.so.1
  72. %{_libdir}/libimobiledevice.so.1.0.0
  73. %files devel
  74. %defattr(-,root,root,-)
  75. %doc docs/html/
  76. %{_libdir}/pkgconfig/libimobiledevice-1.0.pc
  77. %{_libdir}/libimobiledevice.so
  78. %{_includedir}/libimobiledevice/
  79. %files python
  80. %defattr(-,root,root,-)
  81. %{python_sitearch}/imobiledevice/
  82. %changelog
  83. * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  84. - initial build for Vine Linux
  85. * Sun Mar 21 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1
  86. - New upstream stable 1.0.0 release
  87. * Mon Feb 15 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-3
  88. - Add patch to fix DSO linking. Fixes bug 565084
  89. * Wed Feb 3 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-2
  90. - Package review updates, add developer docs
  91. * Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.7-1
  92. - New package for new library name. Update to 0.9.7
  93. * Sun Jan 24 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.6-1
  94. - Update to 0.9.6 release
  95. * Sat Jan 9 2010 Peter Robinson <pbrobinson@gmail.com> 0.9.5-3
  96. - Updated to the new python sysarch spec file reqs
  97. * Tue Dec 15 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.5-2
  98. - Update python bindings
  99. * Sat Dec 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.5-1
  100. - Update to 0.9.5 release for new usbmuxd/libplist 1.0.0 final
  101. * Sat Dec 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-3
  102. - Rebuild for libplist .so bump
  103. * Wed Oct 28 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-2
  104. - Update from libusb to libusb1
  105. * Wed Oct 28 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.4-1
  106. - Update to 0.9.4 release for new usbmuxd 1.0.0-rc1
  107. * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.3-1
  108. - Update to 0.9.3 release
  109. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
  110. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  111. * Wed May 13 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.1-2
  112. - Add new build reqs
  113. * Tue May 12 2009 Peter Robinson <pbrobinson@gmail.com> 0.9.1-1
  114. - Update to official 0.9.1 release
  115. * Fri Apr 03 2009 - Bastien Nocera <bnocera@redhat.com> - 0.1.0-11.20090325git443edc8
  116. - Update to latest master version
  117. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-10.20090103git5cde554
  118. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  119. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-9.git5cde554
  120. - Add back gnutls version patch
  121. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-8.git5cde554
  122. - Upload bzipped source file
  123. * Sat Jan 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.0-7.git5cde554
  124. - New git snapshot
  125. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-6.git8c3a01e
  126. - Fix devel dependency
  127. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-5.git8c3a01e
  128. - Fix gnutls check for new rawhide version
  129. * Mon Dec 5 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-4.git8c3a01e
  130. - Rebuild for pkgconfig
  131. * Tue Dec 2 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-3.git8c3a01e
  132. - Fix git file generation
  133. * Mon Dec 1 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-2.git8c3a01e
  134. - Updates for package review
  135. * Sat Nov 29 2008 Peter Robinson <pbrobinson@gmail.com> 0.1.0-1
  136. - Initial package