isight-firmware-tools/isight-firmware-tools.spec

97 lines
2.8 KiB
RPMSpec
Raw Normal View History

%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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 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 <silvan.calarco@mambasoft.it> 1.6-1mamba
- update to 1.6
* Wed Jul 21 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.93-1mamba
- update to 1.5.93
* Tue Aug 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-2mamba
- remove previous workaround of udev rule file to fix path of ift-load
* Mon Aug 03 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-1mamba
- update to 1.4.2
* Thu May 21 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.1-1mamba
- update to 1.4.1
* Mon Apr 14 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
- package created by autospec