autoremove source driver and printer files present in foomatic-db [release 20140202-2mamba;Tue Feb 11 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 22:30:01 +01:00
parent a285ffd592
commit ac39bd1424
6 changed files with 239 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# foo2zjs # foo2zjs
foo2hp is an open source printer driver for printers that use the Zenographics ZjStream wire protocol for their print data, such as the HP Color LaserJet 2600n and the HP Color LaserJet CP1215.

View File

@ -0,0 +1,35 @@
diff -Nru foo2zjs.orig//Makefile foo2zjs/Makefile
--- foo2zjs.orig//Makefile 2010-07-20 19:47:34.000000000 +0200
+++ foo2zjs/Makefile 2010-07-21 18:27:04.363946538 +0200
@@ -865,14 +865,14 @@
fi
[ -d $(USBDIR) ] || $(INSTALL) -d -m 755 $(USBDIR)/
$(INSTALL) -c -m 755 hplj1000 $(USBDIR)/
- ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1005
- ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1018
- ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hplj1020
- ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1005
- ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1006
- ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1007
- ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1008
- ln -sf $(USBDIR)/hplj1000 $(USBDIR)/hpljP1505
+ ln -sf hplj1000 $(USBDIR)/hplj1005
+ ln -sf hplj1000 $(USBDIR)/hplj1018
+ ln -sf hplj1000 $(USBDIR)/hplj1020
+ ln -sf hplj1000 $(USBDIR)/hpljP1005
+ ln -sf hplj1000 $(USBDIR)/hpljP1006
+ ln -sf hplj1000 $(USBDIR)/hpljP1007
+ ln -sf hplj1000 $(USBDIR)/hpljP1008
+ ln -sf hplj1000 $(USBDIR)/hpljP1505
$(USBDIR)/hplj1000 install-usermap
$(USBDIR)/hplj1005 install-usermap
$(USBDIR)/hplj1018 install-usermap
@@ -887,7 +887,7 @@
install-filter:
if [ "$(CUPS_SERVERBIN)" != "" ]; then \
- ln -sf $(BIN)/command2foo2lava-pjl $(CUPS_SERVERBIN)/filter/; \
+ ln -sf /usr/bin/command2foo2lava-pjl $(CUPS_SERVERBIN)/filter/; \
fi
cups: FRC

View File

@ -0,0 +1,20 @@
diff -ru foo2zjs.orig/Makefile foo2zjs/Makefile
--- foo2zjs.orig/Makefile 2012-03-06 13:31:59.297935348 +0100
+++ foo2zjs/Makefile 2012-03-06 13:39:22.496331647 +0100
@@ -618,15 +618,6 @@
echo "*** ... wherever foomatic is stashed on your machine."; \
echo "***"; \
fi
- #
- # Clear foomatic cache and rebuild database if needed
- #
- rm -rf /var/cache/foomatic/*/*
- rm -f /var/cache/foomatic/printconf.pickle
- if [ -d /var/cache/foomatic/compiled ]; then \
- cd /var/cache/foomatic/compiled; \
- foomatic-combo-xml -O >overview.xml; \
- fi
install-icc2ps:
#
Solo in foo2zjs: xxx.foo

182
foo2zjs.spec Normal file
View File

@ -0,0 +1,182 @@
# TODO: this package has to be splitted in foo2zjs, foo2hp, foo2xqx, foo2lava, foo2qpdl, foo2slx, foo2hiperc and foo2oak
Name: foo2zjs
Version: 20140202
Release: 2mamba
Summary: A linux printer driver for ZjStream protocol
Group: System/Spooling
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://foo2zjs.rkkda.com/
# FIXME: upstream url is http://foo2zjs.rkkda.com/foo2zjs.tar.gz,
# rename package to contain version to avoid confusion
Source: http://foo2zjs.rkkda.com/foo2zjs-%{version}.tar.gz
Source1: http://foo2zjs.rkkda.com/firmware/sihp1000.tar.gz
Source2: http://foo2zjs.rkkda.com/firmware/sihp1005.tar.gz
Source3: http://foo2zjs.rkkda.com/firmware/sihp1018.tar.gz
Source4: http://foo2zjs.rkkda.com/firmware/sihp1020.tar.gz
Source5: http://foo2zjs.rkkda.com/firmware/sihpP1005.tar.gz
Source6: http://foo2zjs.rkkda.com/firmware/sihpP1006.tar.gz
Source7: http://foo2zjs.rkkda.com/firmware/sihpP1505.tar.gz
Source8: http://printer.konicaminolta.net/drivers/win2000/m22dlicc.exe
Source9: http://printer.konicaminolta.net/drivers/other/m23dlicc.exe
Source10: http://foo2zjs.rkkda.com/icm/km2430.tar.gz
Source11: http://foo2hp.rkkda.com/icm/hpclj2600n.tar.gz
Source12: http://foo2hp.rkkda.com/icm/hp1215.tar.gz
Source13: http://foo2lava.rkkda.com/icm/km2530.tar.gz
Source14: http://foo2lava.rkkda.com/icm/km-1600.tar.gz
Source15: http://foo2qpdl.rkkda.com/icm/samclp300.tar.gz
Source16: http://foo2qpdl.rkkda.com/icm/samclp315.tar.gz
Source17: http://foo2slx.rkkda.com/icm/lexc500.tar.gz
Source18: http://foo2hiperc.rkkda.com/icm/okic3200.tar.gz
Source19: http://foo2hiperc.rkkda.com/icm/okic3400.tar.gz
Source20: http://foo2hiperc.rkkda.com/icm/okic5600.tar.gz
Patch0: %{name}-20100721-add_destdir.patch
Patch1: %{name}-20120306-Makefile-no-root.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcups-devel
## AUTOBUILDREQ-END
BuildRequires: foomatic-db
#BuildRequires: foomatic-filters
BuildRequires: vim
Requires(post):foomatic
%description
foo2hp is an open source printer driver for printers that use the Zenographics ZjStream wire protocol for their print data, such as the HP Color LaserJet 2600n and the HP Color LaserJet CP1215.
%prep
%setup -q -n foo2zjs -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20
unzip -qoj %{S:8} "*.icm"
unzip -qoj %{S:9} "*.icm"
%patch0 -p1
%patch1 -p1
sed -i "s|/etc/hotplug/usb/|/%{_lib}/udev/foo2zjs/|" hplj10xx.rules
%build
%make \
CC=%{_host}-gcc \
USBDIR=/lib/udev/foo2zjs/
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}{%{_bindir},/%{_lib}/udev/foo2zjs}
#mkdir -p %{buildroot}%{_datadir}/ppd
mkdir -p %{buildroot}%{_datadir}/foomatic/db/source/driver
mkdir -p %{buildroot}%{_datadir}/foomatic/db/source/printer
mkdir -p %{buildroot}%{_datadir}/foomatic/db/source/opt
mkdir -p %{buildroot}%{_prefix}/lib/cups/filter
mkdir -p %{buildroot}/lib/udev/rules.d
%makeinstall \
install-hotplug \
CUPS_SERVERBIN=%{buildroot}%{_prefix}/lib/cups/ \
UDEVDIR=%{buildroot}/lib/udev/rules.d/ \
USBDIR=%{buildroot}/lib/udev/foo2zjs/
rpm -ql foomatic-db | grep foomatic/db/source | \
while read line; do
[ -e %{buildroot}/$line ] && rm -f %{buildroot}/$line || true
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
# new install
if [ $1 -ge 1 ]; then
#
# Clear foomatic cache and rebuild database if needed
#
rm -rf /var/cache/foomatic/*/*
rm -f /var/cache/foomatic/printconf.pickle
if [ -d /var/cache/foomatic/compiled ]; then \
cd /var/cache/foomatic/compiled; \
foomatic-combo-xml -O >overview.xml; \
fi
fi
if [ $1 -eq 1 ]; then
chkconfig cups
[ $? -eq 0 ] && service cups restart &>/dev/null
fi
:
%postun
if [ $1 -eq 0 ]; then
#
# Clear foomatic cache and rebuild database if needed
#
rm -rf /var/cache/foomatic/*/*
rm -f /var/cache/foomatic/printconf.pickle
if [ -d /var/cache/foomatic/compiled ]; then \
cd /var/cache/foomatic/compiled; \
foomatic-combo-xml -O >overview.xml; \
fi
fi
%files
%defattr(-,root,root)
/lib/udev/foo2zjs/*
/bin/usb_printerid
%{_bindir}/*
/lib/udev/rules.d/11-hplj10xx.rules
%dir /lib/udev/foo2zjs
%{_prefix}/lib/cups/filter/command2foo2lava-pjl
%{_docdir}/foo2zjs/*
%dir %{_datadir}/foo2zjs
%{_datadir}/foo2zjs/*
%dir %{_datadir}/foo2qpdl
%{_datadir}/foo2qpdl/*
%dir %{_datadir}/foo2hiperc
%{_datadir}/foo2hiperc/*
%dir %{_datadir}/foo2hp
%{_datadir}/foo2hp/*
%dir %{_datadir}/foo2lava
%{_datadir}/foo2lava/*
%dir %{_datadir}/foo2oak
%{_datadir}/foo2oak/*
%dir %{_datadir}/foo2slx
%{_datadir}/foo2slx/*
%dir %{_datadir}/foo2xqx
%{_datadir}/foo2xqx/*
%{_datadir}/foomatic/db/source/opt/*.xml
#%{_datadir}/ppd/foo2zjs/*.ppd.gz
#%{_datadir}/cups/model/*.ppd.gz
%{_datadir}/foomatic/db/source/driver/*.xml
%{_datadir}/foomatic/db/source/printer/*.xml
%{_mandir}/man1/*.gz
%doc COPYING
# ChangeLog README README.in
%changelog
* Tue Feb 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20140202-2mamba
- autoremove source driver and printer files present in foomatic-db
* Sun Feb 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20140202-1mamba
- update to 20140202
* Mon Sep 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20130930-1mamba
- update to 20130930
* Sat Sep 29 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 20120929-1mamba
- update to 20120929
* Tue Mar 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 20120306-1mamba
- update to 20120306
- added build requirement for foomatic-filters
* Wed Jul 21 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 20100721-1mamba
- update to 20100721
* Sat Dec 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 20091202-2mamba
- don't install ppds
* Wed Dec 02 2009 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 20091202-1mamba
- update to 20091202
- added icm files
* Tue Mar 25 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.20080324-1mamba
- package created by autospec

BIN
m22dlicc.exe Normal file

Binary file not shown.

BIN
m23dlicc.exe Normal file

Binary file not shown.