#32 fedpkg srpm should accept --define option to define macros
Closed: Duplicate 6 years ago by onosek. Opened 8 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

8 years ago

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

7 years ago

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

6 years ago

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

6 years ago

Log in to comment on this ticket.

Metadata