- new; haven't got it working yet
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 4 May 2006 16:05:38 +0000 (16:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cups-driver-samsung.spec -> 1.1

cups-driver-samsung.spec [new file with mode: 0644]

diff --git a/cups-driver-samsung.spec b/cups-driver-samsung.spec
new file mode 100644 (file)
index 0000000..b8bca0a
--- /dev/null
@@ -0,0 +1,134 @@
+# TODO
+# - name of spec and package?
+Summary:       CLP-510 Linux Driver
+Name:          cups-driver-samsung
+Version:       1.1.4
+Release:       0.8
+License:       ?
+Group:         Applications
+Source0:       http://downloadcenter.samsung.com/content/DR/200503/20050322102424156_lpp-%{version}-19-i386.tar.gz
+# Source0-md5: 16b04c89a94378b4c8571c593f1ddcd3
+Source1:       http://downloadcenter.samsung.com/content/DR/200503/20050322102424156_lpp-%{version}-19-ppc.tar.gz
+# Source1-md5: d64b336d692718013099c5d72ffa7600
+URL:           http://www.samsung.com/Products/PrinterandMultifunction/ColorLaserPrinters/CLP_510XAA.asp
+BuildRequires: cups-devel
+Requires:      cups
+Requires:      cups-clients
+Obsoletes:     cups-driver-clp-510
+ExclusiveArch: %{ix86} ppc
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define        _datadir        %(cups-config --datadir 2>/dev/null)
+%define        _libdir         %(cups-config --serverbin 2>/dev/null)
+%define                _cupsppddir     %{_datadir}/model
+%define        _cupsfilterdir  %{_libdir}/filter
+%define        _cupsfontsdir   %{_datadir}/fonts
+
+%description
+This affordable color laser printer features speeds of up to 6 ppm
+color, 25 ppm black and has built-in duplexing.
+
+The Samsung CLP-510 makes printing jobs easier and faster with its
+fast printing speed of 25 ppm at letter size for monochrome printing.
+
+%prep
+%ifarch %{ix86}
+%setup -qcT -a0
+%endif
+%ifarch ppc
+%setup -qcT -a1
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd image
+install -d $RPM_BUILD_ROOT{%{_cupsppddir},%{_cupsfilterdir},%{_cupsfontsdir},%{_sysconfdir}}
+
+#cp -a bin/Linux/x86/filters/* $RPM_BUILD_ROOT%{_cupsfilterdir}
+# duplicate with cups
+#rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/hpgltops
+#rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/imagetops
+#rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/pstops
+#rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/texttops
+# afaik PLD cups already has support for those
+#rm -f $RPM_BUILD_ROOT%{_cupsfilterdir}/*print
+
+# only these two needed?
+# http://www.linuxprinting.org/show_printer.cgi?recnum=Samsung-CLP-500
+cp -a bin/Linux/x86/filters/{ppmtosplc,pscms} $RPM_BUILD_ROOT%{_cupsfilterdir}
+
+# perhaps the fonts should be from elsewhere? cups?
+cp -a data/fonts/{`cat <<EOF | xargs | tr ' ' ','
+AvantGarde-Book
+AvantGarde-BookOblique
+AvantGarde-Demi
+AvantGarde-DemiOblique
+Bookman-Demi
+Bookman-DemiItalic
+Bookman-Light
+Bookman-LightItalic
+Charter-Bold
+Charter-BoldItalic
+Charter-Italic
+Charter-Roman
+Helvetica
+Helvetica-Bold
+Helvetica-BoldOblique
+Helvetica-Narrow
+Helvetica-Narrow-Bold
+Helvetica-Narrow-BoldOblique
+Helvetica-Narrow-Oblique
+Helvetica-Oblique
+NewCenturySchlbk-Bold
+NewCenturySchlbk-BoldItalic
+NewCenturySchlbk-Italic
+NewCenturySchlbk-Roman
+Palatino-Bold
+Palatino-BoldItalic
+Palatino-Italic
+Palatino-Roman
+Times-Bold
+Times-BoldItalic
+Times-Italic
+Times-Roman
+Utopia-Bold
+Utopia-BoldItalic
+Utopia-Italic
+Utopia-Regular
+ZapfChancery-MediumItalic
+ZapfDingbats
+EOF
+`} $RPM_BUILD_ROOT%{_cupsfontsdir}
+
+cp -a ppd/C/*.ppd $RPM_BUILD_ROOT%{_cupsppddir}
+
+# a config what ./bin/Linux/x86/cfggen generates
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/linuxprint.cfg <<'EOF'
+<?xml version="1.0"?>
+<linux root="/" system="cups">
+       <option name="ghostscript" value="/usr/bin/gs"/>
+       <option name="address" value="localhost"/>
+       <option name="port" value="631"/>
+       <option name="lpr" value="/usr/bin/lp"/>
+<!--
+       <printer ppd="/usr/share/cups/model/CLP-510splc.ppd" queue="CLP-510">
+               <option name="Resolution" value="600"/>
+               <option name="Duplex" value="None"/>
+               <option name="PageSize" value="A4"/>
+               <option name="InputSlot" value="AUTO"/>
+               <option name="MediaType" value="Normal"/>
+               <option name="JCLJamrecovery" value="RWJOff"/>
+       </printer>
+-->
+</linux>
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/linuxprint.cfg
+%attr(755,root,root) %{_cupsfilterdir}/*
+%{_cupsppddir}/*
+%{_cupsfontsdir}/*
This page took 0.061468 seconds and 4 git commands to generate.