From: Elan Ruusamäe Date: Thu, 4 May 2006 16:05:38 +0000 (+0000) Subject: - new; haven't got it working yet X-Git-Tag: cups-driver-samsung-1_1_4-0_8~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcups-driver-samsung.git;a=commitdiff_plain;h=9a90237afe0457fb3dcf52c3f1683c646b5ee16d - new; haven't got it working yet Changed files: cups-driver-samsung.spec -> 1.1 --- 9a90237afe0457fb3dcf52c3f1683c646b5ee16d diff --git a/cups-driver-samsung.spec b/cups-driver-samsung.spec new file mode 100644 index 0000000..b8bca0a --- /dev/null +++ b/cups-driver-samsung.spec @@ -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 < $RPM_BUILD_ROOT%{_sysconfdir}/linuxprint.cfg <<'EOF' + + + +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}/*