Hi, I'm working on bringing pgpool-II packages (postgresql-pgpool-II-3.1.2-1) from Fedora over to RHEL6. I've already "hacked" Fedora version to play nice with RHEL (removing systemd references and supplanting systemd unit with init script). I have also conditionalized it to build either one depending on whether systemd is to be used or not using the
%if %{systemd_enabled} ... %else ... %endif blocks. However I can't quite figure out an optimal way of determining which platform package is being compiled for (in other words: how to set up systemd_enabled macro automatically rather than rely on manual setup). I'm sure people on this list came across this problem more than once, and I would like to know what's the standard way of resolving it. What I'm trying to achieve is to get one SPEC for both Fedora and RHEL. Am I attacking this problem the wrong way? -- Dmitry Makovey Web Systems Administrator Athabasca University (780) 675-6245 --- Confidence is what you have before you understand the problem Woody Allen When in trouble when in doubt run in circles scream and shout http://www.wordwizard.com/phpbb3/viewtopic.php?f=16&t=19330 -- This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communications received in error, or subsequent reply, should be deleted or destroyed. --- _______________________________________________ epel-devel-list mailing list epel-devel-list@redhat.com https://www.redhat.com/mailman/listinfo/epel-devel-list