Hi, I have a spec file that generates 2 subpackages (using the %package directive). For both subpackages, I want to run the same code in the %post section. Do I need to duplicate my code? Something like: %post -n first_pkg ... ... ... %post -n second_pkg ... ... ... Or can I put a function call anywhere and call it from the %post section? Something like: %post -n first_pkg common_func %post -n second_pkg common_func Thanks, Erez _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list