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

106 lines
2.9 KiB
RPMSpec

%define majver %(echo %{version}|cut -d. -f1-2)
Name: isight-firmware-tools
Version: 1.6
Release: 3mamba
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-compat-devel
## AUTOBUILDREQ-END
Requires(post): %{__install_info}
%description
A set of tool for isight firmware extraction from Mac OS X driver and loading for use with udev.
%debug_package
%prep
%setup -q
%patch 0 -p1
%build
%configure \
--libdir=%{_prefix}/lib \
--enable-udev \
--disable-hal \
udevdir=%{_prefix}/lib/udev
%make exec_prefix=
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall libudevdir=%{_prefix}/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}
rm -f %{buildroot}%{_infodir}/dir
%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
%{_prefix}/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*
%{_mandir}/man1/ift-export.1*
%{_mandir}/man1/ift-extract.1*
%doc AUTHORS COPYING
#ChangeLog
# NEWS README
%changelog
* Thu Nov 02 2023 Automatic Build System <autodist@mambasoft.it> 1.6-3mamba
- automatic rebuild by autodist
* 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