usbmuxd-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. Summary: Daemon for communicating with Apple's iPod Touch and iPhone
  2. Summary(ja): Apple の iPod Touch や iPhone と通信するためのデーモン
  3. Name: usbmuxd
  4. Version: 1.0.8
  5. Release: 1%{?_dist_release}
  6. Group: Applications/System
  7. # All code is dual licenses as GPLv3+ or GPLv2+, except libusbmuxd which is LGPLv2+.
  8. License: GPLv3+ or GPLv2+ and LGPLv2+
  9. URL: http://marcansoft.com/uploads/
  10. Source0: http://marcansoft.com/uploads/usbmuxd/%{name}-%{version}.tar.bz2
  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. Summary(ja): %{name} の開発パッケージ
  22. Group: Development/Libraries
  23. Requires: usbmuxd = %{version}-%{release}
  24. Requires: pkgconfig
  25. Requires: libusb1-devel
  26. %description devel
  27. Files for development with %{name}.
  28. %prep
  29. %setup -q
  30. # Set the owner of the device node to be usbmuxd
  31. sed -i.owner 's/ATTR{idVendor}=="05ac"/OWNER="usbmuxd", ATTR{idVendor}=="05ac"/' udev/85-usbmuxd.rules.in
  32. sed -i.user 's/-U usbmux/-U usbmuxd/' udev/85-usbmuxd.rules.in
  33. %build
  34. export CMAKE_PREFIX_PATH=/usr
  35. %{cmake} .
  36. make %{?_smp_mflags}
  37. %install
  38. export CMAKE_PREFIX_PATH=/usr$RPM_BUILD_ROOT
  39. rm -rf $RPM_BUILD_ROOT
  40. make install DESTDIR=$RPM_BUILD_ROOT
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %pre
  44. getent group usbmuxd >/dev/null || groupadd -r usbmuxd
  45. getent passwd usbmuxd >/dev/null || \
  46. useradd -r -g usbmuxd -d / -s /sbin/nologin \
  47. -c "usbmuxd user" usbmuxd
  48. exit 0
  49. %post -p /sbin/ldconfig
  50. %postun -p /sbin/ldconfig
  51. %files
  52. %defattr(-,root,root,-)
  53. %doc AUTHORS README COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 README.devel
  54. /lib/udev/rules.d/85-usbmuxd.rules
  55. %{_bindir}/iproxy
  56. %{_sbindir}/usbmuxd
  57. %{_libdir}/libusbmuxd.so.*
  58. %files devel
  59. %defattr(-,root,root,-)
  60. %doc README.devel
  61. %{_includedir}/*.h
  62. %{_libdir}/libusbmuxd.so
  63. %{_libdir}/pkgconfig/libusbmuxd.pc
  64. %changelog
  65. * Sat Apr 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1
  66. - new upstream release
  67. * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.7-1
  68. - new upstream release
  69. * Tue Dec 28 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-1
  70. - new upstream release
  71. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.4-3
  72. - rebuilt with rpm-4.8.1 for pkg-config
  73. * Sun Jun 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-2
  74. - set the owner of the device node to be usbmuxd
  75. * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
  76. - new upstream release
  77. * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-1
  78. - initial build for Vine Linux
  79. * Mon Mar 22 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.3-1
  80. - New stable 1.0.3 release
  81. * Thu Feb 11 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.2-1
  82. - New stable 1.0.2 release
  83. * Tue Feb 09 2010 Bastien Nocera <bnocera@redhat.com> 1.0.0-3
  84. - Use the gid/uid reserved for usbmuxd in setup 2.8.15 and above
  85. * Fri Jan 29 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-2
  86. - Run deamon under the usbmuxd user
  87. * Mon Dec 7 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1
  88. - New stable 1.0.0 release
  89. * Sat Oct 31 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc2
  90. - New 1.0.0-rc2 test release
  91. * Thu Oct 29 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.2.rc1
  92. - Add patch to fix install of 64 bit libs
  93. * Tue Oct 27 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc1
  94. - New 1.0.0-rc1 test release
  95. * Fri Aug 14 2009 Bastien Nocera <bnocera@redhat.com> 0.1.4-2
  96. - Make usbmuxd autostart on newer kernels
  97. - (Still doesn't exit properly though)
  98. * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.4-1
  99. - Update to 0.1.4
  100. * Tue Aug 4 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.3-1
  101. - Update to 0.1.3, review input
  102. * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-1
  103. - Update to 0.1.2
  104. * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.1-1
  105. - Initial packaging