1 Summary: A set of CUPS printer drivers for SPL (Samsung Printer Language) printers
2 Name: cups-driver-splix
7 Source0: http://dl.sourceforge.net/splix/splix-%{version}.tar.bz2
8 # Source0-md5: 13af25dd72aae68b39eaf557d62957a5
9 URL: http://splix.sourceforge.net/
10 BuildRequires: cups-devel
12 Requires: cups-clients
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _datadir %(cups-config --datadir 2>/dev/null)
16 %define _libdir %(cups-config --serverbin 2>/dev/null)
17 %define _cupsppddir %{_datadir}/model
18 %define _cupsfilterdir %{_libdir}/filter
19 %define _cupsfontsdir %{_datadir}/fonts
22 Splix is a driver for printers that speak SPL (Samsung Printer
23 Language). This includes printers made by Samsung and several Xerox
27 Summary: Splix Samsung drivers to CUPS
29 Requires: cups-driver-splix = %{version}
32 Splix Samsung drivers to CUPS
35 Summary: Splix Xerox drivers to CUPS
37 Requires: cups-driver-splix = %{version}
40 Splix Xerox drivers to CUPS
43 Summary: Splix Dell drivers to CUPS
45 Requires: cups-driver-splix = %{version}
48 Splix Dell drivers to CUPS
53 %setup -q -n splix-%{version}
56 %{__make} DISABLE_JBIG=1
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_cupsfilterdir}
61 install src/rastertospl2 $RPM_BUILD_ROOT%{_cupsfilterdir}
63 install -d $RPM_BUILD_ROOT%{_cupsppddir}/samsung
64 cp ppd/{cl{p,x}*,ml*} $RPM_BUILD_ROOT%{_cupsppddir}/samsung
66 install -d $RPM_BUILD_ROOT%{_cupsppddir}/xerox
67 cp ppd/ph* $RPM_BUILD_ROOT%{_cupsppddir}/xerox
69 install -d $RPM_BUILD_ROOT%{_cupsppddir}/dell
70 cp ppd/1100* $RPM_BUILD_ROOT%{_cupsppddir}/dell
73 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog INSTALL README THANKS TODO
80 %attr(755,root,root) %{_cupsfilterdir}/rastertospl2
83 %defattr(644,root,root,755)
84 %dir %{_cupsppddir}/samsung
85 %{_cupsppddir}/samsung/*
89 %defattr(644,root,root,755)
90 %dir %{_cupsppddir}/xerox
91 %{_cupsppddir}/xerox/*
94 %defattr(644,root,root,755)
95 %dir %{_cupsppddir}/dell