Please can you add a libsemanage-python3 subpackage to the build. As I understand it SWIG from F11 onwards can generate both Python 2 and Python 3 code, you just have to point it at the correct /usr/bin/python or python3 binary An example of generalizing a specfile to build two different subpackages can be seen at bug 536948 with this diff: http://cvs.fedoraproject.org/viewvc/rpms/python-coverage/devel/python-coverage.spec?r1=1.7&r2=1.8 Notes on packaging can be seen here http://fedoraproject.org/wiki/Packaging/Python
Created attachment 409603 [details] Patch to devel's libsemanage.spec to add a python3 subpackage
Created attachment 409605 [details] libsemanage-2.0.45-support-multiple-python-builds.patch Generalize the build to support building the Python bindings against multiple Python runtimes.
Compiles, but is barely tested: [david@surprise devel]$ rpm -q libsemanage-python3 libsemanage-python3-2.0.45-4.fc14.x86_64 [david@surprise devel]$ python3 Python 3.1.2 (r312:79147, Mar 21 2010, 16:44:26) [GCC 4.4.3 20100127 (Red Hat 4.4.3-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import semanage >>> h = semanage.semanage_handle_create() >>> h <Swig Object of type 'struct semanage_handle *' at 0xa22420> >>>
Fixed in libsemanage-2_0_45-4_fc14