
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