# # spec file for package isight-firmware-tools # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: isight-firmware-tools Version: 1.6 Release: 0 Summary: Tools to manipulate firmware for Built-in iSight License: GPL-2.0 Group: Amusements/Toys/Graphics Url: http://bersace03.free.fr/ift/ Source: isight-firmware-tools-%{version}.tar.gz Patch0: isight-firmware-tools-older_isight-1.6.0.diff Patch1: isight-ft-udev.patch BuildRequires: automake BuildRequires: gcc BuildRequires: intltool BuildRequires: libgcrypt-devel BuildRequires: libusb-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(udev) BuildRoot: %{_tmppath}/%{name}-%{version}-build %define _udevdir %(pkg-config --variable=udevdir udev) %define _udevrulesdir %{_udevdir}/rules.d %description This project provide tools to manipulate firmware for Built-in iSight found on Apple machine since iMac G5 iSight %prep %setup -q %patch0 -p1 %patch1 -p1 %build autoreconf -fiv %configure make %{?_smp_mflags} %install %makeinstall %find_lang %{name} rm -f %{buildroot}%{_infodir}/dir mkdir -p %{buildroot}%{_docdir} mv %{buildroot}%{_datadir}/doc/isight-firmware-tools %{buildroot}%{_docdir}/isight-firmware-tools %clean rm -rf %{buildroot} %post /sbin/install-info %{_infodir}/ift-extract.info %{_infodir}/dir || : /sbin/install-info %{_infodir}/ift-export.info %{_infodir}/dir || : %preun if [ $1 = 0 ] ; then /sbin/install-info --delete %{_infodir}/ift-extract.info %{_infodir}/dir || : /sbin/install-info --delete %{_infodir}/ift-export.info %{_infodir}/dir || : fi %files -f %{name}.lang %defattr(-,root,root) %{_udevrulesdir}/isight.rules %dir %{_datadir}/doc/packages/%{name} %{_bindir}/ift-export %{_bindir}/ift-extract %{_udevdir}/ift-load %doc %{_datadir}/doc/packages/%{name}/HOWTO %{_infodir}/* %{_mandir}/man1/*.1%{ext_man} %changelog