[packages/cups-driver-brother-hll2350dw] - insane/poor brother printer driver

arekm arekm at pld-linux.org
Fri Jul 13 19:14:00 CEST 2018


commit 04fe34dd8795ce45a924c01be692f38e03e8fa63
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 13 19:13:43 2018 +0200

    - insane/poor brother printer driver

 cups-driver-brother-hll2350dw.spec | 51 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
---
diff --git a/cups-driver-brother-hll2350dw.spec b/cups-driver-brother-hll2350dw.spec
new file mode 100644
index 0000000..0a4036e
--- /dev/null
+++ b/cups-driver-brother-hll2350dw.spec
@@ -0,0 +1,51 @@
+# 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
+License:	GPL
+Group:		Applications
+Source0:	http://download.brother.com/welcome/dlf103565/hll2350dwpdrv-%{version}-1.i386.rpm
+# Source0-md5:	4d6261c7ca265f4ac88b7766faae3498
+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
+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
+
+%description
+CUPS driver for Brother HL-L2352DW.
+
+%prep
+%setup -qcT
+rpm2cpio %{SOURCE0} | cpio -dimu
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc opt/brother/Printers/HLL2350DW/LICENSE_ENG.txt
+%{_cupsppddir}/brother-HLL2350DW-cups-en.ppd.gz
+%attr(755,root,root) %{_cupsfilterdir}/brother_lpdwrapper_HLL2350DW
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list