# # SPEC file for Viceo backend for SANE # # Manual compilation and configuration instructions at: # # http://www.g-loaded.eu/2008/01/24/viceo-backend-for-sane-with-libusb-support/ # # DEFINITIONS %define base_name sane-backends %define sane_version 1.0.18 Name: viceo Summary: Sane Viceo backend for SANE for E3-chipset equipped scanners Version: 0.7 Release: rcnst.1 License: Distributable Group: System Environment/Libraries URL: ftp://ftp.sane-project.org/pub/sane/%{base_name}-%{sane_version}/%{base_name}-%{sane_version}.tar.gz Source0: %{base_name}-%{sane_version}.tar.gz Patch0: %{base_name}-%{sane_version}-viceo.diff Buildroot: %{_tmppath}/%{base_name}-%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Viceo backend for SANE for E3-chipset equipped scanners %package -n %{base_name}-%{name}-%{sane_version} Summary: Viceo backend for SANE for E3-chipset equipped scanners Group: System Environment/Libraries Requires: %{base_name} = %{sane_version} BuildRequires: libusb-devel Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description -n %{base_name}-%{name}-%{sane_version} Viceo backend for SANE for E3-chipset equipped scanners %package -n %{base_name}-%{name}-devel-%{sane_version} Summary: The development Libraries for %{base_name}-%{name} Group: Development/Libraries Requires: %{base_name}-%{name} = %{version}-%{release} Requires: %{base_name}-devel = %{sane_version} %description -n %{base_name}-%{name}-devel-%{sane_version} The development Libraries for %{base_name}-%{name} %prep %setup -q -n %{base_name}-%{sane_version} %patch0 -p1 -b .viceo %build export BACKENDS=%{name} %configure \ --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} unset BACKENDS %{__make} %install %{__rm} -fr %{buildroot} # Install Configs %{__mkdir} -p -m 0755 %{buildroot}%{_sysconfdir}/sane.d %{__install} -D -m 0644 backend/viceo.conf %{buildroot}%{_sysconfdir}/sane.d/ %{__install} -D -m 0644 backend/e1.ini %{buildroot}%{_sysconfdir}/sane.d/ %{__install} -D -m 0644 backend/lut.plg %{buildroot}%{_sysconfdir}/sane.d/ # Install Libraries (backend) %{__mkdir} -p -m 0755 %{buildroot}%{_libdir}/sane %{__install} -D -m 0755 backend/.libs/libsane-viceo.so.%{sane_version} %{buildroot}%{_libdir}/sane/ %{__ln_s} libsane-viceo.so.%{sane_version} %{buildroot}%{_libdir}/sane/libsane-viceo.so.1 %{__ln_s} libsane-viceo.so.%{sane_version} %{buildroot}%{_libdir}/sane/libsane-viceo.so %{__install} -D -m 0644 backend/libsane-viceo.la %{buildroot}%{_libdir}/sane/ %clean %{__rm} -fr %{buildroot} %post -n %{base_name}-%{name}-%{sane_version} /sbin/ldconfig %postun -n %{base_name}-%{name}-%{sane_version} /sbin/ldconfig %files -n %{base_name}-%{name}-%{sane_version} %defattr(-, root, root, 0755) %config(noreplace) %{_sysconfdir}/sane.d/viceo.conf %{_sysconfdir}/sane.d/e1.ini %{_sysconfdir}/sane.d/lut.plg %{_libdir}/sane/libsane-viceo.so.* %files -n %{base_name}-%{name}-devel-%{sane_version} %defattr(-, root, root, 0755) %{_libdir}/sane/libsane-viceo.so %exclude %{_libdir}/sane/libsane-viceo.la %changelog * Wed Jan 23 2008 George Notaras 0.7-rcnst.1 - Built for sane-backends 1.0.18 - The result of Steven Ellis' and Jimmy Nguyen's work is considered as the version 0.7 of the E3 driver (Viceo backend). - The sane-backends-1.0.14-viceo.diff was slightly modified by George Notaras (http://www.g-loaded.eu/) in order to work with SANE 1.0.18. The resulting patch (sane-backends-1.0.18-viceo.diff) is used for this RPM release (2008). The final patch does not include Jimmy's modifications to sanei/sanei_usb.c. - The libusb enabled version of the Viceo backend was released by Jimmy Nguyen in 2004.05.18 for SANE 1.0.14. - The 0.6 version of the E3 chipset driver (Viceo backend) was released by Steven Ellis (http://viceo.orcon.net.nz/) for SANE 1.0.9 in 2002. This version did not support libusb. - Initial SPEC file for RPM packaging by George Notaras. Manual installation: http://www.g-loaded.eu/2008/01/24/viceo-backend-for-sane-with-libusb-support/