Sisyphus repository
Last update: 16 october 2019 | SRPMs: 17499 | Visits: 15275586
en ru br
ALT Linux repos
S:20180519-alt1
D:20080605-alt2
5.0: 20081207-alt1
4.1: 20080923-alt1
4.0: 20080806-alt1.M40.1
+backports:20060523-alt0.9
3.0: 1.59-alt1
+backports:20060523-alt0.1.M30.1

Group :: System/Kernel and hardware
RPM: foo2zjs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: foo2zjs
Version: 20060523
Release: alt0.9

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

Url: http://foo2zjs.rkkda.com
Source0: %url/%name.tar.gz
Source1: hplj10xx.rules
Source2: fwload4dlink
Patch1: %name.make.patch
Patch2: foo2zjs-20060523-alt-makefile.patch
Patch3: foo2zjs-20060416-alt-hotplug.patch
Packager: Denis Smirnov <mithraen at altlinux.ru>

# 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

Requires: foomatic-filters

%def_without foomaticdb

%description
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).

%prep
%setup -q -n %name
%patch2 -p1
%patch3 -p1
install -m644 %SOURCE2 .

%build
%make CFLAGS="%optflags"

%install
# 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

# patched one

install -pD -m644 %SOURCE1 %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
#EOF

rm -rf %buildroot%_docdir/%name/

%files
%doc COPYING ChangeLog INSTALL README manual.pdf
%doc getweb
%doc fwload4dlink
%_man1dir/*
%_bindir/*
/bin/*
%_sysconfdir/hotplug/usb/*
%_sysconfdir/udev/rules.d/*
%dir %_datadir/%name/
%_datadir/%name/crd/
%_datadir/%name/firmware/
%_datadir/%name/*.ps
%_datadir/%name/icm/
%_datadir/foo2hp/
%_datadir/foomatic/db/source/*/*
%_datadir/cups/model/*

# 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-Color_LaserJet_2600n.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_1020.xml
%exclude %_datadir/foomatic/db/source/printer/HP-LaserJet_1022.xml
%exclude %_datadir/foomatic/db/source/printer/Minolta-magicolor_2300_DL.xml
%exclude %_datadir/foomatic/db/source/printer/Minolta-magicolor_2430_DL.xml
%exclude %_datadir/foomatic/db/source/printer/HP-Color_LaserJet_1600.xml
%exclude %_datadir/foomatic/db/source/printer/Minolta-Color_PageWorks_Pro_L.xml
%exclude %_datadir/foomatic/db/source/printer/Minolta-magicolor_2200_DL.xml
%endif

# TODO:

# - use system libjbigkit and icc2ps, if ever available
# - seperate foo2oak into separate 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)
# - gs 8.14/8.15 warnings at http://foo2zjs.rkkda.com/ChangeLog
# - build recent snapshot?

%changelog

Full changelog you can see here

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