]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
python: Add a symlink to shared lib.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Nov 2011 15:25:29 +0000 (16:25 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Nov 2011 15:25:29 +0000 (16:25 +0100)
At the same place, there should have been the static version,
but as we don't like static libraries, we removed it.
If a tool is linking against -lpython2.7 using that path, it
will find the shared version of libpython.

python/python.nm

index 7ca7f0c866ce473c56fe19fc208ae1803ba9eaea..73f564fbbd087cd20bdc39cf5abdef48a5250c04 100644 (file)
@@ -4,8 +4,9 @@
 ###############################################################################
 
 name       = python
-version    = 2.7.2
-release    = 1
+major_ver  = 2.7
+version    = %{major_ver}.2
+release    = 2
 thisapp    = Python-%{version}
 
 groups     = Development/Languages
@@ -74,6 +75,9 @@ build
        install_cmds
                # All *.py files don't need to be executeable...
                find %{BUILDROOT}/usr/lib/python*/ -name "*.py" | xargs chmod a-x -v
+
+               # Create symlink for shared lib.
+               ln -svf ../../libpython%{major_ver}.so %{BUILDROOT}/usr/lib/python%{major_ver}/config/
        end
 end