[Fedora-packaging] Noarch package depending on an arch-specific package, how to handle it?

Ville-Pekka Vainio vpivaini at cs.helsinki.fi
Tue Nov 2 13:25:40 UTC 2010

Thanks for your help Rex and Panu.

I've updated the package, the updated .spec file is at

I decided to depend on the libmtp soname, because a libmtp soname bump
will probably lead to pymtp being broken. I used the following "trick",
once recommended to me by Ville Skyttä:

%global libmtp libmtp.so.8
%ifarch x86_64 ppc64 ia64 sparc64 s390x
%global mark64 ()(64bit)

Requires:       %{libmtp}%{?mark64}

Ville-Pekka Vainio

More information about the packaging mailing list