`rpmbuild` incorrectly detecting multiple spec files

Hello,

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version:
OpenMandriva Lx release 25.06 (ROME) Rolling for znver1

Description of the issue (screenshots if relevant):
Before I came across the Resources page on setting up a printer, I was trying to directly install a Canon printer driver. To be absolutely clear, I have the printer working now, that is not the issue.

I had downloaded this driver straight from the Canon website, and it comes in source form. The instructions state to run an rpmbuild command passing the .tar.gz of the driver as the -tb argument.

On trying this, rpmbuild replied with:
error: Found more than one spec file in cnijfilter-source-3.90-1.tar.gz

There’s only one problem with this statement: as far as I can tell it’s a filthy, rotten, lie! :rofl: I can only find one file in the tarball with the .spec extension.

Although I no longer need to install this, I assume there’s a bug here somewhere that needs dealing with. Any ideas on how to debug this?

Are you extracting the srpm, modifying the spec to use our requirements, and then using rpmbuild? Otherwise, we can’t help. We don’t support Canon’s RPM’s, SRPM’s, or any other file you downloaded from their website. The -tb argument is not what you want, anyway. To just build a rpm from spec you want -bb.

To reiterate, I’m not seeking help to install the package, I’m just trying to understand the error message which, to me, makes no sense.

The -bb option indeed seemed to give a more meaningful response, and my deeper dive into rpmbuild seems to suggest that the -tb option is basically deprecated everywhere, so maybe I shouldn’t be surprised that it came back with nonsense, so I’m gonna walk away from this rabbit hole!

That said, you mention ‘modifying the spec to use [OM] requirements’, but I can’t find where those requirements are described. The best I found was this page, but it doesn’t really say anything specific.

Which is why I moved this to Development In the future, don’t post topics that don’t actually ask for help in Support.

1 Like

That documentation is in process. You can ask in the Cooker channel or view any of the new repos on our GH org for the Association.

1 Like

The only place I can think of with a little more information is here:

1 Like