Sisyphus repository
Last update: 4 october 2022 | SRPMs: 17717 | Visits: 25061607
en ru br
ALT Linux repos
5.0: 20081207-alt1
4.1: 20080923-alt1
4.0: 20080806-alt1.M40.1
3.0: 1.59-alt1

Group :: System/Kernel and hardware
RPM: foo2zjs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: foo2zjs
Version: 20060523
Release: alt0.1.M30.1

Summary: ZJS (some HP/Minolta) printer driver
License: GPL plus proprietary
Group: System/Kernel and hardware

Source: %url/%name.tar.gz
Patch1: %name.make.patch
Patch2: foo2zjs-20060523-alt-makefile.patch
Patch3: foo2zjs-20060416-alt-hotplug.patch
Packager: Denis Smirnov <mithraen at>

PreReq: printer-drivers-utils

# Automatically added by buildreq on Wed May 11 2005 (-bi)

BuildRequires: ghostscript-classic ghostscript-common ghostscript-module-X ghostscript-utils groff-base libgimp-print psutils
BuildRequires: groff-ps
BuildRequires: foomatic-filters

%def_without foomaticdb

This package contains %name drivers for printers using ZjStream
wire protocol, including:

* Minolta/QMS magicolor 2300, 2200
* Konica Minolta magicolor 2430 DL
* Minolta Color PageWorks/Pro L
* HP LaserJet 1000/1005/1018/1020/1022
* HP Color LaserJet 2600n (foo2hp)

and OAKT protocol printers like:

* HP LaserJet 1500 (foo2oak)

Please note that while most of the code is GPLed, foo2oak
doesn't have full source provided yet (see website).

%setup -q -n %name
%patch2 -p1
%patch3 -p1

%make CFLAGS="%optflags"

# need to prepare these by hand
mkdir -p %buildroot{/bin,%_bindir,%_datadir/cups/model}
mkdir -p %buildroot%_datadir/foomatic/db/source/{driver,opt,printer}
mkdir -p %buildroot%_sysconfdir/udev/rules.d
%make \
DESTDIR=%buildroot \
PREFIX=%buildroot%_usr \
FOODB=%buildroot%_datadir/foomatic/db/source \
MODEL=%buildroot%_datadir/cups/model \
install install-hotplug

#install -pD -m755 hplj1000 %buildroot%_sysconfdir/hotplug/usb/hplj1000

#ln -s hplj1000 %buildroot%_sysconfdir/hotplug/usb/hplj1005
#ln -s hplj1000 %buildroot%_sysconfdir/hotplug/usb/hplj1020

#install -pD -m644 hplj10xx.rules %buildroot%_sysconfdir/udev/rules.d/11-hplj10xx.rules

#cat >> %_sysconfdir/hotplug/usb/foo2zjs.usermap << EOF
#hplj1020 0x0003 0x03f0 0x2b17 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
#hplj1005 0x0003 0x03f0 0x1317 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
#hplj1000 0x0003 0x03f0 0x0517 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000

rm -rf %buildroot%_docdir/%name/



%doc COPYING ChangeLog INSTALL README manual.pdf
%doc getweb
%dir %_datadir/%name/

# due to file conflicts with foomatic-db

%if_without foomaticdb
%exclude %_datadir/foomatic/db/source/driver/foo2oak.xml
%exclude %_datadir/foomatic/db/source/driver/foo2zjs.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-ColorMode.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-Copies.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-Duplex.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-ICM.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-Intent.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-Nup.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-PageSize.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-PrinterType.xml
%exclude %_datadir/foomatic/db/source/opt/foo2zjs-Resolution.xml
%exclude %_datadir/foomatic/db/source/printer/Generic-OAKT_Printer.xml
%exclude %_datadir/foomatic/db/source/printer/HP-Color_LaserJet_1500.xml
%exclude %_datadir/foomatic/db/source/printer/HP-LaserJet_1000.xml
%exclude %_datadir/foomatic/db/source/printer/HP-LaserJet_1005.xml
%exclude %_datadir/foomatic/db/source/printer/HP-LaserJet_1022.xml
%exclude %_datadir/foomatic/db/source/printer/Minolta-magicolor_2430_DL.xml


# - use system libjbigkit and icc2ps, if ever available
# - seperate foo2oak into seperate proprietary package?
# - figure out what to fo with foomatic-db (at least HP1020
#   description is missing there in 3.0's one)
# - send updated patch to author (again)


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin