Have problems building rpm package:
qTox_enhanced is a chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol.
This version is forked from the original qTox.
https://github.com/Zoxcore/qTox_enhanced
Defined services as following >>
Have problems/errors extracting and building packages. if I define source in spec like this:
Source0: https://github.com/Zoxcore/qTox_enhanced/archive/refs/tags/v%{version}.tar.gz
and _service
like
<services>
<service name="download_url">
<param name="host">github.com</param>
<param name="protocol">https</param>
</service>
</services>
Build can load and extract the file correctly. However fails with other sources dependencies.
If I specify multiple sources: build find and extracts nothing. What is wrong: _services
, spec
, both? Where to extract files: in the service or in spec?
Any good package example, tips or doc? Thanks!
Looked at some packages: seems need to specify sources names directly without URL like this:
#Source0: https://github.com/Zoxcore/qTox_enhanced/archive/refs/tags/v%{version}.tar.gz
Source0: qTox_enhanced-%{version}.tar.gz
#Source1: https://github.com/toxext/toxext/archive/refs/tags/v0.0.3.tar.gz
Source1: toxext-0.0.3.tar.gz
#Source2: https://github.com/toxext/tox_extension_messages/archive/refs/tags/v0.0.3.tar.gz
Source2: tox_extension_messages-0.0.3.tar.gz
and _service
like this:
<services>
<service name="download_url">
<param name="host">github.com</param>
<param name="protocol">https</param>
<param name="path">/Zoxcore/qTox_enhanced/archive/refs/tags/v1.17.6.028.tar.gz</param>
<param name="filename">qTox_enhanced-1.17.6.028.tar.gz</param>
</service>
<service name="download_url">
<param name="host">github.com</param>
<param name="protocol">https</param>
<param name="path">/toxext/toxext/archive/refs/tags/v0.0.3.tar.gz</param>
<param name="filename">toxext-0.0.3.tar.gz</param>
</service>
<service name="download_url">
<param name="host">github.com</param>
<param name="protocol">https</param>
<param name="path">/toxext/tox_extension_messages/archive/refs/tags/v0.0.3.tar.gz</param>
<param name="filename">tox_extension_messages-0.0.3.tar.gz</param>
</service>
</services>
Now have problem building additional sources: tried on %prep stage but build root is cleared before %build stage. Build on %build stage? But how to access sources?
Seems %build
stage works fine.
system
Closed
December 4, 2024, 12:23am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.