]>
Commit | Line | Data |
---|---|---|
9a90237a ER |
1 | # TODO |
2 | # - name of spec and package? | |
3 | Summary: CLP-510 Linux Driver | |
4f664424 | 4 | Summary(pl.UTF-8): Linuksowy sterownik do CLP-510 |
9a90237a ER |
5 | Name: cups-driver-samsung |
6 | Version: 1.1.4 | |
7 | Release: 0.8 | |
8 | License: ? | |
9 | Group: Applications | |
10 | Source0: http://downloadcenter.samsung.com/content/DR/200503/20050322102424156_lpp-%{version}-19-i386.tar.gz | |
11 | # Source0-md5: 16b04c89a94378b4c8571c593f1ddcd3 | |
12 | Source1: http://downloadcenter.samsung.com/content/DR/200503/20050322102424156_lpp-%{version}-19-ppc.tar.gz | |
13 | # Source1-md5: d64b336d692718013099c5d72ffa7600 | |
14 | URL: http://www.samsung.com/Products/PrinterandMultifunction/ColorLaserPrinters/CLP_510XAA.asp | |
15 | BuildRequires: cups-devel | |
16 | Requires: cups | |
17 | Requires: cups-clients | |
18 | Obsoletes: cups-driver-clp-510 | |
19 | ExclusiveArch: %{ix86} ppc | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _datadir %(cups-config --datadir 2>/dev/null) | |
23 | %define _libdir %(cups-config --serverbin 2>/dev/null) | |
24 | %define _cupsppddir %{_datadir}/model | |
25 | %define _cupsfilterdir %{_libdir}/filter | |
26 | %define _cupsfontsdir %{_datadir}/fonts | |
27 | ||
28 | %description | |
143759bc JB |
29 | Linux driver for Samsung CLP-510 color laser printer which features |
30 | speeds of up to 6 ppm color, 25 ppm black and has built-in duplexing. | |
9a90237a | 31 | |
e43d5116 | 32 | %description -l pl.UTF-8 |
143759bc | 33 | Linuksowy sterownik do kolorowych drukarek laserowych Samsung CLP-510 |
e43d5116 | 34 | osiągających szybkość do 6 stron/minutę w kolorze lub 25 stron/minutę |
143759bc | 35 | w czerni, z wbudowanym dupleksem. |
9a90237a ER |
36 | |
37 | %prep | |
38 | %ifarch %{ix86} | |
39 | %setup -qcT -a0 | |
40 | %endif | |
41 | %ifarch ppc | |
42 | %setup -qcT -a1 | |
43 | %endif | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | cd image | |
48 | install -d $RPM_BUILD_ROOT{%{_cupsppddir},%{_cupsfilterdir},%{_cupsfontsdir},%{_sysconfdir}} | |
49 | ||
50 | #cp -a bin/Linux/x86/filters/* $RPM_BUILD_ROOT%{_cupsfilterdir} | |
51 | # duplicate with cups | |
52 | #rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/hpgltops | |
53 | #rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/imagetops | |
54 | #rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/pstops | |
55 | #rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/texttops | |
56 | # afaik PLD cups already has support for those | |
57 | #rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/*print | |
58 | ||
59 | # only these two needed? | |
60 | # http://www.linuxprinting.org/show_printer.cgi?recnum=Samsung-CLP-500 | |
61 | cp -a bin/Linux/x86/filters/{ppmtosplc,pscms} $RPM_BUILD_ROOT%{_cupsfilterdir} | |
62 | ||
63 | # perhaps the fonts should be from elsewhere? cups? | |
64 | cp -a data/fonts/{`cat <<EOF | xargs | tr ' ' ',' | |
65 | AvantGarde-Book | |
66 | AvantGarde-BookOblique | |
67 | AvantGarde-Demi | |
68 | AvantGarde-DemiOblique | |
69 | Bookman-Demi | |
70 | Bookman-DemiItalic | |
71 | Bookman-Light | |
72 | Bookman-LightItalic | |
73 | Charter-Bold | |
74 | Charter-BoldItalic | |
75 | Charter-Italic | |
76 | Charter-Roman | |
77 | Helvetica | |
78 | Helvetica-Bold | |
79 | Helvetica-BoldOblique | |
80 | Helvetica-Narrow | |
81 | Helvetica-Narrow-Bold | |
82 | Helvetica-Narrow-BoldOblique | |
83 | Helvetica-Narrow-Oblique | |
84 | Helvetica-Oblique | |
85 | NewCenturySchlbk-Bold | |
86 | NewCenturySchlbk-BoldItalic | |
87 | NewCenturySchlbk-Italic | |
88 | NewCenturySchlbk-Roman | |
89 | Palatino-Bold | |
90 | Palatino-BoldItalic | |
91 | Palatino-Italic | |
92 | Palatino-Roman | |
93 | Times-Bold | |
94 | Times-BoldItalic | |
95 | Times-Italic | |
96 | Times-Roman | |
97 | Utopia-Bold | |
98 | Utopia-BoldItalic | |
99 | Utopia-Italic | |
100 | Utopia-Regular | |
101 | ZapfChancery-MediumItalic | |
102 | ZapfDingbats | |
103 | EOF | |
104 | `} $RPM_BUILD_ROOT%{_cupsfontsdir} | |
105 | ||
106 | cp -a ppd/C/*.ppd $RPM_BUILD_ROOT%{_cupsppddir} | |
107 | ||
108 | # a config what ./bin/Linux/x86/cfggen generates | |
109 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/linuxprint.cfg <<'EOF' | |
110 | <?xml version="1.0"?> | |
111 | <linux root="/" system="cups"> | |
112 | <option name="ghostscript" value="/usr/bin/gs"/> | |
113 | <option name="address" value="localhost"/> | |
114 | <option name="port" value="631"/> | |
115 | <option name="lpr" value="/usr/bin/lp"/> | |
116 | <!-- | |
117 | <printer ppd="/usr/share/cups/model/CLP-510splc.ppd" queue="CLP-510"> | |
118 | <option name="Resolution" value="600"/> | |
119 | <option name="Duplex" value="None"/> | |
120 | <option name="PageSize" value="A4"/> | |
121 | <option name="InputSlot" value="AUTO"/> | |
122 | <option name="MediaType" value="Normal"/> | |
123 | <option name="JCLJamrecovery" value="RWJOff"/> | |
124 | </printer> | |
125 | --> | |
126 | </linux> | |
127 | EOF | |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %files | |
133 | %defattr(644,root,root,755) | |
134 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/linuxprint.cfg | |
135 | %attr(755,root,root) %{_cupsfilterdir}/* | |
136 | %{_cupsppddir}/* | |
137 | %{_cupsfontsdir}/* |