]> git.pld-linux.org Git - packages/foo2zjs.git/blame - foo2zjs.spec
- up to 20120504 tarball, JBIG1 NOW PATENT FREE worldwide
[packages/foo2zjs.git] / foo2zjs.spec
CommitLineData
85c6763e 1Summary: Linux printer driver for ZjStream protocol
5081fe17 2Summary(pl.UTF-8): Linuksowy sterownik drukarek dla protokołu ZjStream
85c6763e 3Name: foo2zjs
2c932a4e 4Version: 20120504
c97d11b4 5Release: 1
85c6763e 6License: GPL v2
7Group: Applications/System
2c932a4e
ER
8Source0: http://foo2zjs.rkkda.com/foo2zjs.tar.gz#/%{name}-%{version}.tar.gz
9# Source0-md5: 88fd5a0982001cfc17a58885802f37d7
d9937268 10Source1: http://foo2zjs.rkkda.com/firmware/sihp1000.tar.gz
294d6f43 11# Source1-md5: eb7f6e1edfec313e6ca23abd27a0d1c2
d9937268 12Source2: http://foo2zjs.rkkda.com/firmware/sihp1005.tar.gz
294d6f43 13# Source2-md5: 04f7bd2eec09131371e27403626f38b5
2c932a4e 14Source3: http://foo2zjs.rkkda.com/firmware/sihpP1006.tar.gz
294d6f43 15# Source3-md5: df4b0b84c6feb0d45f64d7fc219895a5
7b6703bb 16Source4: http://foo2zjs.rkkda.com/firmware/sihp1018.tar.gz
294d6f43 17# Source4-md5: bf61f2ce504b233f999bc358f5a79499
7b6703bb 18Source5: http://foo2zjs.rkkda.com/firmware/sihp1020.tar.gz
294d6f43 19# Source5-md5: 1d408fa44fb43f2f5f8c8f7eabcc70c6
d9937268
AM
20Patch0: %{name}-udev-rules.patch
21Patch1: %{name}-hplj1000.patch
cf47dc65 22URL: http://foo2zjs.rkkda.com/
85c6763e 23BuildRequires: cups-filter-foomatic
24BuildRequires: ghostscript
25BuildRequires: groff
26Requires: foomatic-db
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30foo2zjs is an open source printer driver for printers that use the
31Zenographics ZjStream wire protocol for their print data. With
32foo2zjs, you can print to some HP and Minolta/QMS ZjStream printers,
33such as these:
34
35- HP LaserJet 1000 B/W
36- HP LaserJet 1005 B/W
7b6703bb 37- HP LaserJet 1006 B/W
85c6763e 38- HP LaserJet 1018 B/W
39- HP LaserJet 1020 B/W
40- Konica Minolta magicolor 2430 DL B/W and color
41- Minolta/QMS 2300 DL B/W and color
42- Minolta/QMS 2200 DL B/W and color
43
44%description -l pl.UTF-8
45foo2zjs to otwarty sterownik dla drukarek używających do druku
5081fe17 46protokołu Zenographics ZjStream. Dzięki foo2zjs można drukować na
85c6763e 47drukarkach HP oraz Minolta/QMS ZjStream takich jak:
48
49- HP LaserJet 1000 B/W
50- HP LaserJet 1005 B/W
7b6703bb 51- HP LaserJet 1006 B/W
85c6763e 52- HP LaserJet 1018 B/W
53- HP LaserJet 1020 B/W
54- Konica Minolta magicolor 2430 DL B/W and color
55- Minolta/QMS 2300 DL B/W and color
56- Minolta/QMS 2200 DL B/W and color
57
58%package firmware
59Summary: Firmware for HP LaserJet 10xx printers
5081fe17 60Summary(pl.UTF-8): Firmware dla drukarek HP LaserJet 10xx
85c6763e 61License: distributable
62Group: Applications/System
5081fe17 63Requires: %{name} = %{version}-%{release}
cf47dc65 64Requires: cups-foomatic-db-HP
85c6763e 65
66%description firmware
5081fe17 67Firmware for HP LaserJet 10xx printers:
7b6703bb 68- HP LaserJet 1000, 1005, 1006, 1018, 1020
85c6763e 69
70%description firmware -l pl.UTF-8
5081fe17 71Firmware dla drukarek HP LaserJet 10xx:
7b6703bb 72- HP LaserJet 1000, 1005, 1006, 1018, 1020
85c6763e 73
74%package udev-rules
75Summary: udev rules for HP LaserJet 10xx printers
5081fe17 76Summary(pl.UTF-8): Reguły udev dla drukarek HP LaserJet 10xx
85c6763e 77Group: Applications/System
5081fe17
JB
78Requires: %{name} = %{version}-%{release}
79Requires: %{name}-firmware = %{version}-%{release}
0fe86671 80Requires: udev-core
85c6763e 81
82%description udev-rules
83udev rules for printers:
7b6703bb 84- HP LaserJet 1000, 1005, 1006, 1018, 1020
85c6763e 85
86%description udev-rules -l pl.UTF-8
87Reguły udev dla drukarek:
7b6703bb 88- HP LaserJet 1000, 1005, 1006, 1018, 1020
85c6763e 89
90%prep
2c932a4e
ER
91%setup -qc -a1 -a2 -a3 -a4 -a5
92mv %{name}/* .; rmdir %{name}
7b6703bb 93%patch0 -p1
294d6f43 94%patch1 -p1
85c6763e 95
96%build
97%{__make} \
98 CC="%{__cc}" \
294d6f43 99 CFLAGS="%{rpmcflags} %{rpmcppflags}"
85c6763e 100
101%install
102rm -rf $RPM_BUILD_ROOT
2c932a4e
ER
103install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/{firmware,crd},/lib/udev/rules.d}
104
105%{__make} install-prog \
106 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
107 MANDIR=$RPM_BUILD_ROOT%{_mandir} \
108 UDEVBIN=$RPM_BUILD_ROOT%{_bindir}
109
110%{__make} install-man \
111 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
112 MANDIR=$RPM_BUILD_ROOT%{_mandir}
113
114install -p hplj1000 $RPM_BUILD_ROOT%{_bindir}/hplj10xx
115cp -p hplj10xx.rules $RPM_BUILD_ROOT/lib/udev/rules.d/11-hplj10xx.rules
85c6763e 116
7b6703bb 117for i in sihp1000 sihp1005 sihpP1006 sihp1018 sihp1020; do
5081fe17 118 ./arm2hpdl $i.img > $i.dl
2c932a4e 119 cp -p $i.dl $RPM_BUILD_ROOT%{_datadir}/%{name}/firmware
85c6763e 120done
2c932a4e
ER
121cp -p *.ps $RPM_BUILD_ROOT%{_datadir}/%{name}
122cp -p crd/zjs/*.{crd,ps} \
85c6763e 123 $RPM_BUILD_ROOT%{_datadir}/%{name}/crd
85c6763e 124
125%clean
126rm -rf $RPM_BUILD_ROOT
127
128%post
129%service -q cups restart
130
131%files
132%defattr(644,root,root,755)
133%doc ChangeLog README manual.pdf
2c932a4e
ER
134%attr(755,root,root) %{_bindir}/arm2hpdl
135%attr(755,root,root) %{_bindir}/foo2hiperc
136%attr(755,root,root) %{_bindir}/foo2hiperc-wrapper
137%attr(755,root,root) %{_bindir}/foo2hp
138%attr(755,root,root) %{_bindir}/foo2hp2600-wrapper
139%attr(755,root,root) %{_bindir}/foo2lava
140%attr(755,root,root) %{_bindir}/foo2lava-wrapper
141%attr(755,root,root) %{_bindir}/foo2oak
142%attr(755,root,root) %{_bindir}/foo2oak-wrapper
143%attr(755,root,root) %{_bindir}/foo2qpdl
144%attr(755,root,root) %{_bindir}/foo2qpdl-wrapper
145%attr(755,root,root) %{_bindir}/foo2slx
146%attr(755,root,root) %{_bindir}/foo2slx-wrapper
147%attr(755,root,root) %{_bindir}/foo2xqx
148%attr(755,root,root) %{_bindir}/foo2xqx-wrapper
149%attr(755,root,root) %{_bindir}/foo2zjs
150%attr(755,root,root) %{_bindir}/foo2zjs-pstops
151%attr(755,root,root) %{_bindir}/foo2zjs-wrapper
152%attr(755,root,root) %{_bindir}/gipddecode
153%attr(755,root,root) %{_bindir}/hbpldecode
154%attr(755,root,root) %{_bindir}/hipercdecode
155%attr(755,root,root) %{_bindir}/hplj10xx
156%attr(755,root,root) %{_bindir}/lavadecode
157%attr(755,root,root) %{_bindir}/oakdecode
158%attr(755,root,root) %{_bindir}/opldecode
159%attr(755,root,root) %{_bindir}/printer-profile
160%attr(755,root,root) %{_bindir}/qpdldecode
161%attr(755,root,root) %{_bindir}/slxdecode
162%attr(755,root,root) %{_bindir}/usb_printerid
163%attr(755,root,root) %{_bindir}/xqxdecode
164%attr(755,root,root) %{_bindir}/zjsdecode
5081fe17 165%dir %{_datadir}/%{name}
85c6763e 166%{_datadir}/%{name}/*.ps
5081fe17
JB
167%{_datadir}/%{name}/crd
168%{_mandir}/man1/*.1*
85c6763e 169
170%files firmware
171%defattr(644,root,root,755)
5081fe17 172%{_datadir}/%{name}/firmware
85c6763e 173
174%files udev-rules
175%defattr(644,root,root,755)
2c932a4e 176/lib/udev/rules.d/11-hplj10xx.rules
This page took 0.089708 seconds and 4 git commands to generate.