Replies: 1 comment 5 replies
-
I would not recommend conditionalizing too much on it, certainly not spec sections. That'll only turn your specs into unreadable spaghetti with very little in return. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to https://rpm-software-management.github.io/rpm/manual/spec.html some sections are only available from certain versions, for example %conf (since rpm >= 4.18).
I'd like my SPEC file to use newer capabilities if rpmbuild supports those, and fallback to older capabilities if built on an older system.
I was hoping for something like
But I don't see anything like %rpmversion being provided. I can always
rpm -q rpm --qf %{VERSION}
but that has 2 issuesDoes it make sense to build a spec file that will behave differently on fedora vs. rhel ?
Is there a canonical way to enjoy the best capabilities of a given rpm version while maintaining backward compatibility?
Beta Was this translation helpful? Give feedback.
All reactions