isight-firmware-tools-vl.spec 4.3 KB

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