From: Stefan Schantl Date: Sun, 9 Sep 2012 15:07:59 +0000 (+0200) Subject: hplip: Tidy up package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73cd5527845625224b7d9fc08f9ea142cda7defe;p=ipfire-3.x.git hplip: Tidy up package. * Don't build, support for qt4 anymore. * Disable build of gui, we don't need it. * Splitt package into a lot of subpackages. * Remove stuff we don't want to ship. --- diff --git a/hplip/hplip.nm b/hplip/hplip.nm index 560c64a66..b09973a8a 100644 --- a/hplip/hplip.nm +++ b/hplip/hplip.nm @@ -5,7 +5,7 @@ name = hplip version = 3.10.9 -release = 2 +release = 3 groups = Applications/Printing url = http://hplipopensource.com/hplip-web/index.html @@ -40,18 +40,65 @@ build 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