2024-01-05 22:30:01 +01:00
|
|
|
# TODO: this package has to be splitted in foo2zjs, foo2hp, foo2xqx, foo2lava, foo2qpdl, foo2slx, foo2hiperc and foo2oak
|
|
|
|
|
|
|
|
Name: foo2zjs
|
2024-01-05 22:30:01 +01:00
|
|
|
Version: 20141008
|
|
|
|
Release: 1mamba
|
2024-01-05 22:30:01 +01:00
|
|
|
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 \
|
2024-01-05 22:30:01 +01:00
|
|
|
install-hotplug-prog \
|
2024-01-05 22:30:01 +01:00
|
|
|
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
|
2024-01-05 22:30:01 +01:00
|
|
|
* Thu Nov 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20141008-1mamba
|
|
|
|
- update to 20141008
|
|
|
|
|
2024-01-05 22:30:01 +01:00
|
|
|
* 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
|