Description of problem: The cflags is not right, since the includedir is missing: pkg-config --cflags libosip2-2.2.2 -DOSIP_MT should be -I/usr/include/osip2-2.2.2 -DOSIP_MT I guess that one should have Cflags: -I${includedir} -DOSIP_MT I can do a patch if you want. Version-Release number of selected component (if applicable): compat-libosip2-2.2.2-9.fc7 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
This is unrelated, but I suggest using sed -i.compat -e instead of %{__perl} -pi.compat -e
I verified that the same bug is present in libosip2.pc too (although it cannot show up in fedora), I won't open another bug, though.
That'd be great if you could generate a patch...
Created attachment 150863 [details] correct pkgconfig file
Created attachment 150864 [details] corresponding spec file patch
Also unrelated, I don't think that %{?dist} should be in the Provides: and Obsoletes:, otherwise the obsoleted version will depend on the current %{?dist} value which is wrong (it is less problematic for the Provides:). I also thing that those Provides and Obsoletes shouldn't be there. Provides are automatically handled by the dependencies on the soname, and, in my opinion, upgrading from a previous version should lead to the latest version, not the compat- package.
Fixed in compat-libosip2-2.2.2-11