usbmuxd-vl.spec 3.2 KB

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