OS/2, eCS & ArcaOS - Technical > Programming

Building a Dooble RPM

(1/5) > >>

Dave Yeo:
Hi, so I've revisited building an RPM, which I haven't had luck with, this time with Dooble.
Downloaded the latest Dooble source RPM, dooble-2022.10.15-1.oc00.src.rpm and used unrpm to expand it. Followed the directions at http://trac.netlabs.org/rpm/wiki/RpmHowToPackagers to set up my environment, basically downloaded required packages and created %HOME%\.rpmmacros containing "%_topdir h:/rpmbuild" without the quotes. H: is my ramdisk. Ran rpmbuild as the page recommends, results

--- Code: ---H:\rpmbuild>rpmbuild -ba dooble.spec
error: line 13: Unknown tag: %scm_source github https://github.com/bitwiseworks/
dooble-os2 2022.10.15-os2

--- End code ---
or

--- Code: ---H:\dooble_rpm>rpmbuild -ba dooble.spec
error: line 13: Unknown tag: %scm_source github https://github.com/bitwiseworks/
dooble-os2 2022.10.15-os2

--- End code ---

The RPM page clearly says that %scm_source is a valid tag,

--- Quote ---%scm_source

This macro is intended as a replacement for the standard Source: tag. The format is as follows:

%scm_source SCM URL REV

where SCM is the type of the source code management system (currently supported ones are svn, git and github), URL is the full URL of the source code repository for the given program and REV is the revision to use.

--- End quote ---

Any ideas where I have gone wrong? I expected a dooble rpm pretty much identical to the Bitwise release, then I could adjust it as needed. I've run into the same issue with trying to build other packages hosted on Github.

Tom:
The %scm_source macro seems to expect three parameters, but in your examples I see only two (the SCM and URL parameters, but no REV parameter).
That is the only obvious thing that I see (I have no experience with building RPMs).

ivan:
Hi Dave,

Why not just build a WPI, which is much more useful?

I have RPM on my computer because it came with the install but have never used it.

Andi B.:

--- Quote from: ivan on April 19, 2023, 03:29:22 pm ---Hi Dave,

Why not just build a WPI, which is much more useful?

I have RPM on my computer because it came with the install but have never used it.

--- End quote ---
Please don't go offtopic. If you've a question unrelated to the topic, open a new thread. Thanks. Btw. your question is answered more then once.

Dave Yeo:

--- Quote from: Tom on April 19, 2023, 02:54:14 pm ---The %scm_source macro seems to expect three parameters, but in your examples I see only two (the SCM and URL parameters, but no REV parameter).
That is the only obvious thing that I see (I have no experience with building RPMs).

--- End quote ---

Hi Tom, the revision is 2022.10.15-os2, which exists.

--- Code: ---K:\work\dooble-os2>git tag
2022.04.04
2022.04.04-os2
2022.10.15
2022.10.15-os2

--- End code ---

URL is correct as well.

Navigation

[0] Message Index

[#] Next page

Go to full version