From 0d5e2cc769e765981021534e5cc7d669ae38c898 Mon Sep 17 00:00:00 2001 From: akdengi Date: Mon, 25 Nov 2013 18:39:05 +0400 Subject: [PATCH] return some patches --- .abf.yml | 2 ++ README.urpmi | 32 ++++++++++++++++++++++++++++++++ hplip.spec | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 README.urpmi diff --git a/.abf.yml b/.abf.yml index ae563a5..12320fb 100644 --- a/.abf.yml +++ b/.abf.yml @@ -2,3 +2,5 @@ sources: hp-sendfax.png: 2201320c59c2eaba10abce5c40306c6461e79beb hplip-3.13.11.tar.gz: 240dcaf52c75a23cd5ab6a4426364245e7c2474e + SmartInstallDisable-Tool.run: c82103aa609cd7e58f43b090266bb77216933937 + \ No newline at end of file diff --git a/README.urpmi b/README.urpmi new file mode 100644 index 0000000..42f2644 --- /dev/null +++ b/README.urpmi @@ -0,0 +1,32 @@ +If you experience problems with the following printers: + HP LaserJet 1100 series, + HP LaserJet p1560 series, + HP LaserJet p1600 series, + HP LaserJet CP1020 series, + HP LaserJet M1130 MFP series, + HP LaserJet M1210 MFP series + +try to run +# /usr/bin/SmartInstallDisable-Tool.run + +If you have already added you printer in system settings, you should delete it and add it once more. + +Please refer to http://hplipopensource.com/node/367 for more details. + +=== Russian === + +Если вы испытываете сложности с одним из следующих принтеров: + + HP LaserJet 1100 series, + HP LaserJet p1560 series, + HP LaserJet p1600 series, + HP LaserJet CP1020 series, + HP LaserJet M1130 MFP series, + HP LaserJet M1210 MFP series + +то попробуйте запустить +# /usr/bin/SmartInstallDisable-Tool.run + +Если вы уже добавили свой принтер в системных настройках, то удалите его и добавьте снова. + +Детальную информацию можно найти здесь: http://hplipopensource.com/node/367 diff --git a/hplip.spec b/hplip.spec index 1da1f33..5ce980a 100644 --- a/hplip.spec +++ b/hplip.spec @@ -28,6 +28,10 @@ Source2: %{name}-tmpfiles.conf # http://www.iconfinder.com/icondetails/6393/128/fax_hardware_icon Source3: hp-sendfax.png Source4: hplip.rpmlintrc +# http://hplipopensource.com/node/367 +Source5: http://hplipopensource.com/hplip-web/smartinstall/SmartInstallDisable-Tool.run +Source6: README.urpmi + # (doktor5000) fix linking with python and libsane # taken from mandriva Patch1: hplip-3.11.3-mdv-link.patch @@ -125,6 +129,8 @@ Requires: acl Requires: %{libhpip} = %{version} # Some HP ppds are in foomatic-db and foomatic-db-hpijs (mdv bug #47415) Suggests: foomatic-db-hpijs +# hp-doctor requires gui modules +Requires: hplip-gui # foomatic-db-hpijs drivers are provided by hp and by this package now # NOTE: remove the foomatic-db-hpijs deps sometime in 2010-10-?? ? @@ -477,6 +483,15 @@ rm -rf %{buildroot}%{_datadir}/hal/fdi # Regenerate hpcups PPDs on upgrade if necessary (bug #579355). install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/hpcups-update-ppds +# A tool disable smart install feature in HP printer(s) from linux +# HP Smart Install is a service running on firmware which makes printer to appear +# as "Mass Storage Devices" when connected via USB cable. This is to install the +# minimal printer software from flash memory of printer. This service needs to be +# disabled on linux in order to have the device function as a printer. +install -p -m755 %{SOURCE5} %{buildroot}%{_bindir}/SmartInstallDisable-Tool.run +mkdir -p %{buildroot}%{_docdir}/%{name} +install -p -m755 %{SOURCE6} %{buildroot}%{_docdir}/%{name} + # Fedora pstotiff rm -f %{buildroot}%{_sysconfdir}/cups/pstotiff.types rm -f %{buildroot}%{_datadir}/cups/mime/pstotiff.types @@ -492,6 +507,23 @@ mkdir -p %{buildroot}%{_sbindir} mv %{buildroot}%{_bindir}/hp-setup %{buildroot}%{_sbindir}/hp-setup ln -s consolehelper %{buildroot}%{_bindir}/hp-setup +# console user, ask for root password + mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps + cat > %{buildroot}%{_sysconfdir}/security/console.apps/hp-setup < %{buildroot}%{_sysconfdir}/pam.d/hp-setup <