]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
hplip: Tidy up package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 9 Sep 2012 15:07:59 +0000 (17:07 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 9 Sep 2012 15:26:27 +0000 (17:26 +0200)
* 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.

hplip/hplip.nm

index 560c64a663bedb43b02ab4b7c9650d089c11ccdf..b09973a8ac89cc11dd2267a4099e17903657f152 100644 (file)
@@ -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