#32 fedpkg srpm should accept --define option to define macros
Closed: Duplicate 3 years ago by onosek. Opened 6 years ago by cqi.

This was reported by jstribny in ticket

I would really love to see an --define option as in rpmbuild for defining macros in the spec file for the to-be-generated SRPM.

This is especially usuful when creating Software Collections when you need to define the scl macro before SRPM is created. Now I use rpmbuild for this like that:

rpmbuild -bs --define 'scl myscl' myscl-package.spec

and I would like to create this SRPM using fedpkg:

fedpkg srpm --define 'scl myscl'

I think this enhancement should be added as it's possibly quite a common use-case and it doesn't feel right to install rpmbuild just for this.


Metadata Update from @cqi:
- Issue set to the milestone: 1.30

5 years ago

Metadata Update from @cqi:
- Issue set to the milestone: NEXT (was: 1.30)

5 years ago

Metadata Update from @cqi:
- Issue tagged with: rpkg

4 years ago

Metadata Update from @onosek:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata