2024-01-05 23:42:54 +01:00
|
|
|
%define lp_uid 9
|
|
|
|
%define lp_gid 9
|
|
|
|
%define cups_ver %(cups-config --api-version)
|
|
|
|
Name: hplip
|
2024-01-05 23:42:55 +01:00
|
|
|
Version: 3.15.6
|
2024-01-05 23:42:55 +01:00
|
|
|
Release: 5mamba
|
2024-01-05 23:42:54 +01:00
|
|
|
Summary: A printer driver for HP inkjet devices
|
|
|
|
Group: System/Spooling
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://hplipopensource.com/hplip-web/index.html
|
|
|
|
Source: http://downloads.sourceforge.net/sourceforge/hplip/hplip-%{version}.tar.gz
|
|
|
|
Patch0: %{name}-3.11.7-cups-1.5.patch
|
|
|
|
Patch1: %{name}-3.12.9-cups-1.6.patch
|
|
|
|
Patch2: hplip-3.14.4-openmamba-AUTH_TYPES-warning.patch
|
|
|
|
Patch3: hplip-3.14.4-systray-hide-when-inactive.patch
|
|
|
|
License: BSD, LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libcups-devel
|
|
|
|
BuildRequires: libdbus-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libnetsnmp-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-05 23:42:54 +01:00
|
|
|
BuildRequires: libperl
|
2024-01-05 23:42:54 +01:00
|
|
|
BuildRequires: libpython-devel
|
|
|
|
BuildRequires: libsane-backends-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-05 23:42:54 +01:00
|
|
|
BuildRequires: libusbx-devel
|
2024-01-05 23:42:54 +01:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: gcc-fortran >= 4.0.1
|
|
|
|
BuildRequires: libieee1284-devel
|
|
|
|
BuildRequires: libgphoto-devel
|
|
|
|
BuildRequires: libavahi-devel
|
|
|
|
BuildRequires: libssp-devel
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
Obsoletes: hpijs
|
|
|
|
Requires: cups
|
|
|
|
Requires: python-Imaging
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
Requires(pre): libsane-backends >= 1.0.16
|
|
|
|
Provides: hpijs = %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
A printer driver for HP inkjet devices.
|
|
|
|
Provides printing support for more than 300 printer models, including, DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
A printer driver for HP inkjet devices.
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch0 -p1
|
|
|
|
#%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
#sed -i "s|SYSFS{|ATTRS{|g" data/rules/55-hpmud.rules data/rules/56-hpmud_support.rules
|
|
|
|
#sed -i "s|sysfs{|ATTR{|g" data/rules/55-hpmud.rules data/rules/56-hpmud_support.rules
|
|
|
|
|
|
|
|
sed -i "s|chgrp \"lp\"|/bin/true \"lp\"|" Makefile.in
|
|
|
|
sed -i "s|chmod 774|/bin/true 774|" Makefile.in
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--enable-foomatic-drv-install \
|
|
|
|
--enable-foomatic-ppd-install \
|
|
|
|
--enable-foomatic-rip-hplip-install \
|
|
|
|
--enable-hpijs-install \
|
|
|
|
--enable-hpcups-install \
|
|
|
|
--enable-cups-drv-install \
|
|
|
|
--enable-cups-ppd-install \
|
|
|
|
--with-hpppddir=%{_datadir}/cups/model/HP \
|
|
|
|
PYTHON=%{__python}
|
|
|
|
|
|
|
|
# \
|
|
|
|
# --disable-foomatic_install
|
2024-01-05 23:42:54 +01:00
|
|
|
%make -j1 rulessystemdir=%{_unitdir}
|
2024-01-05 23:42:54 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 23:42:54 +01:00
|
|
|
%makeinstall rulessystemdir=%{_unitdir}
|
2024-01-05 23:42:54 +01:00
|
|
|
|
|
|
|
# remove conflict with libsane-backends
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/sane.d/dll.conf
|
|
|
|
|
|
|
|
# remove udev automatic printer configuration conflicting with system-config-printer
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/udev/rules.d/56-hpmud_add_printer.rules
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
/usr/sbin/groupadd lp -g %{lp_gid} &>/dev/null
|
|
|
|
/usr/sbin/useradd lp -d /dev/null -s /bin/false \
|
|
|
|
-u %{lp_uid} -g %{lp_gid} &>/dev/null
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
2024-01-05 23:42:54 +01:00
|
|
|
%post
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
systemctl -q daemon-reload
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
2024-01-05 23:42:54 +01:00
|
|
|
%preun
|
|
|
|
# erase
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/sbin/chkconfig --del hplip
|
|
|
|
/usr/sbin/groupdel lp &>/dev/null
|
|
|
|
/usr/sbin/userdel lp &>/dev/null
|
|
|
|
# service hplip stop
|
|
|
|
# service cups restart
|
|
|
|
fi
|
|
|
|
/sbin/ldconfig
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
# update
|
|
|
|
#if [ $1 -eq 1 ]; then
|
|
|
|
# service hplip restart
|
|
|
|
# service cups restart
|
|
|
|
#fi
|
|
|
|
[ -e %{_sysconfdir}/sane.d/dll.conf ] || exit 1
|
|
|
|
grep hpaio %{_sysconfdir}/sane.d/dll.conf >/dev/null ||
|
|
|
|
echo "hpaio" >> %{_sysconfdir}/sane.d/dll.conf
|
|
|
|
/sbin/ldconfig
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/udev/rules.d/56-hpmud.rules
|
|
|
|
%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
|
|
|
%dir %{_sysconfdir}/hp
|
|
|
|
%{_sysconfdir}/hp/hplip.conf
|
|
|
|
#%{_sysconfdir}/cron.daily/hplip_cron
|
|
|
|
%{_bindir}/hp-*
|
|
|
|
%{_bindir}/hpijs
|
|
|
|
%{_prefix}/lib/cups/backend/hp*
|
|
|
|
%{_prefix}/lib/cups/filter/foomatic-rip-hplip
|
|
|
|
#%{_prefix}/lib/cups/filter/hpcac
|
|
|
|
%{_prefix}/lib/cups/filter/hpcups
|
|
|
|
%{_prefix}/lib/cups/filter/hpcupsfax
|
|
|
|
#%{_prefix}/lib/cups/filter/hplipjs
|
|
|
|
%{_prefix}/lib/cups/filter/hpps
|
|
|
|
%{_prefix}/lib/cups/filter/pstotiff
|
2024-01-05 23:42:54 +01:00
|
|
|
%{_unitdir}/hplip-printer@.service
|
2024-01-05 23:42:54 +01:00
|
|
|
%{_libdir}/libhpip.so.*
|
2024-01-05 23:42:54 +01:00
|
|
|
%{_libdir}/libhpipp.so.*
|
2024-01-05 23:42:54 +01:00
|
|
|
%{_libdir}/libhpmud.so.*
|
|
|
|
%{_libdir}/sane/libsane-hpaio.so.*
|
|
|
|
%{_libdir}/sane/libsane-hpaio.so
|
|
|
|
#%{_libdir}/menu/hplip
|
|
|
|
%{python_sitearch}/*.so
|
|
|
|
%{python_sitearch}/cupsext.la
|
|
|
|
%{python_sitearch}/hpmudext.la
|
|
|
|
%{python_sitearch}/scanext.la
|
|
|
|
%{python_sitearch}/pcardext.la
|
|
|
|
%{_datadir}/applications/hplip.desktop
|
|
|
|
%{_datadir}/cups/drv/hp/hpijs.drv
|
|
|
|
%{_datadir}/cups/drv/hp/hpcups.drv
|
|
|
|
%if "%{cups_ver}" == "1.4"
|
|
|
|
%{_sysconfdir}/cups/pstotiff.*
|
|
|
|
%else
|
|
|
|
%{_datadir}/cups/mime/pstotiff.*
|
|
|
|
%endif
|
|
|
|
%dir %{_datadir}/hplip
|
|
|
|
%{_datadir}/hplip/*
|
|
|
|
%{_datadir}/cups/model/HP/*
|
|
|
|
%{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
|
|
|
|
%dir %attr(0755,root,lp) /var/lib/hp
|
|
|
|
#%config(noreplace) /var/lib/hp/hplip.state
|
|
|
|
#%dir %attr(0774,root,lp) /var/log/hp
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libhpip.la
|
|
|
|
%{_libdir}/libhpip.so
|
2024-01-05 23:42:54 +01:00
|
|
|
%{_libdir}/libhpipp.la
|
|
|
|
%{_libdir}/libhpipp.so
|
2024-01-05 23:42:54 +01:00
|
|
|
%{_libdir}/libhpmud.la
|
|
|
|
%{_libdir}/libhpmud.so
|
|
|
|
%{_libdir}/sane/libsane-hpaio.la
|
|
|
|
%{_datadir}/doc/*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:42:55 +01:00
|
|
|
* Tue Jun 16 2015 Automatic Build System <autodist@mambasoft.it> 3.15.6-5mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:55 +01:00
|
|
|
* Tue Jun 16 2015 Automatic Build System <autodist@mambasoft.it> 3.15.6-4mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:55 +01:00
|
|
|
* Mon Jun 15 2015 Automatic Build System <autodist@mambasoft.it> 3.15.6-3mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:55 +01:00
|
|
|
* Sun Jun 14 2015 Automatic Build System <autodist@mambasoft.it> 3.15.6-2mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:55 +01:00
|
|
|
* Sat Jun 13 2015 Automatic Build System <autodist@mambasoft.it> 3.15.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:54 +01:00
|
|
|
* Sun Apr 26 2015 Automatic Build System <autodist@mambasoft.it> 3.15.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:54 +01:00
|
|
|
* Fri Feb 06 2015 Automatic Build System <autodist@mambasoft.it> 3.15.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:54 +01:00
|
|
|
* Fri Oct 17 2014 Automatic Build System <autodist@mambasoft.it> 3.14.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:54 +01:00
|
|
|
* Wed Jun 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.14.6-2mamba
|
|
|
|
- fix systemd service file installation path
|
|
|
|
|
2024-01-05 23:42:54 +01:00
|
|
|
* Sun Jun 08 2014 Automatic Build System <autodist@mambasoft.it> 3.14.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:54 +01:00
|
|
|
* Fri Apr 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.14.4-2mamba
|
|
|
|
- patch to suppress 'warning: openmamba distro is not found in AUTH_TYPES'
|
|
|
|
- patch to hide from systray when inactive by default
|
|
|
|
|
|
|
|
* Thu Apr 10 2014 Automatic Build System <autodist@mambasoft.it> 3.14.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Mar 17 2014 Automatic Build System <autodist@mambasoft.it> 3.14.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Jan 17 2014 Automatic Build System <autodist@mambasoft.it> 3.14.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Nov 09 2013 Automatic Build System <autodist@mambasoft.it> 3.13.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Oct 29 2013 Automatic Build System <autodist@mambasoft.it> 3.13.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Sep 15 2013 Automatic Build System <autodist@mambasoft.it> 3.13.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Aug 19 2013 Automatic Build System <autodist@mambasoft.it> 3.13.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jul 28 2013 Automatic Build System <autodist@mambasoft.it> 3.13.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jun 30 2013 Automatic Build System <autodist@mambasoft.it> 3.13.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon May 20 2013 Automatic Build System <autodist@mambasoft.it> 3.13.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Apr 12 2013 Automatic Build System <autodist@mambasoft.it> 3.13.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Mar 09 2013 Automatic Build System <autodist@mambasoft.it> 3.13.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Feb 17 2013 Automatic Build System <autodist@mambasoft.it> 3.13.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 15 2013 Automatic Build System <autodist@mambasoft.it> 3.12.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Oct 03 2012 Automatic Build System <autodist@mambasoft.it> 3.12.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Aug 21 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.12.6-4mamba
|
|
|
|
- remove udev automatic printer configuration file conflicting with system-config-printer (causes a add remove problem)
|
|
|
|
- added patch to build with cups 1.6
|
|
|
|
|
|
|
|
* Mon Aug 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.12.6-3mamba
|
|
|
|
- fix bad owner of /var/log/hp and /var/lib/hp set in 3.12.6-2mamba
|
|
|
|
|
|
|
|
* Mon Aug 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.12.6-2mamba
|
|
|
|
- install /var/log/hplip and /var/lib/hplip and fix Makefile to avoid runnning chgrp and chmod
|
|
|
|
|
|
|
|
* Sun Aug 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.12.6-1mamba
|
|
|
|
- update to 3.12.6
|
|
|
|
|
|
|
|
* Wed Nov 02 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.11.10-1mamba
|
|
|
|
- update to 3.11.10
|
|
|
|
|
|
|
|
* Mon Aug 22 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.11.7-1mamba
|
|
|
|
- update to 3.11.7
|
|
|
|
|
|
|
|
* Fri Mar 04 2011 Automatic Build System <autodist@mambasoft.it> 3.11.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Dec 14 2010 Automatic Build System <autodist@mambasoft.it> 3.10.9-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 21 2010 Davide Madrisan <davide.madrisan@gmail.com> 3.10.6-2mamba
|
|
|
|
- rebuilt againt latest net-snmp
|
|
|
|
|
|
|
|
* Fri Oct 01 2010 Automatic Build System <autodist@mambasoft.it> 3.10.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Aug 08 2010 Automatic Build System <autodist@mambasoft.it> 3.10.5-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Wed Jul 21 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.5-2mamba
|
|
|
|
- replace udev deprecated SYSFS{} and sysfs{} entries with ATTRS{} and ATTR{}
|
|
|
|
|
|
|
|
* Sat Jun 05 2010 Automatic Build System <autodist@mambasoft.it> 3.10.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Jan 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.12-1mamba
|
|
|
|
- update to 3.9.12
|
|
|
|
- added requirement for python-Imaging
|
|
|
|
|
|
|
|
* Wed Dec 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.10-3mamba
|
|
|
|
- rebuilt with foomatic-rip-hplip
|
|
|
|
|
|
|
|
* Sat Dec 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.10-2mamba
|
|
|
|
- enabled build of all ppd packages (both hplip and hpcups)
|
|
|
|
- install ppds under /usr/share/cups/models
|
|
|
|
|
|
|
|
* Fri Dec 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.10-1mamba
|
|
|
|
- update to 3.9.10
|
|
|
|
|
|
|
|
* Mon Aug 10 2009 Automatic Build System <autodist@mambasoft.it> 3.9.8-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Jul 14 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.6b-2mamba
|
|
|
|
- enabled legacy hpijs support
|
|
|
|
|
|
|
|
* Fri Jul 10 2009 Automatic Build System <autodist@mambasoft.it> 3.9.6b-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Dec 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.10-1mamba
|
|
|
|
- update to 2.8.10
|
|
|
|
|
|
|
|
* Wed Mar 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.2-1mamba
|
|
|
|
- update to 2.8.2
|
|
|
|
|
|
|
|
* Tue Mar 25 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.4a-2mamba
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
* Tue Jun 12 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.4a-1mamba
|
|
|
|
- update to 1.7.4a
|
|
|
|
|
|
|
|
* Fri Jan 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.12-1qilnx
|
|
|
|
- update to version 1.6.12 by autospec
|
|
|
|
|
|
|
|
* Mon Jul 10 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.6a-1qilnx
|
|
|
|
- update to version 1.6.6a by autospec
|
|
|
|
- added build requirement for libusb-devel
|
|
|
|
|
|
|
|
* Tue Jun 20 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.6.6-1qilnx
|
|
|
|
- update to version 1.6.6 by autospec
|
|
|
|
|
|
|
|
* Sun Jan 07 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.7-1qilnx
|
|
|
|
- renamed from hpijs to hplip
|
|
|
|
- foomatic files install remove (already provided by foomatic)
|
|
|
|
|
|
|
|
* Mon Nov 28 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.1.4-1qilnx
|
|
|
|
- update to version 2.1.4 by autospec
|
|
|
|
|
|
|
|
* Mon May 02 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.1-2qilnx
|
|
|
|
- foomatic files install remove (already provided by foomatic)
|
|
|
|
|
|
|
|
* Mon May 02 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.1-1qilnx
|
|
|
|
- package created by autospec
|