]> git.pld-linux.org Git - packages/cups-driver-splix.git/blob - cups-driver-splix.spec
- initial
[packages/cups-driver-splix.git] / cups-driver-splix.spec
1 Summary:        A set of CUPS printer drivers for SPL (Samsung Printer Language) printers
2 Name:           cups-driver-splix
3 Version:        1.1.1
4 Release:        0.1
5 License:        GPL
6 Group:          Applications
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
11 Requires:       cups
12 Requires:       cups-clients
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
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
20
21 %description
22 Splix is a driver for printers that speak SPL (Samsung Printer
23 Language). This includes printers made by Samsung and several Xerox
24 printers.
25
26 %package samsung
27 Summary:        Splix Samsung drivers to CUPS
28 Group:          Applications
29 Requires:       cups-driver-splix = %{version}
30
31 %description samsung
32 Splix Samsung drivers to CUPS
33
34 %package xerox
35 Summary:        Splix Xerox drivers to CUPS
36 Group:          Applications
37 Requires:       cups-driver-splix = %{version}
38
39 %description xerox
40 Splix Xerox drivers to CUPS
41
42 %package dell
43 Summary:        Splix Dell drivers to CUPS
44 Group:          Applications
45 Requires:       cups-driver-splix = %{version}
46
47 %description dell
48 Splix Dell drivers to CUPS
49
50
51
52 %prep
53 %setup -q -n splix-%{version}
54
55 %build
56 %{__make} DISABLE_JBIG=1
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_cupsfilterdir}
61 install src/rastertospl2 $RPM_BUILD_ROOT%{_cupsfilterdir}
62 ## samsung drivers
63 install -d $RPM_BUILD_ROOT%{_cupsppddir}/samsung
64 cp ppd/{cl{p,x}*,ml*} $RPM_BUILD_ROOT%{_cupsppddir}/samsung
65 ## xerox drivers
66 install -d $RPM_BUILD_ROOT%{_cupsppddir}/xerox
67 cp ppd/ph* $RPM_BUILD_ROOT%{_cupsppddir}/xerox
68 ## dell drivers
69 install -d $RPM_BUILD_ROOT%{_cupsppddir}/dell
70 cp ppd/1100* $RPM_BUILD_ROOT%{_cupsppddir}/dell
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75
76
77 %files
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog INSTALL README THANKS TODO
80 %attr(755,root,root) %{_cupsfilterdir}/rastertospl2
81
82 %files samsung
83 %defattr(644,root,root,755)
84 %dir %{_cupsppddir}/samsung
85 %{_cupsppddir}/samsung/*
86
87
88 %files xerox
89 %defattr(644,root,root,755)
90 %dir %{_cupsppddir}/xerox
91 %{_cupsppddir}/xerox/*
92
93 %files dell
94 %defattr(644,root,root,755)
95 %dir %{_cupsppddir}/dell
96 %{_cupsppddir}/dell/*
This page took 0.066638 seconds and 4 git commands to generate.