usbmuxd-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. %bcond_with systemd
  2. Summary: Daemon for communicating with Apple's iPod Touch and iPhone
  3. Summary(ja): Apple の iPod Touch や iPhone と通信するためのデーモン
  4. Name: usbmuxd
  5. Version: 1.1.1
  6. Release: 1%{?_dist_release}%{?with_systemd:.systemd}
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. Packager: daisuke
  10. # All code is dual licenses as GPLv3+ or GPLv2+
  11. License: GPLv3+ or GPLv2+
  12. URL: https://libimobiledevice.org/
  13. Source0: https://github.com/libimobiledevice/usbmuxd/releases/download/%{version}/%{name}-%{version}.tar.bz2
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: libusb1-devel
  16. BuildRequires: libimobiledevice-devel
  17. BuildRequires: libplist-devel
  18. Requires(pre): shadow-utils
  19. Obsoletes: usbmuxd-devel < 1.0.9
  20. %if %{with systemd}
  21. BuildRequires: systemd-devel
  22. %{?systemd_requires}
  23. %else
  24. BuildRequires: eudev-libgudev1-devel
  25. Requires: eudev
  26. %endif
  27. %description
  28. usbmuxd is a daemon used for communicating with Apple's iPod Touch and iPhone
  29. devices. It allows multiple services on the device to be accessed
  30. simultaneously.
  31. %prep
  32. %setup -q
  33. # Set the owner of the device node to be usbmuxd
  34. sed -i.owner 's/OWNER="usbmux"/OWNER="usbmuxd"/' udev/39-usbmuxd.rules.in
  35. sed -i.user 's/-U usbmux/-U usbmuxd/' udev/39-usbmuxd.rules.in
  36. %build
  37. #NOCONFIGURE=1 ./autogen.sh
  38. %configure \
  39. --with-udevrulesdir=/lib/udev/rules.d \
  40. %if !%{with systemd}
  41. --without-systemd
  42. %endif
  43. %{nil}
  44. make %{?_smp_mflags}
  45. %install
  46. make install DESTDIR=$RPM_BUILD_ROOT
  47. rm -f %{buildroot}/usr/lib/udev/rules.d/39-usbmuxd.rules
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %pre
  51. getent group usbmuxd >/dev/null || groupadd -r usbmuxd
  52. getent passwd usbmuxd >/dev/null || \
  53. useradd -r -g usbmuxd -d / -s /sbin/nologin \
  54. -c "usbmuxd user" usbmuxd
  55. exit 0
  56. %if %{with systemd}
  57. %post
  58. %systemd_post usbmuxd.service
  59. %preun
  60. %systemd_preun usbmuxd.service
  61. %postun
  62. %systemd_postun_with_restart usbmuxd.service
  63. %endif
  64. %files
  65. %defattr(-,root,root,-)
  66. %license COPYING.GPLv2 COPYING.GPLv3
  67. %doc AUTHORS README.md
  68. /lib/udev/rules.d/39-usbmuxd.rules
  69. %{_sbindir}/usbmuxd
  70. %{_mandir}/man*/*
  71. %if %{with systemd}
  72. %{_unitdir}/usbmuxd.service
  73. %endif
  74. %changelog
  75. * Sun Aug 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.1-1
  76. - new upstream release.
  77. - added systemd support (disabled as default).
  78. * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.9-2
  79. - rebuilt with libimobiledevice 1.2.0 and libplist 1.12
  80. - added --without-systemd option
  81. * Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.0.9-1
  82. - update to 1.0.9
  83. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-2
  84. - rebuild with VineSeed environment
  85. * Sat Apr 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1
  86. - new upstream release
  87. * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.7-1
  88. - new upstream release
  89. * Tue Dec 28 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-1
  90. - new upstream release
  91. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.4-3
  92. - rebuilt with rpm-4.8.1 for pkg-config
  93. * Sun Jun 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-2
  94. - set the owner of the device node to be usbmuxd
  95. * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
  96. - new upstream release
  97. * Thu Apr 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-1
  98. - initial build for Vine Linux
  99. * Mon Mar 22 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.3-1
  100. - New stable 1.0.3 release
  101. * Thu Feb 11 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.2-1
  102. - New stable 1.0.2 release
  103. * Tue Feb 09 2010 Bastien Nocera <bnocera@redhat.com> 1.0.0-3
  104. - Use the gid/uid reserved for usbmuxd in setup 2.8.15 and above
  105. * Fri Jan 29 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.0-2
  106. - Run deamon under the usbmuxd user
  107. * Mon Dec 7 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-1
  108. - New stable 1.0.0 release
  109. * Sat Oct 31 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc2
  110. - New 1.0.0-rc2 test release
  111. * Thu Oct 29 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.2.rc1
  112. - Add patch to fix install of 64 bit libs
  113. * Tue Oct 27 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.0-0.1.rc1
  114. - New 1.0.0-rc1 test release
  115. * Fri Aug 14 2009 Bastien Nocera <bnocera@redhat.com> 0.1.4-2
  116. - Make usbmuxd autostart on newer kernels
  117. - (Still doesn't exit properly though)
  118. * Mon Aug 10 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.4-1
  119. - Update to 0.1.4
  120. * Tue Aug 4 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.3-1
  121. - Update to 0.1.3, review input
  122. * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-1
  123. - Update to 0.1.2
  124. * Mon Aug 3 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.1-1
  125. - Initial packaging