[opensuse-packaging] Adding useful Provides to cups drivers (with python-cups)
Hi, I just updated python-cups to a new version, and it is now shipping files to automatically add Provides tag to packages that are shipping cups drivers (thanks to the new rpm 4.9). It's matching those files: %__psdriver_path ^(/usr/lib/cups/driver/.*|%{_datadir}/cups/drv/.*\.drv)$ %__psdriver_magic ^PPD file.*$ It'd be cool to have all our packages that are shipping drivers for cups use this. It's just a matter of adding a python-cups BuildRequires. For instance, for gutenprint, this would add Provides like this: postscriptdriver(hp;photosmart_100;) This will enable configuration tools to know which package to install, if one is needed, when configuring a printer. I've submitted the change to gutenprint, so you can take a look at it to if you need to change another package in a similar way (but it's really easy): https://build.opensuse.org/request/show/71723 There are likely other packages than gutenprint that should be changed, and I don't know which ones, so I'd appreciate if others could do this or at least tell me which packages to change. Cheers, Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello Vincent, On May 27 16:33 Vincent Untz wrote (excerpt):
I just updated python-cups to a new version, and it is now shipping files to automatically add Provides tag to packages that are shipping cups drivers (thanks to the new rpm 4.9).
It's matching those files: %__psdriver_path ^(/usr/lib/cups/driver/.*|%{_datadir}/cups/drv/.*\.drv)$ %__psdriver_magic ^PPD file.*$
It'd be cool to have all our packages that are shipping drivers for cups use this. It's just a matter of adding a python-cups BuildRequires.
For instance, for gutenprint, this would add Provides like this: postscriptdriver(hp;photosmart_100;)
This will enable configuration tools to know which package to install, if one is needed, when configuring a printer.
I've submitted the change to gutenprint, so you can take a look at it to if you need to change another package in a similar way (but it's really easy): https://build.opensuse.org/request/show/71723
How did it work for you when you tested it? Are those Provides somehow special so that "rpm -q --provides" does not show them? If those Provides are regular RPM Provides, I wonder if it is really a good idea to have thousands of such Provides in the RPMs because there are thousands of printer models. Are there already "configuration tools" which use those Provides? Do system-config-printer and udev-configure-printer already use them? What I get on my openSUSE 11.4 x86_64 system: ----------------------------------------------------------------------------- # osc getbinaries Printing gutenprint openSUSE_11.4 x86_64 gutenprint-5.2.7-24.1.x86_64.rpm 100% |=================| 11 MB 00:01 gutenprint-devel-5.2.7-24.1.x86_64. 100% |=================| 37 kB 00:00 gutenprint-gimpplugin-5.2.7-24.1.x8 100% |=================| 14 kB 00:00 # rpm -q --changelog -p gutenprint-5.2.7-24.1.x86_64.rpm | head -n4 * Fri May 27 2011 vuntz@opensuse.org - Add python-cups BuildRequires to have postscriptdriver() Provides for the drivers in gutenprint. # rpm -q --provides -p gutenprint-5.2.7-24.1.x86_64.rpm color-traditional.so()(64bit) libgutenprint.so.2()(64bit) libgutenprintui2.so.1()(64bit) print-canon.so()(64bit) print-dyesub.so()(64bit) print-escp2.so()(64bit) print-lexmark.so()(64bit) print-pcl.so()(64bit) print-ps.so()(64bit) print-raw.so()(64bit) gutenprint = 5.2.7-24.1 gutenprint(x86-64) = 5.2.7-24.1 # ----------------------------------------------------------------------------- Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tue, 2011-05-31 at 15:39 +0200, Johannes Meixner wrote:
If those Provides are regular RPM Provides, I wonder if it is really a good idea to have thousands of such Provides in the RPMs because there are thousands of printer models.
It should be normal RPM provides, but...
Are there already "configuration tools" which use those Provides? Do system-config-printer and udev-configure-printer already use them?
What I get on my openSUSE 11.4 x86_64 system: ----------------------------------------------------------------------------- # osc getbinaries Printing gutenprint openSUSE_11.4 x86_64 gutenprint-5.2.7-24.1.x86_64.rpm 100% |=================| 11 MB 00:01 gutenprint-devel-5.2.7-24.1.x86_64. 100% |=================| 37 kB 00:00 gutenprint-gimpplugin-5.2.7-24.1.x8 100% |=================| 14 kB 00:00
It's specific to RPM 4.9, which is NOT in 11.4. Only the Factory build should give you what you're looking for. See https://build.opensuse.org/package/binary?arch=x86_64&filename=gutenprint-5.2.7-24.1.x86_64.rpm&package=gutenprint&project=Printing&repository=openSUSE_Factory Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello, On May 31 15:47 Dimstar / Dominique Leuenberger wrote (excerpt):
It's specific to RPM 4.9, which is NOT in 11.4. Only the Factory build should give you what you're looking for.
Many thanks for the info! With # osc getbinaries Printing gutenprint openSUSE_Factory x86_64 it works! I still wonder if 337 additional RPM Provides only for gutenprint are o.k. for RPM in general? If all printer driver packages would have those RPM Provides, there would be thousands of additional RPM Provides. Are so many additional RPM Provides o.k. in the RPM database and/or in zypper or whatever other packaging tools? Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 31/05/11 15:27, Johannes Meixner wrote:
Hello,
On May 31 15:47 Dimstar / Dominique Leuenberger wrote (excerpt):
It's specific to RPM 4.9, which is NOT in 11.4. Only the Factory build should give you what you're looking for.
Many thanks for the info!
With # osc getbinaries Printing gutenprint openSUSE_Factory x86_64 it works!
I still wonder if 337 additional RPM Provides only for gutenprint are o.k. for RPM in general?
If all printer driver packages would have those RPM Provides, there would be thousands of additional RPM Provides.
Are so many additional RPM Provides o.k. in the RPM database and/or in zypper or whatever other packaging tools?
Kind Regards Johannes Meixner
rpm -q --provides kernel-desktop | wc -l 11084
I think 337 should be fine :D Regards, Tejas -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Dienstag, 31. Mai 2011 schrieb Johannes Meixner:
Hello,
On May 31 15:47 Dimstar / Dominique Leuenberger wrote (excerpt):
It's specific to RPM 4.9, which is NOT in 11.4. Only the Factory build should give you what you're looking for.
Many thanks for the info!
With # osc getbinaries Printing gutenprint openSUSE_Factory x86_64 it works!
I still wonder if 337 additional RPM Provides only for gutenprint are o.k. for RPM in general?
If all printer driver packages would have those RPM Provides, there would be thousands of additional RPM Provides.
Are so many additional RPM Provides o.k. in the RPM database and/or in zypper or whatever other packaging tools?
They are ok. For rpm it's just entries in the database, that arguably grows larger, but nothing databases shouldn't be able to handle. And zypper gently ignores provides not required when solving. And fedora ships tools that hook into packagekit to find the provides for the newly plugged in printer. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (5)
-
Dimstar / Dominique Leuenberger
-
Johannes Meixner
-
Stephan Kulow
-
Tejas Guruswamy
-
Vincent Untz