diff --git a/README.md b/README.md index 40ca6b6..39c0046 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # isight-firmware-tools +A set of tool for isight firmware extraction from Mac OS X driver and loading for use with udev. + diff --git a/isight-firmware-tools-1.6-fix_udev_rule.patch b/isight-firmware-tools-1.6-fix_udev_rule.patch new file mode 100644 index 0000000..ca21e50 --- /dev/null +++ b/isight-firmware-tools-1.6-fix_udev_rule.patch @@ -0,0 +1,6 @@ +diff -Nru isight-firmware-tools-1.6.orig/src/isight.rules.in.in isight-firmware-tools-1.6/src/isight.rules.in.in +--- isight-firmware-tools-1.6.orig/src/isight.rules.in.in 2011-05-01 19:17:49.000000000 +0200 ++++ isight-firmware-tools-1.6/src/isight.rules.in.in 2011-11-24 12:21:06.766887627 +0100 +@@ -1 +1 @@ +-ACTION=="add", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="8300", RUN+="@udevdir@/ift-load --firmware /lib/firmware/isight.fw" ++SUBSYSTEM=="usb", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="8300", RUN+="@udevdir@/ift-load --firmware /lib/firmware/isight.fw" diff --git a/isight-firmware-tools.spec b/isight-firmware-tools.spec new file mode 100644 index 0000000..73f6f52 --- /dev/null +++ b/isight-firmware-tools.spec @@ -0,0 +1,96 @@ +%define majver %(echo %{version}|cut -d. -f1-2) +Name: isight-firmware-tools +Version: 1.6 +Release: 2mamba +Summary: A set of tool for isight firmware extraction from Mac OS X driver +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://bersace03.free.fr/ift/ +Source: http://launchpad.net/isight-firmware-tools/main/1.6/%2Bdownload/isight-firmware-tools-%{version}.tar.gz +Patch0: %{name}-1.6-fix_udev_rule.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcrypt-devel +BuildRequires: libglib-devel +BuildRequires: libusb-devel +## AUTOBUILDREQ-END +Requires(post): %{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A set of tool for isight firmware extraction from Mac OS X driver and loading for use with udev. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure \ + --libdir=/lib \ + --enable-udev \ + --disable-hal \ + udevdir=/lib/udev +%make exec_prefix= + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall libudevdir=/lib/udev +mv %{buildroot}%{_sysconfdir}/udev/rules.d/isight.rules \ + %{buildroot}%{_sysconfdir}/udev/rules.d/45-isight.rules + +install -d %{buildroot}%{_sysconfdir}/modprobe.d +cat > %{buildroot}%{_sysconfdir}/modprobe.d/isight_firmware.conf << _EOF +blacklist isight_firmware +_EOF + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%install_info ift-extract.info + +%preun +%uninstall_info ift-extract.info + +%files -f %{name}.lang +%defattr(-,root,root) +%{_sysconfdir}/udev/rules.d/45-isight.rules +%{_sysconfdir}/modprobe.d/isight_firmware.conf +/lib/udev/ift-load +%{_bindir}/ift-export +%{_bindir}/ift-extract +%{_datadir}/doc/isight-firmware-tools/HOWTO +%{_datadir}/info/ift-export.info.gz +%{_infodir}/ift-extract.info.gz +%{_mandir}/man1/ift-export.1.gz +%{_mandir}/man1/ift-extract.1.gz +%doc AUTHORS COPYING ChangeLog +# NEWS README + +%changelog +* Thu Nov 24 2011 Silvan Calarco 1.6-2mamba +- fixed udev rule: don't call only on ACTION=add +- blacklist isight_firmware which (often) fails at loading firmware + +* Fri Aug 12 2011 Silvan Calarco 1.6-1mamba +- update to 1.6 + +* Wed Jul 21 2010 Silvan Calarco 1.5.93-1mamba +- update to 1.5.93 + +* Tue Aug 04 2009 Silvan Calarco 1.4.2-2mamba +- remove previous workaround of udev rule file to fix path of ift-load + +* Mon Aug 03 2009 Silvan Calarco 1.4.2-1mamba +- update to 1.4.2 + +* Thu May 21 2009 Silvan Calarco 1.4.1-1mamba +- update to 1.4.1 + +* Mon Apr 14 2008 Silvan Calarco 1.2-1mamba +- package created by autospec