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