File epson-inkjet-printer-escpr.spec of Package epson-inkjet-printer-escpr
%define pkg epson-inkjet-printer-escpr
%define ver 1.7.4
%define rel 1
%if 0%{?suse_version}
%define cupsfilterdir /usr/lib/cups/filter
%define cupsppddir /usr/share/cups/model
%define cupslibdir /usr/lib/cups
%define cupssharedir /usr/share/cups
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%global optflags %optflags %{_lto_cflags}
BuildRequires: cups-devel
%else
%define cupsfilterdir /opt/epson-inkjet-printer-escpr/lib/cups/filter
%define cupsppddir /opt/epson-inkjet-printer-escpr/share/cups/model
%define cupslibdir /opt/epson-inkjet-printer-escpr/lib/cups
%define cupssharedir /opt/epson-inkjet-printer-escpr/share/cups
%endif
Name: %{pkg}
Version: %{ver}
Release: %{rel}
Source0: %{name}-%{version}-1lsb3.2.tar.gz
License: GPL
Vendor: Seiko Epson Corporation
URL: http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
Packager: Seiko Epson Corporation <linux-printer@epson.jp>
BuildRoot: %{_tmppath}/%{name}-%{version}-1
Group: Applications/System
Summary: Epson Inkjet Printer Driver (ESC/P-R) for Linux
%description
This software is a filter program used with Common UNIX Printing
System (CUPS) from the Linux. This can supply the high quality print
with Seiko Epson Color Ink Jet Printers.
This product supports only EPSON ESC/P-R printers. This package can be
used for all EPSON ESC/P-R printers.
For detail list of supported printer, please refer to below site:
http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
%prep
%setup -q
%build
%configure \
--host=%{_target} \
--with-cupsfilterdir=%{cupsfilterdir} \
--with-cupsppddir=%{cupsppddir}
make
%install
rm -rf ${RPM_BUILD_ROOT}
make install-strip DESTDIR=${RPM_BUILD_ROOT}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%clean
make clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README README.ja
%{cupsfilterdir}
%{_libdir}/libescpr.*
%{cupsppddir}/epson-inkjet-printer-escpr
%dir %{cupslibdir}
%dir %{cupssharedir}
%dir %{cupssharedir}/model