File RicohAficioSP1xx-2xx-PPD.spec of Package RicohAficioSP1xx-2xx-PPD

# spec file for Ricoh Aficio SP1xx and 2xx printers
# Copyright (c) 2014 James Bottomley
Name:           RicohAficioSP1xx-2xx-PPD
Version:        0.1.1.gef4c12d
Release:        1
Summary:        Ricoh Aficio SP 100 and SP 204 PPD and filters
License:        MIT
Group:          Hardware/Printing
Source:         %{name}-%{version}.tar.gz
Patch1:		0001-pstoricohddst-gdi-Implement-dot-counts.patch
Patch2:		0002-pstoricohddst-gdi-make-DEBUG-an-environment-variable.patch
Patch3:		0003-sp204-add-hack-to-make-cartridges-last-longer.patch
BuildArch:	noarch

BuildRequires:	cups

Requires:	jbigkit
Requires:	ImageMagick
Requires:	ghostscript


PPD files and filters for the DDST printers in the Ricoh Aficio SP 1xx and 2xx
series of windows only printers

%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1



# Have to ignore the filters here, because it fails if not root owned
for f in `find %{buildroot}/usr/share/cups/model/RicohAficioSP1xx-2xx-PPDs -name \*.ppd -print`; do
    cupstestppd -R %{buildroot} -I filters $f

install -d %{buildroot}/usr/lib/cups/filter/
install -m 0555 pstoricohddst-gdi %{buildroot}/usr/lib/cups/filter/
install -d %{buildroot}/usr/share/cups/model/RicohAficioSP1xx-2xx-PPDs/ricoh/
install -m 0644 RICOH_Aficio_SP_100.ppd %{buildroot}/usr/share/cups/model/RicohAficioSP1xx-2xx-PPDs/ricoh/
install -m 0644 RICOH_Aficio_SP_204.ppd %{buildroot}/usr/share/cups/model/RicohAficioSP1xx-2xx-PPDs/ricoh/

%dir /usr/lib/cups
%dir /usr/share/cups

* Tue Jul 22 2014
- Initial add