question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not rely on tar ball, allow user to specify command to generate src.rpm

See original GitHub issue

You offer create_tarball_command and you hope that this tar ball will work with the upstream spec file. I experienced that sometimes the spec file is actually foo.spec.in and final spec files are generated by autotools. See https://github.com/abrt/abrt/blob/master/abrt.spec.in Or the generated tar ball does not work with the spec file as the spec file is altered during release process. E.g. https://github.com/rpm-software-management/mock/blob/devel/mock/mock.spec refers to Source: %{name}-%{version}.tar.gz but if you want to build from last commit, then you create tar ball using tito build --test --tgz which produces mock-git-55.17ed5ce.tar.gz. When I run tito build --srpm then tito automagically modify the spec file.

If you would offer something like create_srpm_command it would easy a lot of these things.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
xsuchycommented, Nov 5, 2019

/me doing activity to please stale bot

1reaction
TomasTomecekcommented, Nov 13, 2019

I feel like we have reached a consensus within the team that we don’t want to support a custom srpm command. Is that true?

Therefore we should document for tito users how then can use packit in their projects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create a Linux RPM package | Enable Sysadmin
Most source code is distributed as an archive, so use the tar command to create an archive file: $ tar --create --file hello-0.0.1.tar.gz...
Read more >
Referencing Source - Fedora Docs
The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: # svn export -r...
Read more >
RPM Packaging Guide
RPM allows you to take pristine software sources and package them into source and binary packages for your users. In source packages, you...
Read more >
How to build rpm packages - Opensource.com
Building rpm packages requires the rpm-build package, which is likely not already installed. Install it now as root. Note that this command ......
Read more >
7 Steps to Build a RPM Package from Source on CentOS ...
rpmbuild command is part of rpm-build package. Install it as shown show below. # yum install rpm-build. rpm-build is dependent on the following ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found