[SRPM] More than one source in SPEC
See original GitHub issueAt this moment is seems that SRPM should be created by Source0 only. If I’m defining multiple sources packit is failing
➜ packit srpm
Please, use 'authentication' key in the user configuration to set tokens for GitHub and Pagure. New method supports more services and direct keys will be removed in the future.
Example:
authentication:
github.com:
token: GITHUB_TOKEN
pagure:
token: PAGURE_TOKEN
instance_url: "https://src.fedoraproject.org"
Packit 0.7.2.dev32+gdda72c0 is being used.
Input is a directory: /home/mastyk/work/github.com/StykMartin/restraint
Input directory is an upstream repository.
Using user-defined script for ActionName.create_archive: ['make', 'packit-tgz']
Created archive: restraint-git-7.99daf29.tar.gz
STDERR: error: Bad file: ./openssl-1.0.1m.tar.gz: No such file or directory
error: Bad file: ./cmake-3.2.3.tar.gz: No such file or directory
error: Bad file: ./libssh-0.7.3.tar.xz: No such file or directory
error: Bad file: ./libsoup-2.48.1.tar.xz: No such file or directory
error: Bad file: ./intltool-0.51.0.tar.gz: No such file or directory
error: Bad file: ./sqlite-autoconf-3080002.tar.gz: No such file or directory
error: Bad file: ./xz-5.2.2.tar.gz: No such file or directory
error: Bad file: ./libarchive-3.2.1.tar.gz: No such file or directory
error: Bad file: ./curl-7.29.0.tar.bz2: No such file or directory
error: Bad file: ./libxml2-2.9.1.tar.gz: No such file or directory
error: Bad file: ./bzip2-1.0.6.tar.gz: No such file or directory
error: Bad file: ./zlib-1.2.11.tar.gz: No such file or directory
error: Bad file: ./glib-2.56.1.tar.xz: No such file or directory
error: Bad file: ./libffi-3.1.tar.gz: No such file or directory
Bad file: ./openssl-1.0.1m.tar.gz: No such file or directory
Bad file: ./cmake-3.2.3.tar.gz: No such file or directory
Bad file: ./libssh-0.7.3.tar.xz: No such file or directory
Bad file: ./libsoup-2.48.1.tar.xz: No such file or directory
Bad file: ./intltool-0.51.0.tar.gz: No such file or directory
Bad file: ./sqlite-autoconf-3080002.tar.gz: No such file or directory
Bad file: ./xz-5.2.2.tar.gz: No such file or directory
Bad file: ./libarchive-3.2.1.tar.gz: No such file or directory
Bad file: ./curl-7.29.0.tar.bz2: No such file or directory
Bad file: ./libxml2-2.9.1.tar.gz: No such file or directory
Bad file: ./bzip2-1.0.6.tar.gz: No such file or directory
Bad file: ./zlib-1.2.11.tar.gz: No such file or directory
Bad file: ./glib-2.56.1.tar.xz: No such file or directory
Bad file: ./libffi-3.1.tar.gz: No such file or directory
spec
Source0: https://github.com/beaker-project/%{name}/%{name}-%{version}.tar.gz
%if 0%{?with_static:1}
# Sources for bundled, statically linked libraries
Source101: http://mirrors.kernel.org/sourceware/libffi/libffi-3.1.tar.gz
Source102: https://ftp.gnome.org/pub/gnome/sources/glib/2.56/glib-2.56.1.tar.xz
Source103: http://zlib.net/zlib-1.2.11.tar.gz
Source104: http://downloads.sourceforge.net/project/bzip2/bzip2-1.0.6.tar.gz
Source105: http://xmlsoft.org/sources/libxml2-2.9.1.tar.gz
Source106: https://curl.haxx.se/download/curl-7.29.0.tar.bz2
Source107: http://libarchive.org/downloads/libarchive-3.2.1.tar.gz
Source108: http://downloads.sourceforge.net/project/lzmautils/xz-5.2.2.tar.gz
Source109: http://sqlite.org/2013/sqlite-autoconf-3080002.tar.gz
Source110: https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz
Source111: http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.48/libsoup-2.48.1.tar.xz
Source112: https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.3.tar.xz
Source113: http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
Source114: https://www.openssl.org/source/openssl-1.0.1m.tar.gz
%endif
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
multiple tar (source files) files in rpm.spec file - Stack Overflow
I have been doing quite a bit of reading into RPM's, just having a hard time understanding how to get multiple sources into...
Read more >How to acquire SPEC files from SRPM? - Unix Stack Exchange
I've used fedpkg for downloading RPMs, then creating SRPMs out of them and thus acquiring the SPEC file - but downloading RPMs takes...
Read more >RPM Packaging Guide
An SRPM contains source code, optionally patches to it, and a SPEC file, which describes how to build the source code into a...
Read more >Referencing Source - Fedora Docs
One of the design goals of rpm is to cleanly separate upstream source from vendor modifications. For the Fedora packager, this means that...
Read more >Chapter 3. Packaging software Red Hat Enterprise Linux 8
An SRPM contains source code and a SPEC file, which describes how to build the source code into a binary RPM. Optionally, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lachmanfrantisek volunteered to look into this before Christmas
OK, then it’s quite easy and the fix is here: #643 (I’ll only need to add some tests.)