Re: New directive for %files section (%exclude)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Jennings wrote:
On Friday, 14 September 2007, at 10:39:19 (-0600),
Dmitry S. Makovey wrote:

in most of RPMs I build I have pretty complicated rules of file inclusion/exclusion. esp. (Logical AND/OR/XOR) which is easier done with find/grep/sed then any combination of excludes.

But we were talking about *his* situation, not yours, and your
suggestion is clearly wrong for that case.

Besides it keeps SPEC file portable for those old systems that run
RPM 4.0 (which I have quite a few).

Again, not applicable to his situation.

Michael


Gentlemen!  They were both good suggestions, and I thank you equally.

I decided to go with the %exclude suggestion, just because it's "new and improved", and to give reassurance to whomever might have added it and then had second thoughts that it was indeed useful... ;-)

The globbing that %exclude uses is somewhat limited, i.e. it doesn't allow .{a,la} expansions, so in that case, using find/echo with egrep -v might have been useful... had things gotten any hairier, I would have probably used a dynamically generated list. Especially if my build were generating fat binaries (i.e. both i686 and x86_64) and I needed to triage them...

-Philip


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux