[packages/cups-driver-brother-hll2350dw] - spec changes

arekm arekm at pld-linux.org
Fri Jul 13 20:23:15 CEST 2018


commit 12a9930b01a244a555978fc043cdbb59b8953611
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 13 20:23:09 2018 +0200

    - spec changes

 cups-driver-brother-hll2350dw.spec | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/cups-driver-brother-hll2350dw.spec b/cups-driver-brother-hll2350dw.spec
index 0a4036e..32a30f1 100644
--- a/cups-driver-brother-hll2350dw.spec
+++ b/cups-driver-brother-hll2350dw.spec
@@ -1,20 +1,19 @@
-# TODO:
-# - wrappers are INSANE doing copying, rming, guessing and other crazy things
 %include        /usr/lib/rpm/macros.perl
 Summary:	A set of CUPS printer drivers for Brother HL-L2352DW printer
 Name:		cups-driver-brother-hll2350dw
 Version:	4.0.0
-Release:	0.1
+Release:	1
 License:	GPL
 Group:		Applications
 Source0:	http://download.brother.com/welcome/dlf103565/hll2350dwpdrv-%{version}-1.i386.rpm
 # Source0-md5:	4d6261c7ca265f4ac88b7766faae3498
+Patch0:		fixes.patch
 URL:		http://support.brother.com/g/b/downloadlist.aspx?c=pl&lang=pl&prod=hll2352dw_eu&os=127&flang=English
 BuildRequires:	gzip
 BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	rpm-utils
 Requires:	cups
-BuildArch:	noarch
+ExclusiveArch:	%{x8664} %{ix86}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_datadir	%(cups-config --datadir 2>/dev/null)
@@ -28,18 +27,30 @@ CUPS driver for Brother HL-L2352DW.
 %prep
 %setup -qcT
 rpm2cpio %{SOURCE0} | cpio -dimu
+%patch0 -p1
 
 %build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT/etc/opt/brother/Printers/HLL2350DW/inf
 install -d $RPM_BUILD_ROOT{%{_cupsppddir},%{_cupsfilterdir}}
 
 cp -p opt/brother/Printers/HLL2350DW/cupswrapper/brother-HLL2350DW-cups-en.ppd $RPM_BUILD_ROOT%{_cupsppddir}
 gzip $RPM_BUILD_ROOT%{_cupsppddir}/*.ppd
 
 cp -p opt/brother/Printers/HLL2350DW/cupswrapper/lpdwrapper $RPM_BUILD_ROOT%{_cupsfilterdir}/brother_lpdwrapper_HLL2350DW
+cp -p opt/brother/Printers/HLL2350DW/lpd/lpdfilter $RPM_BUILD_ROOT%{_cupsfilterdir}/lpdfilter
+cp -p opt/brother/Printers/HLL2350DW/lpd/%{_target_base_arch}/{brprintconflsr3,rawtobr3} $RPM_BUILD_ROOT%{_bindir}
+
+cp -p opt/brother/Printers/HLL2350DW/inf/brHLL2350DWrc $RPM_BUILD_ROOT/etc/opt/brother/Printers/HLL2350DW/inf/brHLL2350DWrc
+cp -p opt/brother/Printers/HLL2350DW/inf/brHLL2350DWfunc $RPM_BUILD_ROOT/etc/opt/brother/Printers/HLL2350DW/inf/brHLL2350DWfunc
+
+echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/brprintconflsr3_HLL2350DW
+echo '%{_bindir}/brprintconflsr3 -P HLL2350DW $*' >> $RPM_BUILD_ROOT%{_bindir}/brprintconflsr3_HLL2350DW
+chmod 755 $RPM_BUILD_ROOT%{_bindir}/brprintconflsr3_HLL2350DW
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -48,4 +59,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc opt/brother/Printers/HLL2350DW/LICENSE_ENG.txt
 %{_cupsppddir}/brother-HLL2350DW-cups-en.ppd.gz
+/etc/opt/brother
+%attr(755,root,root) %{_bindir}/brprintconflsr3_HLL2350DW
+%attr(755,root,root) %{_bindir}/brprintconflsr3
+%attr(755,root,root) %{_bindir}/rawtobr3
 %attr(755,root,root) %{_cupsfilterdir}/brother_lpdwrapper_HLL2350DW
+%attr(755,root,root) %{_cupsfilterdir}/lpdfilter
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cups-driver-brother-hll2350dw.git/commitdiff/12a9930b01a244a555978fc043cdbb59b8953611



More information about the pld-cvs-commit mailing list