usbmuxd-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Name: usbmuxd
  2. Version: 1.0.4
  3. Release: 2%{?_dist_release}
  4. Summary: Daemon for communicating with Apple's iPod Touch and iPhone
  5. Group: Applications/System
  6. # All code is dual licenses as GPLv3+ or GPLv2+, except libusbmuxd which is LGPLv2+.
  7. License: GPLv3+ or GPLv2+ and LGPLv2+
  8. URL: http://marcansoft.com/uploads/
  9. Source0: http://marcansoft.com/uploads/usbmuxd/%{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: libusb1-devel
  12. BuildRequires: cmake
  13. Requires(pre): shadow-utils
  14. %description
  15. usbmuxd is a daemon used for communicating with Apple's iPod Touch and iPhone
  16. devices. It allows multiple services on the device to be accessed
  17. simultaneously.
  18. %package devel
  19. Summary: Development package for %{name}
  20. Group: Development/Libraries
  21. Requires: usbmuxd = %{version}-%{release}
  22. Requires: pkgconfig
  23. Requires: libusb1-devel
  24. %description devel
  25. Files for development with %{name}.
  26. %prep
  27. %setup -q
  28. # Set the owner of the device node to be usbmuxd
  29. sed -i.owner 's/ATTR{idVendor}=="05ac"/OWNER="usbmuxd", ATTR{idVendor}=="05ac"/' udev/85-usbmuxd.rules.in
  30. sed -i.user 's/-U usbmux/-U usbmuxd/' udev/85-usbmuxd.rules.in
  31. %build
  32. export CMAKE_PREFIX_PATH=/usr
  33. %{cmake} .
  34. make %{?_smp_mflags}
  35. %install
  36. export CMAKE_PREFIX_PATH=/usr$RPM_BUILD_ROOT
  37. rm -rf $RPM_BUILD_ROOT
  38. make install DESTDIR=$RPM_BUILD_ROOT
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %pre
  42. getent group usbmuxd >/dev/null || groupadd -r usbmuxd -g 113
  43. getent passwd usbmuxd >/dev/null || \
  44. useradd -r -g usbmuxd -d / -s /sbin/nologin \
  45. -c "usbmuxd user" -u 113 usbmuxd
  46. exit 0
  47. %post -p /sbin/ldconfig
  48. %postun -p /sbin/ldconfig
  49. %files
  50. %defattr(-,root,root,-)
  51. %doc AUTHORS README COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 README.devel
  52. /lib/udev/rules.d/85-usbmuxd.rules
  53. %{_bindir}/iproxy
  54. %{_sbindir}/usbmuxd
  55. %{_libdir}/libusbmuxd.so.*
  56. %files devel
  57. %defattr(-,root,root,-)
  58. %doc README.devel
  59. %{_includedir}/*.h
  60. %{_libdir}/libusbmuxd.so
  61. %{_libdir}/pkgconfig/libusbmuxd.pc
  62. %changelog
  63. * Sun Jun 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-2
  64. - set the owner of the device node to be usbmuxd
  65. * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
  66. - new upstream release
  67. * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-1
  68. - initial build for Vine Linux
  69. * Mon Mar 22 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.3-1
  70. - New stable 1.0.3 release
  71. * Thu Feb 11 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.2-1
  72. - New stable 1.0.2 release
  73. * Tue Feb 09 2010 Bastien Nocera <bnocera@redhat.com> 1.0.0-3
  74. - Use the gid/uid reserved for usbmuxd in setup 2.8.15 and above
  75. * Fri Jan 29 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-2
  76. - Run deamon under the usbmuxd user
  77. * Mon Dec 7 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1
  78. - New stable 1.0.0 release
  79. * Sat Oct 31 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc2
  80. - New 1.0.0-rc2 test release
  81. * Thu Oct 29 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.2.rc1
  82. - Add patch to fix install of 64 bit libs
  83. * Tue Oct 27 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc1
  84. - New 1.0.0-rc1 test release
  85. * Fri Aug 14 2009 Bastien Nocera <bnocera@redhat.com> 0.1.4-2
  86. - Make usbmuxd autostart on newer kernels
  87. - (Still doesn't exit properly though)
  88. * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.4-1
  89. - Update to 0.1.4
  90. * Tue Aug 4 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.3-1
  91. - Update to 0.1.3, review input
  92. * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-1
  93. - Update to 0.1.2
  94. * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.1-1
  95. - Initial packaging