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 Patch0: %{name}-optflags.patch
10 URL: http://splix.sourceforge.net/
11 BuildRequires: cups-devel
13 Requires: cups-clients
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _datadir %(cups-config --datadir 2>/dev/null)
17 %define _libdir %(cups-config --serverbin 2>/dev/null)
18 %define _cupsppddir %{_datadir}/model
19 %define _cupsfilterdir %{_libdir}/filter
20 %define _cupsfontsdir %{_datadir}/fonts
23 Splix is a driver for printers that speak SPL (Samsung Printer
24 Language). This includes printers made by Samsung and several Xerox
28 Summary: Splix Samsung drivers to CUPS
30 Requires: %{name} = %{version}-%{release}
33 Splix Samsung drivers to CUPS
36 Summary: Splix Xerox drivers to CUPS
38 Requires: %{name} = %{version}-%{release}
41 Splix Xerox drivers to CUPS
44 Summary: Splix Dell drivers to CUPS
46 Requires: %{name} = %{version}-%{release}
49 Splix Dell drivers to CUPS
52 %setup -q -n splix-%{version}
58 OPTCXXFLAGS="%{rpmcxxflags}" \
59 OPTLDFLAGS="%{rpmldflags} %{rpmcxxflags}" \
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_cupsfilterdir}
65 install src/rastertospl2 $RPM_BUILD_ROOT%{_cupsfilterdir}
67 install -d $RPM_BUILD_ROOT%{_cupsppddir}/samsung
68 cp -a ppd/{cl{p,x}*,ml*} $RPM_BUILD_ROOT%{_cupsppddir}/samsung
70 install -d $RPM_BUILD_ROOT%{_cupsppddir}/xerox
71 cp -a ppd/ph* $RPM_BUILD_ROOT%{_cupsppddir}/xerox
73 install -d $RPM_BUILD_ROOT%{_cupsppddir}/dell
74 cp -a ppd/1100* $RPM_BUILD_ROOT%{_cupsppddir}/dell
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog INSTALL README THANKS TODO
82 %attr(755,root,root) %{_cupsfilterdir}/rastertospl2
85 %defattr(644,root,root,755)
86 %dir %{_cupsppddir}/samsung
87 %{_cupsppddir}/samsung/*
90 %defattr(644,root,root,755)
91 %dir %{_cupsppddir}/xerox
92 %{_cupsppddir}/xerox/*
95 %defattr(644,root,root,755)
96 %dir %{_cupsppddir}/dell