isight-firmware-tools-vl.spec 4.5 KB

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