name = hplip
version = 3.10.9
-release = 2
+release = 3
groups = Applications/Printing
url = http://hplipopensource.com/hplip-web/index.html
end
configure_options += \
- --sysconfdir=/etc
+ --sysconfdir=%{sysconfdir} \
+ --disable-gui-build \
+ --disable-qt4
install_cmds
# Remove unwanted files.
+ rm -rvf %{BUILDROOT}%{bindir}/hp-systray
rm -rvf %{BUILDROOT}%{sysconfdir}/sane.d/
+ rm -rvf %{BUILDROOT}%{datadir}/installer
+
+ # Remove files for HAL.
+ rm -rvf %{BUILDROOT}%{datadir}/hal
+
+ # Remove X11 relevated files.
+ rm -rvf %{BUILDROOT}%{datadir}/applications/
+
+ # Remove xdg files.
+ rm -rvf %{BUILDROOT}%{sysconfdir}/xdg/
end
end
packages
package %{name}
+ requires
+ %{name}-common=%{thisver}
+ cups
+ end
+ end
+
+ package %{name}-common
+ summary = Files needed by the HPLIP printer and scanner drivers.
+ description = %{summary}
+
+ files
+ %{libdir}/udev/
+ %{libdir}/python*/
+ %{sysconfdir}/udev/
+ %{datadir}/hplip
+ end
+ end
+
+ package %{name}-libs
+ template LIBS
+ end
+
+ package %{name}-devel
+ template DEVEL
+ end
+
+ package libsane-hpaio
+ summary = SANE driver for scanners in HP's multi-function devices.
+ description = %{summary}
+
prerequires += sane
+ files
+ %{libdir}/sane/*
+ end
+
script postin
# Add hplip scanner support to sane.
echo "hpaio" >> %{sysconfdir}/sane.d/dll.conf