1
0
isight-firmware-tools/isight-firmware-tools.spec

85 lines
2.4 KiB
RPMSpec

#
# spec file for package isight-firmware-tools
#
# Copyright (c) 2012 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
BuildRequires: gcc
BuildRequires: intltool
BuildRequires: libgcrypt-devel
BuildRequires: libusb-devel
BuildRequires: pkgconfig(glib-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%build
%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)
%config %{_sysconfdir}/udev/rules.d/isight.rules
%dir %{_libdir}/udev
%dir %{_datadir}/doc/packages/%{name}
%{_bindir}/ift-export
%{_bindir}/ift-extract
%dir %{_libdir}/udev
%dir %{_sysconfdir}/udev/rules.d
%dir %{_sysconfdir}/udev
%{_libdir}/udev/ift-load
%doc %{_datadir}/doc/packages/%{name}/HOWTO
%{_infodir}/*
%{_mandir}/man1/*.1%{ext_man}
%changelog