Opened 5 years ago

Closed 5 years ago

#119 closed defect (fixed)

rpm-build: Support macros.d

Reported by: dmik Owned by:
Priority: critical Milestone:
Component: rpm Version:
Severity: Keywords:

Description (last modified by dmik)

I found that rpm-build.i386 version 4.8.1-22.oc00 doesn't seem to support automatically loading macros from the /@unixroot/usr/lib/rpm/marcos.d directory.

Some packages install various macros useful for maintaining .spec files. In particular, the texinfo package (info sub package) installs a file called that contains macros useful for handling documentation in Info format (%info_requires, %info_post, %info_preun) which save some monkey work and about to be used in nearly every .spec file (here is more info:

We need to make this mechanism work.

Change History (3)

comment:1 Changed 5 years ago by dmik

Description: modified (diff)

comment:2 Changed 5 years ago by Yuri Dario

This feature has been added in rpm 4.10.x, see

maybe we can add newer paths (lib/rpmrc.c around#430)

confdir, "/macros.d/macros.*", ":",
confdir, "/fileattrs/*.attr", ":",

to our branch.

comment:3 Changed 5 years ago by Yuri Dario

Resolution: fixed
Status: newclosed

add support for macros.d directory, fixes ticket#119.
Sending rpm-4.8.1/lib/rpmrc.c
Committed revision r558.

Note: See TracTickets for help on using tickets.