Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=740160
--- Comment #8 from Veeti Paananen veeti.paananen@rojekti.fi 2011-09-30 15:58:08 EDT ---
I did this and rpmlint gave an error (E: explicit-lib-dependency). I researched it a little and it seems that if the base package depends on a sub-package library, RPM handles the dependency automatically. Correct me if I'm wrong. I have left this one out for now.
Are you sure? I just tried adding "Requires: libmarkdown%{?_isa} = %{version}-%{release}" below the BuildRequires and I don't get any rpmlint errors. (I can also think of two existing packages that do this: curl and ufraw).
I have added %post and %postun sections to call ldconfig, as detailed in the packaging guidelines.
Since the discount package doesn't have any shared libraries, you don't need to call ldconfig (so remove the %post and %postun lines that aren't for libmarkdown).