usbmuxd-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. Name: usbmuxd
  2. Version: 1.0.4
  3. Release: 3%{?_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. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.4-3
  64. - rebuilt with rpm-4.8.1 for pkg-config
  65. * Sun Jun 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-2
  66. - set the owner of the device node to be usbmuxd
  67. * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
  68. - new upstream release
  69. * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-1
  70. - initial build for Vine Linux
  71. * Mon Mar 22 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.3-1
  72. - New stable 1.0.3 release
  73. * Thu Feb 11 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.2-1
  74. - New stable 1.0.2 release
  75. * Tue Feb 09 2010 Bastien Nocera <bnocera@redhat.com> 1.0.0-3
  76. - Use the gid/uid reserved for usbmuxd in setup 2.8.15 and above
  77. * Fri Jan 29 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-2
  78. - Run deamon under the usbmuxd user
  79. * Mon Dec 7 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1
  80. - New stable 1.0.0 release
  81. * Sat Oct 31 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc2
  82. - New 1.0.0-rc2 test release
  83. * Thu Oct 29 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.2.rc1
  84. - Add patch to fix install of 64 bit libs
  85. * Tue Oct 27 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc1
  86. - New 1.0.0-rc1 test release
  87. * Fri Aug 14 2009 Bastien Nocera <bnocera@redhat.com> 0.1.4-2
  88. - Make usbmuxd autostart on newer kernels
  89. - (Still doesn't exit properly though)
  90. * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.4-1
  91. - Update to 0.1.4
  92. * Tue Aug 4 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.3-1
  93. - Update to 0.1.3, review input
  94. * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-1
  95. - Update to 0.1.2
  96. * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.1-1
  97. - Initial packaging