Sisyphus repository
Last update: 16 october 2018 | SRPMs: 18651 | Visits: 12374903
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/Configuration/Printing
RPM: foo2zjs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: foo2zjs
Version: 20180519
Release: alt1

Summary: ZJS (some HP/Minolta) printer driver
Summary(ru_RU.UTF8): ZJS драйвер для некоторых принтеров HP/Minolta
License: GPL
Group: System/Configuration/Printing

Url: http://foo2zjs.rkkda.com

Requires: wget cups udev foomatic-filters psutils
Requires: foomatic-db-%name = %version-%release
Requires: %name-PPD = %version-%release

Source0: %name.tar.gz
Source1: README-UTF8.ALT
Source2: foo2zjs_download_fw
Source3: hplj1020.desktop
Source4: hplj1020-16.png
Source5: hplj1020-32.png
Source6: hplj1020-48.png
Source7: hplj10xx.rules

Patch1: foo2zjs.make_20140611.patch
Patch2: foo2zjs.hplj1000_20120714.patch
Patch3: hplj10xx_gui.tcl_20100505.patch
Patch4: foo2zjs.getweb_20140104.patch

Packager: Evgeny V Shishkov <shev at altlinux.org>

# Automatically added by buildreq on Mon Jan 26 2009 (-bi)

BuildRequires: foomatic-filters ghostscript-classic ghostscript-utils ghostscript-module-X groff-ps iputils psutils unzip bc
BuildRequires: libcups-devel

%package -n %name-apps
BuildArch: noarch
Summary: foo2zjs utilities
Summary(ru_RU.UTF8): foo2zjs утилиты
Group: System/Configuration/Printing
Requires: %name = %version-%release
Requires: tcl-tix
Requires: tk >= 8.4

%package -n %name-fwdownloader
BuildArch: noarch
Summary: foo2zjs firmware auto downloader from Internet
Summary(ru_RU.UTF8): foo2zjs автозагрузчик прошивок c интернета
Group: System/Configuration/Printing
Requires: %name = %version-%release
Requires: iputils

%package -n foomatic-db-%name
BuildArch: noarch
Summary: Printers database which supports foo2zjs
Summary(ru_RU.UTF8): База данных принтеров, которые поддерживает foo2zjs
Group: System/Configuration/Printing

%package -n %name-PPD
BuildArch: noarch
Summary: PostScript Printer Description (PPD) files foo2zjs
Summary(ru_RU.UTF8): Файлы PostScript Printer Description (PPD) foo2zjs
Group: System/Configuration/Printing

%description -n %name-apps
Application HP LaserJet 10xx Replaced Paper

%description -l ru_RU.UTF-8 -n %name-apps
Программа для замены бумаги в HP LaserJet 10XX
Запускается при отсутствии бумаги в принтере (естественно предварительно бумагу надо положить в лоток).

%description -n %name-fwdownloader
ATTENTION! Think before you install this package.

This package contains a program to automatically download the firmware (if absent)
from the Internet without warning and your participation.

%description -l ru_RU.UTF-8 -n %name-fwdownloader
ВНИМАНИЕ!!! Подумайте, прежде чем устанавливать данный пакет.

Данный пакет содержит программу для автоматической загрузки прошивки (если она отсутствует)
из сети Internet БЕЗ ПРЕДУПРЕЖДЕНИЯ И ВАШЕГО УЧАСТИЯ.

%description -n foomatic-db-%name
Printers database which supports foo2zjs

%description -l ru_RU.UTF-8 -n foomatic-db-%name
База данных принтеров, которые поддерживает foo2zjs

%description -n  %name-PPD
PostScript Printer Description (PPD) files foo2zjs

%description -l ru_RU.UTF-8 -n %name-PPD
Файлы PostScript Printer Description (PPD) foo2zjs

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

foo2zjs:
* Minolta/QMS magicolor 2200 DL / 2300 DL
* Konica Minolta magicolor 2430 DL
* Minolta Color PageWorks/Pro L
* HP LaserJet 1000 / 1005 / 1018 / 1020 / 1022 / 1022n / 1022nw / P2035 / M1319 MFP (PRINTER ONLY; Alpha Quality)
* HP LaserJet Pro P1102 / P1102w / P1566 / P1606dn / CP1025nw

foo2xqx:
* HP LaserJet P1005 / P1006 / P1007 / P1008 / P2014 / P2014n / P1505 / P1505n / P2014n / P2035n
* HP LaserJet M1005MFP (PRINTER ONLY) / M1120MFP (PRINTER ONLY)

foo2hp:
* HP Color LaserJet CP1215 / 1600 / 2600n

foo2lava/LAVAFLOW:
* Konica Minolta magicolor 2490 MF / 2530 DL / 1600W / 1680MF / 1690MF / 2480MF / 4690MF
* Xerox Phaser 6115MFP / 6121MFP

foo2qpdl:
* Samsung CLP-300 / CLP-310 / CLP-315 / CLP-325 / CLP-325W / CLP-600 / CLP-610 / CLP-620 / CLX-2160 / CLX-3160 / CLX-3175
* Xerox Phaser 6110 / 6110MFP

foo2slx:
* Lexmark C500n

foo2hiperc:
* Oki C110 / C310dn / C3100n / C3200n / C3300n / C3400n / C3530n MFP (PRINT ONLY) / C5100n / C5150n / C5200n / C5500n / C5600n / C5650 / C5800n
* Olivetti d-Color P160W

foo2oak:
* HP Color LaserJet 1500 (ALPHA QUALITY)
* Kyocera Mita KM-1635 (ALPHA QUALITY) / KM-2035 (ALPHA QUALITY)

%description -l ru_RU.UTF-8
Этот пакет содержит %name драйвера для принтеров использующих ZjStream протокол, в их числе:

foo2zjs:
* Minolta/QMS magicolor 2200 DL / 2300 DL
* Konica Minolta magicolor 2430 DL
* Minolta Color PageWorks/Pro L
* HP LaserJet 1000 / 1005 / 1018 / 1020 / 1022 / 1022n / 1022nw / P2035 / M1319 MFP (PRINTER ONLY; Alpha Quality)
* HP LaserJet Pro P1102 / P1102w / P1566 / P1606dn / CP1025nw

foo2xqx:
* HP LaserJet P1005 / P1006 / P1007 / P1008 / P2014 / P2014n / P1505 / P1505n / P2014n / P2035n
* HP LaserJet M1005MFP (PRINTER ONLY) / M1120MFP (PRINTER ONLY)

foo2hp:
* HP Color LaserJet CP1215 / 1600 / 2600n

foo2lava/LAVAFLOW:
* Konica Minolta magicolor 2490 MF / 2530 DL / 1600W / 1680MF / 1690MF / 2480MF / 4690MF
* Xerox Phaser 6115MFP / 6121MFP

foo2qpdl:
* Samsung CLP-300 / CLP-310 / CLP-315 / CLP-325 / CLP-325W / CLP-600 / CLP-610 / CLP-620 / CLX-2160 / CLX-3160 / CLX-3175
* Xerox Phaser 6110 / 6110MFP

foo2slx:
* Lexmark C500n

foo2hiperc:
* Oki C110 / C310dn / C3100n / C3200n / C3300n / C3400n / C3530n MFP (PRINT ONLY) / C5100n / C5150n / C5200n / C5500n / C5600n / C5650 / C5800n
* Olivetti d-Color P160W

foo2oak:
* HP Color LaserJet 1500 (ALPHA QUALITY)
* Kyocera Mita KM-1635 (ALPHA QUALITY) / KM-2035 (ALPHA QUALITY)

%prep
%setup -q -n %name
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
sed -i 's,/tmp/,$TMPDIR/,' foo2hiperc-wrapper.in
sed -i 's,/tmp/,$TMPDIR/,' foo2hp2600-wrapper.in
sed -i 's,/tmp/,$TMPDIR/,' foo2lava-wrapper.in
sed -i 's,/tmp/,$TMPDIR/,' foo2oak-wrapper.in
sed -i 's,/tmp/,$TMPDIR/,' foo2qpdl-wrapper.in
sed -i 's,/tmp/,$TMPDIR/,' foo2slx-wrapper.in
sed -i 's,/tmp/,$TMPDIR/,' foo2xqx-wrapper.in
sed -i 's,/tmp/,$TMPDIR/,' foo2zjs-wrapper.in

%build
%make CFLAGS="%optflags"

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

install -m644 %SOURCE1 README-UTF8.ALT
install -m755 getweb %buildroot%_bindir/
install -m700 %SOURCE2 %buildroot%_sbindir/
install -pD -m644 %SOURCE3 %buildroot%_desktopdir/hplj1020.desktop
install -pD -m644 %SOURCE4 %buildroot%_miconsdir/hplj1020.png
install -pD -m644 %SOURCE5 %buildroot%_niconsdir/hplj1020.png
install -pD -m644 %SOURCE6 %buildroot%_liconsdir/hplj1020.png

install -pD -m644 %SOURCE7 %buildroot%_udevrulesdir/11-hplj10xx.rules

#ln -s %_datadir/ppd/foo2zjs %buildroot%_datadir/cups/model/foo2zjs-ppd


rm -rf %buildroot%_docdir/%name/

%files -n %name-apps
%_miconsdir/hplj1020.png
%_niconsdir/hplj1020.png
%_liconsdir/hplj1020.png
%_desktopdir/*.desktop
%_localstatedir/foo2zjs/*.gif
%_localstatedir/foo2zjs/*.tcl

%files -n %name-fwdownloader
%_sbindir/foo2zjs_download_fw

%files -n foomatic-db-%name
%_datadir/foomatic/db/source/*/*

%files -n %name-PPD
%_datadir/ppd/foo2zjs/*
#%_datadir/cups/model/*

%files
%doc README-UTF8.ALT COPYING ChangeLog INSTALL README manual.pdf
%_man1dir/*
/bin/*
%_bindir/*
%_sbindir/hplj*
%_udevrulesdir/*
%dir %_localstatedir/foo2zjs/
%_localstatedir/foo2zjs/*
%_localstatedir/foo2hiperc/*
%_localstatedir/foo2lava/*
%_localstatedir/foo2oak/*
%_localstatedir/foo2slx/*
%_localstatedir/foo2xqx/*
%_localstatedir/foo2hp/*
%_localstatedir/foo2qpdl/*

# discontinued

%exclude %_bindir/printer-profile
%exclude %_localstatedir/foo2zjs/hplj1020_icon.gif
%exclude %_localstatedir/foo2zjs/hplj10xx_gui.tcl

%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