#163 Local ability to build packages
Opened 7 years ago by cqi. Modified 5 years ago

Usually, I want to test package rpkg with latest changes in the master branch, then I use fedpkg commands to build RPM locally, e.g. srpm, mockbuild, local. Generally, the steps could be

  1. make souce distribution tarball from rpkg source tree
  2. copy it to rpkg package repository
  3. fedpkg local

At the last step, however, fedpkg downloads tarbar listed in sources from dist-git automatically, and not use the newly created one. So, as a workaround, I have to construct and run the rpmbuild command line manually.

It would be much convenient to allow packagers building package locally without downloading as the first step.

As well as the import_srpm, also make it possible to not upload tarballs after importing.

Commands that should have local alibity include

  • compile
  • import-srpm
  • install
  • local
  • mockbuild
  • prep
  • srpm

A proposed solution is, rpkg just does what it does now by default, and use environment variable to switch to local mode, the name could be RPKG_LOCAL_MODE and whatever its value is as long as it is defined.


You can workaround the downloading of tarball by updating the sources file with new hash: md5sum *.tar.gz >sources. The hash will match and no download will happen.

This issue has been unresolved for more than a year, and is going to be closed within a week if no further action is taken. If you feel this is in error, please contact me.
This is a cleaning process suggested by Jay Greguske. Copy of this ticket was already closed in JIRA tracker.

Login to comment on this ticket.

Metadata