#1927 Provide a script to create a SRPM without having to run configure
Closed: Fixed None Opened 6 years ago by jhrozek.

Some build scripts would benefit from the possibility to create a SRPM without having to run configure in order to produce a sssd.spec from sssd.spec.in.

The script would be placed in scripts/ or contrib/ and would substitute the autoconf variables (like @PACKAGE_NAME@ or @PACKAGE_VERSION@) the way the "prerelease-rpms" target does, then run rpmbuild. The rpmbuild invocation would set the RPM flag to enable experimental features, perhaps there could be two targets for experimental and stable.


If you want create SRPM you need tarball and spec file.
You don't want to run ./configure, so you can't run make (dist-gzip, dist-bzip2) to generate tarball.[[BR]]
But it is possible to archive files from git tree (git-archive)

Could you write some use cases? I can't see advantages.

Replying to [comment:1 lslebodn]:

Could you write some use cases? I can't see advantages.

They would like to create a distribution-agnostic SRPM and then rebuild it for all the targets they support.

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.10.0
rhbz: => 0
type: defect => task

Fields changed

owner: somebody => lslebodn
patch: 0 => 1

milestone: SSSD 1.10.0 => SSSD 1.10 beta
resolution: => fixed
status: new => closed

Metadata Update from @jhrozek:
- Issue assigned to lslebodn
- Issue set to the milestone: SSSD 1.10 beta

2 years ago

Login to comment on this ticket.

Metadata