forked from pool/isight-firmware-tools
65 lines
1.6 KiB
RPMSpec
65 lines
1.6 KiB
RPMSpec
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
Name: isight-firmware-tools
|
||
|
Version: 1.6
|
||
|
Release: 1
|
||
|
License: GPLv2
|
||
|
Summary: Tools to manipulate firmware for Built-in iSight
|
||
|
Url: http://bersace03.free.fr/ift/
|
||
|
Group: Amusements/Toys/Graphics
|
||
|
Source: isight-firmware-tools-%{version}.tar.gz
|
||
|
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
|
||
|
|
||
|
%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
|
||
|
%{_libdir}/udev/ift-load
|
||
|
%doc %{_datadir}/doc/packages/%{name}/HOWTO
|
||
|
%{_infodir}/*
|
||
|
%{_mandir}/man1/*.1%{ext_man}
|
||
|
%changelog
|