isight-firmware-tools-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. # use udev feature until things go right...
  2. %define with_hal 0
  3. Summary: Firmware extraction tools for Apple Built-in iSight camera
  4. Summary(ja): Apple 内蔵 iSight カメラ用ファームウェア抽出プログラム
  5. Name: isight-firmware-tools
  6. Version: 1.5.93
  7. Release: 1%{?_dist_release}
  8. License: GPLv2+
  9. Group: System Environment/Base
  10. URL: http://bersace03.free.fr/ift/
  11. Source0: %{name}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
  13. %if %{with_hal}
  14. Requires: hal
  15. %else
  16. Requires: udev
  17. %endif
  18. Requires(post): /sbin/install-info
  19. Requires(preun): /sbin/install-info
  20. BuildRequires: gettext
  21. BuildRequires: glib2-devel
  22. BuildRequires: libgcrypt-devel
  23. BuildRequires: libusb-devel
  24. %if %{with_hal}
  25. BuildRequires: hal-devel
  26. %else
  27. BuildRequires: udev
  28. %endif
  29. BuildRequires: perl(XML::Parser)
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. Packager: shaolin
  33. %description
  34. iSight Firmware Tools provide tools to manipulate firmware for Built-in iSight
  35. cameras found on Apple machines since iMac G5 (November 2005).
  36. Before using Built-in iSight on Linux, you will need to extract the
  37. firmware to /lib/firmware/isight.fw as:
  38. sudo ift-extract --apple-driver /path/to/AppleUSBVideoSupport
  39. AppleUSBVideoSupport driver file should be located in
  40. /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport
  41. on your Mac OS X root partition.
  42. %description -l ja
  43. iSight Firmware Tools を使って、2005年11月発売の iMac G5 以降の
  44. Apple 社製コンピュータに内蔵されている iSight カメラ用のファームウェアを
  45. 操作することができます。
  46. Linux で内蔵 iSight を使う前に、
  47. sudo ift-extract --apple-driver /path/to/AppleUSBVideoSupport
  48. という風に実行してファームウェアを /lib/firmware/isight.fw として
  49. 取り出す必要があります。この AppleUSBVideoSupport ドライバファイルは
  50. 通常 Mac OS X ルートパーティションの
  51. /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport
  52. に存在しているはずです。
  53. %prep
  54. %setup -q
  55. sed -i -e 's|@udevdir@|%{_libdir}/udev|g' src/isight.rules.in.in
  56. sed -i -e 's|SYSFS|ATTRS|g' src/isight.rules.in.in
  57. %build
  58. %if %{with_hal}
  59. %configure --enable-hal --disable-udev
  60. %else
  61. %configure --disable-hal --enable-udev
  62. %endif
  63. make %{?_smp_mflags}
  64. %install
  65. rm -rf $RPM_BUILD_ROOT
  66. make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
  67. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  68. # Use %doc instead.
  69. rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
  70. %find_lang %{name}
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT
  73. %post
  74. /sbin/install-info %{_infodir}/ift-export.info %{_infodir}/dir || :
  75. /sbin/install-info %{_infodir}/ift-extract.info %{_infodir}/dir || :
  76. %preun
  77. if [ $1 = 0 ]; then
  78. /sbin/install-info --delete %{_infodir}/ift-export.info %{_infodir}/dir || :
  79. /sbin/install-info --delete %{_infodir}/ift-extract.info %{_infodir}/dir || :
  80. fi
  81. %files -f %{name}.lang
  82. %defattr(-,root,root,-)
  83. %doc AUTHORS ChangeLog COPYING HOWTO NEWS README
  84. %{_bindir}/ift-export
  85. %{_bindir}/ift-extract
  86. %{_infodir}/ift-export.info.gz
  87. %{_infodir}/ift-extract.info.gz
  88. %if %{with_hal}
  89. %{_libdir}/hal/ift-callout
  90. %{_datadir}/hal/fdi/preprobe/20thirdparty/50-isight-firmware.fdi
  91. %else
  92. %{_libdir}/udev/ift-load
  93. %{_sysconfdir}/udev/rules.d/isight.rules
  94. %endif
  95. %{_mandir}/man1/ift-export.1.gz
  96. %{_mandir}/man1/ift-extract.1.gz
  97. %changelog
  98. * Thu Apr 14 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.5.93-1
  99. - updated to the newest beta release
  100. * Sat May 29 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.1-2
  101. - replace SYSFS{} with ATTRS{} in the udev file to avoid warning
  102. * Sat May 30 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.1-1
  103. - new upstream release
  104. * Thu Dec 4 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4-2
  105. - switch back to udev support, until hal support gets stable
  106. * Thu Dec 4 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4-1
  107. - new upstream release
  108. * Thu Sep 18 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2-4
  109. - now enable hal support; disable udev support
  110. * Fri May 30 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2-3
  111. - fix broken path in isight.rules
  112. * Mon May 26 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2-2
  113. - enable udev / disable hal (until Vine's udev gets updated enough)
  114. - import Patch10 (for MacBookAir) and Source10 (ja.po) from Debian package
  115. * Fri May 23 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2-1
  116. - initial build for Vine Linux
  117. - spec in UTF-8